From patchwork Tue Dec 13 18:33:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 634023 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 543D3C10F1D for ; Tue, 13 Dec 2022 18:33:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236370AbiLMSdP (ORCPT ); Tue, 13 Dec 2022 13:33:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236227AbiLMSdN (ORCPT ); Tue, 13 Dec 2022 13:33:13 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC44E22520 for ; Tue, 13 Dec 2022 10:33:11 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id bp15so6318211lfb.13 for ; Tue, 13 Dec 2022 10:33:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=GJ5jI0G4hX1A08XO49d5+/bf9foafrkt0On/sCJEiuI=; b=NfSwsj6XvoFxdC/s4diqxFkK2YNi3BX95XD5jRwysWJvH3h/5IIZ84QEa4LZH6Mqbr 6JIw81N3A94mZD4zT2VhIjKbm1ieNnS+klB525lr7jc5yT4BpboI+nUCAkbaUdS2OpeK 1igp3rHVAzAbwCcL8bZTu3Q07hvB5odntYLjjMZF4Zx0S1b3IjDxqaQake8666uyoDdP TXwoUrZklmyxluTZ9z4gOcWGLDhQgvOFenPo4A3GaT2hwM1keV4mDZM80FoHYG28Ebj6 GU71MghU2XMUGgjGg4qQ+SZkcs6iPwlfuiKUVdLCdHzJ97Mfkd0bWhPCLsvZbaQIylAb qxGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GJ5jI0G4hX1A08XO49d5+/bf9foafrkt0On/sCJEiuI=; b=SbRw1+yPW8FLM14FFYAt6H87PXiZaautK+CIQ6qaPHwzblxTbr4sHZCr+wkjhhq9G7 bkR757Wy3nk3EjQIgy/8VHCyAjaFsztCTdmvCbE47As8rdYbMBSLn+wiAsg+1eo3CRta kvlqq0hkst8O0JnRk7z+rwM2FQZR16YsX0V5jjzwarRkWzm1K75V+w8xbGJeyaMAwt8i mE2BD8yjELOlYL5/8g9FO+QXjyvxnsz+/FTgWUzjdVTBJLk2ppWhVogIT2Bb4w9Pv+Yv QcC5pp9CrIVOiF3CKcCRmkw5oJPTM0bBe5TyqrEUG/vCQ5BsrDHXHYwkupl4qjpDGFop uA+A== X-Gm-Message-State: ANoB5pkaH7aQHxrLpPP+kq7Z/ZhSaVFL5TKiHmNvdtqNYgZJnS25LS5U gEPKRgrA6xTxmeOJqHUai1xhKg== X-Google-Smtp-Source: AA0mqf5PosCgjZuIMDn413vUNIRDY6kkEVRGUNZYkcg0aJE90noLrihl+JuV0j8tLeB9BwK18weaWw== X-Received: by 2002:ac2:52b9:0:b0:4b5:83ba:8c55 with SMTP id r25-20020ac252b9000000b004b583ba8c55mr5363905lfm.8.1670956390178; Tue, 13 Dec 2022 10:33:10 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id t10-20020a056512208a00b004b501497b6fsm465963lfr.148.2022.12.13.10.33.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 10:33:08 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Loic Poulain , Robert Foss , Rob Herring , Krzysztof Kozlowski , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/6] dt-bindings: i2c: qcom,i2c-cci: Fall back to common compatibles Date: Tue, 13 Dec 2022 19:33:00 +0100 Message-Id: <20221213183305.544644-1-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Almost every compatible string in the CCI driver is a duplicate. Adjust the bindings to include a common (first-soc-implementing-vX) compatible to remove the need to keep adding superfluous compatible strings. Signed-off-by: Konrad Dybcio --- Changes in v2: - make sure the actual patch contests are tested.. - resolve errors .../devicetree/bindings/i2c/qcom,i2c-cci.yaml | 47 ++++++++++++------- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml index cf9f8fda595f..87e414f0c39c 100644 --- a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml @@ -12,14 +12,23 @@ maintainers: properties: compatible: - enum: - - qcom,msm8226-cci - - qcom,msm8916-cci - - qcom,msm8974-cci - - qcom,msm8996-cci - - qcom,sdm845-cci - - qcom,sm8250-cci - - qcom,sm8450-cci + oneOf: + - enum: + - qcom,msm8226-cci + - qcom,msm8974-cci + - qcom,msm8996-cci + + - items: + - enum: + - qcom,msm8916-cci + - const: qcom,msm8226-cci # CCI v1 + + - items: + - enum: + - qcom,sdm845-cci + - qcom,sm8250-cci + - qcom,sm8450-cci + - const: qcom,msm8996-cci # CCI v2 "#address-cells": const: 1 @@ -88,10 +97,12 @@ allOf: - if: properties: compatible: - contains: - enum: - - qcom,msm8226-cci - - qcom,msm8974-cci + oneOf: + - contains: + enum: + - qcom,msm8974-cci + + - const: qcom,msm8226-cci then: properties: clocks: @@ -105,10 +116,12 @@ allOf: - if: properties: compatible: - contains: - enum: - - qcom,msm8916-cci - - qcom,msm8996-cci + oneOf: + - contains: + enum: + - qcom,msm8916-cci + + - const: qcom,msm8996-cci then: properties: clocks: @@ -169,7 +182,7 @@ examples: cci@ac4a000 { reg = <0x0ac4a000 0x4000>; - compatible = "qcom,sdm845-cci"; + compatible = "qcom,sdm845-cci", "qcom,msm8996-cci"; #address-cells = <1>; #size-cells = <0>; From patchwork Tue Dec 13 18:33:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 633791 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA866C4167B for ; Tue, 13 Dec 2022 18:33:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236443AbiLMSdS (ORCPT ); Tue, 13 Dec 2022 13:33:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236329AbiLMSdP (ORCPT ); Tue, 13 Dec 2022 13:33:15 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1005624BE2 for ; Tue, 13 Dec 2022 10:33:14 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id c1so6361795lfi.7 for ; Tue, 13 Dec 2022 10:33:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=InRO1/GO0LBQ3WvVgtcrxY3ZeFfs/GA4+OpVrE/p20o=; b=KTcKJL49IKgvvm9rtYHQmyBT5w2u5eEINfLTFRGbc9177nexNqx6+dYUB6Ktb86p31 GYD04ljYQzuOcRU4+kBRUG0buiQwHSJ0s3WnjI9mYj4il2C5Mno4jILs1RQVaNUWWH+L Q8eFCzuLzG/8PrGYgPRMJPLlHcGnJth3NeIj6URCt/hCVJ8ik0Zn10bQu/ulO4LP77MK W59MVlABQYhBdo+kzavDru5CwBuu0vgscaT2NHiFtN6pKZJVcdAWB6wy+YSVlcrB+pQT epQTmub+9RKKDdPG7XId9R6vsLaizYsXYV0CfJNEkkWliqcS4DIEF7bh1MmCOQXj7mxL kvKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=InRO1/GO0LBQ3WvVgtcrxY3ZeFfs/GA4+OpVrE/p20o=; b=nQF0GBZ4bl3Q3rADfEV5gU+X2THXcidWuBeZ9jOP60p2D3ImOhhLbcGCemIl7yuT2r TOYKz8WTrXZlDFPEmqvdlolYOvObCX1aKBxf7L6rOHd144IsRF8bd7oG+3soZVkvFar2 L3v67M7iap88B5eAqn7CQULv7uahMruZienodTEsa7dvLkFefe+Fkc3Lo/PPWQBNedgm teQK1DiEEhQfPCpghOIADjGxusIPwHvoOhMLnk0UM9tgMwdmNhqWuWIn/FiP3R5iLRcG T38DprfUbgiTAsdqLRsTenpuFYLKmrGJL5n/Pm0SebJa7saHaoS07lugR7mGjnvTuTHl j/ug== X-Gm-Message-State: ANoB5pnysJ/OEEl18ARBiASzi47cO+rG/ees567yPggHMFot2AAn6W5J OciznkrujfE3LCAzbvYmff4LlQ== X-Google-Smtp-Source: AA0mqf4ipHuTV4LvW/sFkWaOdyO2RF6zS72Eio4sCg4cccdPWkE0P84nDY+/pC8017xPOjQ1bnDDKA== X-Received: by 2002:a05:6512:b8d:b0:4b5:a9ca:9725 with SMTP id b13-20020a0565120b8d00b004b5a9ca9725mr7308471lfv.28.1670956392201; Tue, 13 Dec 2022 10:33:12 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id t10-20020a056512208a00b004b501497b6fsm465963lfr.148.2022.12.13.10.33.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 10:33:11 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Loic Poulain , Robert Foss , Rob Herring , Krzysztof Kozlowski , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/6] arm64: dts: qcom: msm8916: Add fallback CCI compatible Date: Tue, 13 Dec 2022 19:33:01 +0100 Message-Id: <20221213183305.544644-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221213183305.544644-1-konrad.dybcio@linaro.org> References: <20221213183305.544644-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Add a fallback CCI compatible, as required by bindings. Signed-off-by: Konrad Dybcio --- No changes in v2. arch/arm64/boot/dts/qcom/msm8916.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 2ca8e977fc2a..4c0a0078adb5 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -1167,7 +1167,7 @@ ports { }; cci: cci@1b0c000 { - compatible = "qcom,msm8916-cci"; + compatible = "qcom,msm8916-cci", "qcom,msm8226-cci"; #address-cells = <1>; #size-cells = <0>; reg = <0x01b0c000 0x1000>; From patchwork Tue Dec 13 18:33:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 634022 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E6FDC25B04 for ; Tue, 13 Dec 2022 18:33:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236227AbiLMSdh (ORCPT ); Tue, 13 Dec 2022 13:33:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236494AbiLMSdR (ORCPT ); Tue, 13 Dec 2022 13:33:17 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 170F324BC1 for ; Tue, 13 Dec 2022 10:33:16 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id b13so6373724lfo.3 for ; Tue, 13 Dec 2022 10:33:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GmKS4yAhUGAdkF3tOGXdpLmNGlia3T0F+vc1q7Xr8Xo=; b=m2BHS9twa2b7zID1oJ/iao0iVKlBV6K+Ofp9ZgGyUjFGlJHdeExbrLmy3BAULqbWen BC69+a+FWDzYIsTDVi6rL+F7D5+IoErx+6R8g87Rr6VbLXKLiT6rlcIvHTfqtLZ1zidh vsZIV0ffmzAr5/3d4Kyq46HOx9gdyMoosBzk8ONFin5tKRWHHojNDpuFv8z+46KeFUXY l9t7REoqZFy04dGy5+cKh0L8GlAOQZlWmsKfNRC0KUScBrkeLcbIig2EtgehCf8SvK4W UN6IK7R+lvvx8UsbqLi3hg0h2hR9+nwQuKIpul1/y/I6F5DqLiSmgK8aFA7LiFKEzUrZ jNLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GmKS4yAhUGAdkF3tOGXdpLmNGlia3T0F+vc1q7Xr8Xo=; b=jA/uv+7Rk9tk46WMArn1NurAcvAaKpqH2DC1ci9B3C/SlW6RymvSkg1R6jB8viEbmG Hy5RiASHD0VaYJVpNF6D7OEb7VmI21EeiDs2WQeOYQYQ7sC0/jcjDjqaC4QzhlUpnbeH Hbx7BFF5nvcGKvDcu32JWU0kxVFBbmKIARRQlj2W+9ui8KVwYR7BBDDMo6Sk1bLbC90G H68JBoLPok4o8hHVFKHGxKEFAkFfl1uZKFKTUVvgYx9yMog9RA8lrzkF5+1tJiv7JKxv gO11wJq/it7NK/dfc4B2aAWnvG0i5whlaqto3VxPvdQZufO9nhje8Zp0IGWPs5uUTmV1 p/pw== X-Gm-Message-State: ANoB5ploMkELSw4tD1AHPse5Mn+O3gE9ucEKODcOtKWYtVyCfnZ40G3M mxzQOG+wYTDRjH7DF19KrHusww== X-Google-Smtp-Source: AA0mqf5qEhP6JVR1nUz4+hgmxT7n21aOY1ZOIgjsoJZlHCwp8i1wlgj/Qn79G1LiA5H2yhVLohnYtw== X-Received: by 2002:a05:6512:39cf:b0:4b5:3505:d7f9 with SMTP id k15-20020a05651239cf00b004b53505d7f9mr5965987lfu.35.1670956394474; Tue, 13 Dec 2022 10:33:14 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id t10-20020a056512208a00b004b501497b6fsm465963lfr.148.2022.12.13.10.33.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 10:33:13 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Loic Poulain , Robert Foss , Rob Herring , Krzysztof Kozlowski , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/6] arm64: dts: qcom: sdm845: Add fallback CCI compatible Date: Tue, 13 Dec 2022 19:33:02 +0100 Message-Id: <20221213183305.544644-3-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221213183305.544644-1-konrad.dybcio@linaro.org> References: <20221213183305.544644-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Add a fallback CCI compatible, as required by bindings. Signed-off-by: Konrad Dybcio --- No changes in v2. arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 9eecf1b4ebf9..154f5054a200 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -4386,7 +4386,7 @@ port@3 { }; cci: cci@ac4a000 { - compatible = "qcom,sdm845-cci"; + compatible = "qcom,sdm845-cci", "qcom,msm8996-cci"; #address-cells = <1>; #size-cells = <0>; From patchwork Tue Dec 13 18:33:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 633790 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23423C4332F for ; Tue, 13 Dec 2022 18:33:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236494AbiLMSdi (ORCPT ); Tue, 13 Dec 2022 13:33:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236552AbiLMSdS (ORCPT ); Tue, 13 Dec 2022 13:33:18 -0500 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF58115800 for ; Tue, 13 Dec 2022 10:33:16 -0800 (PST) Received: by mail-lf1-x130.google.com with SMTP id bp15so6318790lfb.13 for ; Tue, 13 Dec 2022 10:33:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ksGsvN/7pu3308GYeGLVRZHiJ+Zmt5xVrgiqbPzB6uU=; b=KHE785GhnVqa57gzfPbGtC7eNf7/tGlM+05o5w3DWPkJIXquS5H1dqmw1gZiW73kmJ 31m0n9uYea7TaHHg1zP6ydEth0XIvnm9sR+XeRu6K/7A8Kuyd5Gymf1p9VvPDceH7pcj zgS1wDhNMW59b5NC24Y21O8fx6ATr5Ni2AlZ0LDbEWfXKuUxUGoa2faW9GrNNQJ9G2YW 02mDi0h933jfG1r6XkSzCwsdfvekORBXVbdEwVBNB6MkrLpJKjXaDJFbj9pLcJS/bEHk 44tH1yPYtNOjO/i3a5xe0g4l9lcs5v2FWHkgSDUd8apbj/VkaHEmJ+F2n3/WlPwYzk9P mwhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ksGsvN/7pu3308GYeGLVRZHiJ+Zmt5xVrgiqbPzB6uU=; b=r710Hdib3gf2wcbJOA03Fim7jbSo3Le3LUNXcuTR70IM9yZIxqvo486rHuKQKGSZHs yOCdTrAaYyOcLGDPb9u0a5QBCO5DnANn8e1ULfkt1HIPfw1+fEkGd+1HGJi/SOZ/zInz SWS+aDS6l9+rpzhELMDOprNqxcjMVH+qFdONASIf4/N1oPm5mQvfPnYSkh7kFIaDSWti DSbvyemB5nCEeyCS/nAfAu3X6fm+tZ48wcSDPu63wkryaDr2R63CKW8RafQ2shYjAJxI Vm17+vixmdVLkswWwc+9bu8kBV9vLDVDBLalR/eEEcvFYz3o2RggQrTa04NrZgkRy9x2 X/uQ== X-Gm-Message-State: ANoB5pnaFuzMOEqltHejAqr2+j1k+amRavc29SYBGg4jTTaH0E4Ml4CT qCHbaTCTz4WIYEBURXNFiqSjxcijg2tsY8/g X-Google-Smtp-Source: AA0mqf6h18RwTV2Gno6xS7F985WmlQZ6jX3aVpy3gWecqiJKC/pmNh8c1GDDQCh21cqWfLnXRLbqHw== X-Received: by 2002:ac2:4346:0:b0:4a4:68b7:ded7 with SMTP id o6-20020ac24346000000b004a468b7ded7mr5045486lfl.51.1670956396438; Tue, 13 Dec 2022 10:33:16 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id t10-20020a056512208a00b004b501497b6fsm465963lfr.148.2022.12.13.10.33.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 10:33:15 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Loic Poulain , Robert Foss , Rob Herring , Krzysztof Kozlowski , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/6] arm64: dts: qcom: sm8250: Add fallback CCI compatible Date: Tue, 13 Dec 2022 19:33:03 +0100 Message-Id: <20221213183305.544644-4-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221213183305.544644-1-konrad.dybcio@linaro.org> References: <20221213183305.544644-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Add a fallback CCI compatible, as required by bindings. Signed-off-by: Konrad Dybcio --- No changes in v2. arch/arm64/boot/dts/qcom/sm8250.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 0c4ecdab1244..6d16857fed26 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -3723,7 +3723,7 @@ videocc: clock-controller@abf0000 { }; cci0: cci@ac4f000 { - compatible = "qcom,sm8250-cci"; + compatible = "qcom,sm8250-cci", "qcom,msm8996-cci"; #address-cells = <1>; #size-cells = <0>; @@ -3764,7 +3764,7 @@ cci0_i2c1: i2c-bus@1 { }; cci1: cci@ac50000 { - compatible = "qcom,sm8250-cci"; + compatible = "qcom,sm8250-cci", "qcom,msm8996-cci"; #address-cells = <1>; #size-cells = <0>; From patchwork Tue Dec 13 18:33:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 634021 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 505C2C10F1B for ; Tue, 13 Dec 2022 18:33:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236556AbiLMSdj (ORCPT ); Tue, 13 Dec 2022 13:33:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236566AbiLMSdU (ORCPT ); Tue, 13 Dec 2022 13:33:20 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09D5B24BE3 for ; Tue, 13 Dec 2022 10:33:18 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id q6so6328410lfm.10 for ; Tue, 13 Dec 2022 10:33:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8l+ZRdexUJZDY+Gh4mGAra9DPiKGS/PdB/rIjuu7p+8=; b=yHSWR/sRtLF4N/ot8Q+lyX3uYvgn3mX0Gvmun4zuMErKRWn1mYfODYiewl5C5niL3m vDYtoMV9kzuYenEuGNvY7oUBrffH1oj0xtojxZxw5qX6R7elwiCPwK5AkZ3YK70G5FG1 0FhZxsCa6fgR0JG/KUph3lEL5NDTSr0pjK7srQZXdPGpLshtlZGG1xrSIuCecw//Cei2 xiusP+bo3viL/We2pZjwhSXKObhxKdPwlrGjH24NAnLsuXNxsxPj/pQnJVDOvAf2u3A0 ts+v8gSoeO/OHPgTEn95aWOsi6U3jTtYVRytlZAbdSk6RfYzedNO/BNWhueUSavlltjB nD6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8l+ZRdexUJZDY+Gh4mGAra9DPiKGS/PdB/rIjuu7p+8=; b=xfS6tZuByGyLBcxmVdNDLhPT0XWjiqsI5eR3wBXaXop7BpA1nz1QW3wivVTdznNZmZ TYNXwb7QPylF392Bu+IUn28QQ0O6M0ZfFREQuEJNAQHRBzbn3dpyzwbyOPA2YfTD1UMl yfTdTebVYgg0H+/cWYtY/xWWZh/HvrN8p4cHJWbBDuqixj6AKNIGn4M1sXIgbrPWaSTf uecQESbzt/ZEtheFgri8QBO2PZIvQKwmJtsteqHt7+OzBqb7sX1CGYAsn3nlE9/1AxXr JzgPTPPYbaV1X8eoPayLmOL4W0jRr4ZqLTDT5pv76aJb6xiostqbC5sD3N1snN5CZXHu 1pRQ== X-Gm-Message-State: ANoB5pmYnyYQlkM6kP1BSVhZmf+QwHGhOLNlS/8PlyNFRwV43O987NrD YfYzFyhnjYC0LyED3Zq9NjUtTg== X-Google-Smtp-Source: AA0mqf6TZm7Tqi2o9NVrle+9b0P0OxDXJt5bOYFVL7Dwn2fjQXBfMO6pWm7fQHSO/SrA9aFf1cavTA== X-Received: by 2002:a05:6512:22d2:b0:4b1:97ba:5716 with SMTP id g18-20020a05651222d200b004b197ba5716mr7566864lfu.0.1670956398570; Tue, 13 Dec 2022 10:33:18 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id t10-20020a056512208a00b004b501497b6fsm465963lfr.148.2022.12.13.10.33.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 10:33:17 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Loic Poulain , Robert Foss , Rob Herring , Krzysztof Kozlowski , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/6] arm64: dts: qcom: sm8450: Add fallback CCI compatible Date: Tue, 13 Dec 2022 19:33:04 +0100 Message-Id: <20221213183305.544644-5-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221213183305.544644-1-konrad.dybcio@linaro.org> References: <20221213183305.544644-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Add a fallback CCI compatible, as required by bindings. Signed-off-by: Konrad Dybcio --- Changes in v2: - new patch arch/arm64/boot/dts/qcom/sm8450.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index a8f8ffd728d7..a9ed8443ac02 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -2554,7 +2554,7 @@ IPCC_MPROC_SIGNAL_GLINK_QMP }; cci0: cci@ac15000 { - compatible = "qcom,sm8450-cci"; + compatible = "qcom,sm8450-cci", "qcom,msm8996-cci"; reg = <0 0xac15000 0 0x1000>; interrupts = ; power-domains = <&camcc TITAN_TOP_GDSC>; @@ -2593,7 +2593,7 @@ cci0_i2c1: i2c-bus@1 { }; cci1: cci@ac16000 { - compatible = "qcom,sm8450-cci"; + compatible = "qcom,sm8450-cci", "qcom,msm8996-cci"; reg = <0 0xac16000 0 0x1000>; interrupts = ; power-domains = <&camcc TITAN_TOP_GDSC>; From patchwork Tue Dec 13 18:33:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 633789 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37D73C2D0CC for ; Tue, 13 Dec 2022 18:33:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236566AbiLMSdl (ORCPT ); Tue, 13 Dec 2022 13:33:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236595AbiLMSdW (ORCPT ); Tue, 13 Dec 2022 13:33:22 -0500 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 446CC24BF9 for ; Tue, 13 Dec 2022 10:33:21 -0800 (PST) Received: by mail-lf1-x12e.google.com with SMTP id y25so6333196lfa.9 for ; Tue, 13 Dec 2022 10:33:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2l+AXlkbxgNmUyTRU1MNT9VBG4C9+qJhmYSE2pQfryc=; b=hZ0Z3HPqBRuQXe40KiDGCdasRHkvJ3/XZq+fUiQQWEppZ4EA7ps4V4ntf8Ytz4FDCm oGyW/CgF6rFdfWXTV/guUB9rALgZV+xRbUq5nXB7yhf/eMRN+wahpt3W56eAT4OSAYm5 6rvqdsJqMJcsEenfhp1oF3Mupvym33h9g6mjS1OUAFXRh+eCoWjQPSdcuD5URiSxgc96 UVgUhSELZmMuzUB24nsUs+2jxxAv6jtkvkux7TZND+Y0rx22MxNHt1YwwwVx0oUvC21b ZMiiNlCRs39mdH20rIvF/nUU+Rot6vgbTBYHt6LP6r3wSpPzotsKXtQcaC8f6hcEiCZM BbDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2l+AXlkbxgNmUyTRU1MNT9VBG4C9+qJhmYSE2pQfryc=; b=ln3w1PJGjfywq2Uknk3K5SM5WRw76ZgstD9TMgZgaU+BKwuqTG2huAgAsKtzN+K6CQ HGirFCdrdsR3VYvvNc5/pk2aqiBTRUp81rUg7JR/jRHJx9dXHl1LCvHkrTsawHoMlS2U YZF/BbVbPnfl0Qen1rbHS7LfS/BYnicjUaAlYUG7ARDXF69dQEwbtdTya7EGTVVqGvtp RTTarPghElWkoQAaFFLXQ4jje6X351hTIn5eW9DcWgYHX9OFMnUAq8NzhgBTOHEBZdr6 Ngo0+i+0A6PWFfPa8U6w4veJHuwetWr2Vdl9FbDrCqhs/iRCtloTpL/+dRMn2U3/1Vqb EMNQ== X-Gm-Message-State: ANoB5pk5WUp2uQyv54lFTdz8YKgN54fWIQEEq+RYK/1IIwRtw1Sq2GyR isCqV+xSt3Jhi3AKP51HRGAkdw== X-Google-Smtp-Source: AA0mqf58lXCXDz2c3M4SATdjrw3TeFxZUAi3AgKMRM39jYYVs4z6yaKAKIQ4GBfcrAb51SaWrPJKjA== X-Received: by 2002:a05:6512:3495:b0:4b5:5616:ecd2 with SMTP id v21-20020a056512349500b004b55616ecd2mr5324020lfr.55.1670956400592; Tue, 13 Dec 2022 10:33:20 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id t10-20020a056512208a00b004b501497b6fsm465963lfr.148.2022.12.13.10.33.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 10:33:19 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Loic Poulain , Robert Foss , Rob Herring , Krzysztof Kozlowski , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/6] i2c: qcom-cci: Deprecate duplicated compatibles Date: Tue, 13 Dec 2022 19:33:05 +0100 Message-Id: <20221213183305.544644-6-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221213183305.544644-1-konrad.dybcio@linaro.org> References: <20221213183305.544644-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Many compatibles have been introduced, pointing to the same config data. Leave a note reminding future developers to not do that again. Signed-off-by: Konrad Dybcio --- Changes in v2: - new patch drivers/i2c/busses/i2c-qcom-cci.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-qcom-cci.c b/drivers/i2c/busses/i2c-qcom-cci.c index a4b97fe3c3a5..01358472680c 100644 --- a/drivers/i2c/busses/i2c-qcom-cci.c +++ b/drivers/i2c/busses/i2c-qcom-cci.c @@ -811,9 +811,15 @@ static const struct cci_data cci_v2_data = { static const struct of_device_id cci_dt_match[] = { { .compatible = "qcom,msm8226-cci", .data = &cci_v1_data}, - { .compatible = "qcom,msm8916-cci", .data = &cci_v1_data}, { .compatible = "qcom,msm8974-cci", .data = &cci_v1_5_data}, { .compatible = "qcom,msm8996-cci", .data = &cci_v2_data}, + + + /* + * Legacy compatibles kept for backwards compatibility. + * Do not add any new ones unless they introduce a new config + */ + { .compatible = "qcom,msm8916-cci", .data = &cci_v1_data}, { .compatible = "qcom,sdm845-cci", .data = &cci_v2_data}, { .compatible = "qcom,sm8250-cci", .data = &cci_v2_data}, { .compatible = "qcom,sm8450-cci", .data = &cci_v2_data},