From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Konrad Dybcio <konrad.dybcio@linaro.org>,
linux-arm-msm@vger.kernel.org, andersson@kernel.org,
agross@kernel.org
Cc: marijn.suijten@somainline.org,
Loic Poulain <loic.poulain@linaro.org>,
Robert Foss <robert.foss@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
linux-i2c@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/6] dt-bindings: i2c: qcom,i2c-cci: Fall back to common compatibles
Date: Tue, 13 Dec 2022 20:16:44 +0100 [thread overview]
Message-ID: <91e0e86c-480b-41a4-e4d5-21d59199e430@linaro.org> (raw)
In-Reply-To: <20221213183305.544644-1-konrad.dybcio@linaro.org>
On 13/12/2022 19:33, Konrad Dybcio wrote:
> 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 <konrad.dybcio@linaro.org>
> ---
> 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
The old version is here also correct and simpler. I don't think you need
to change it this way.
> 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
The same comment.
> 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>;
>
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-12-13 19:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-13 18:33 [PATCH v2 1/6] dt-bindings: i2c: qcom,i2c-cci: Fall back to common compatibles Konrad Dybcio
2022-12-13 18:33 ` [PATCH v2 2/6] arm64: dts: qcom: msm8916: Add fallback CCI compatible Konrad Dybcio
2022-12-13 18:33 ` [PATCH v2 3/6] arm64: dts: qcom: sdm845: " Konrad Dybcio
2022-12-13 18:33 ` [PATCH v2 4/6] arm64: dts: qcom: sm8250: " Konrad Dybcio
2022-12-13 18:33 ` [PATCH v2 5/6] arm64: dts: qcom: sm8450: " Konrad Dybcio
2022-12-13 18:33 ` [PATCH v2 6/6] i2c: qcom-cci: Deprecate duplicated compatibles Konrad Dybcio
2022-12-13 19:17 ` Krzysztof Kozlowski
2023-01-09 12:07 ` Wolfram Sang
2022-12-13 19:16 ` Krzysztof Kozlowski [this message]
2022-12-13 19:20 ` [PATCH v2 1/6] dt-bindings: i2c: qcom,i2c-cci: Fall back to common compatibles Konrad Dybcio
2022-12-13 19:28 ` Krzysztof Kozlowski
2023-01-09 12:06 ` Wolfram Sang
2023-01-11 5:09 ` (subset) " Bjorn Andersson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=91e0e86c-480b-41a4-e4d5-21d59199e430@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=loic.poulain@linaro.org \
--cc=marijn.suijten@somainline.org \
--cc=robert.foss@linaro.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox