[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <992b69a5-3fa9-ada3-a7bd-1c596cac9487@linaro.org>
Date: Sat, 22 Jul 2023 11:38:40 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Konrad Dybcio <konrad.dybcio@...aro.org>,
Andy Gross <agross@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Georgi Djakov <djakov@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
Shawn Guo <shawn.guo@...aro.org>
Cc: Marijn Suijten <marijn.suijten@...ainline.org>,
Konrad Dybcio <konradybcio@...nel.org>,
linux-arm-msm@...r.kernel.org, linux-pm@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/7] dt-bindings: interconnect: qcom: Fix and separate out
MSM8916
On 21/07/2023 15:54, Konrad Dybcio wrote:
> Separate out MSM8916 icc bindings and fix the clocks description by
> removing the wrong internal RPM bus clock representation that we've
> been carrying for years.
>
> Replace the example in qcom,rpm.yaml with MSM8939 to keep it relevant
> to the file.
>
> Signed-off-by: Konrad Dybcio <konrad.dybcio@...aro.org>
> ---
> .../bindings/interconnect/qcom,msm8916.yaml | 52 ++++++++++++++++++++++
> .../devicetree/bindings/interconnect/qcom,rpm.yaml | 24 +++++-----
> 2 files changed, 65 insertions(+), 11 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/interconnect/qcom,msm8916.yaml b/Documentation/devicetree/bindings/interconnect/qcom,msm8916.yaml
> new file mode 100644
> index 000000000000..49baf808c087
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/interconnect/qcom,msm8916.yaml
> @@ -0,0 +1,52 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/interconnect/qcom,msm8916.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Qualcomm MSM8916 Network-On-Chip interconnect
> +
> +maintainers:
> + - Konrad Dybcio <konradybcio@...nel.org>
> +
> +description: |
> + The Qualcomm MSM8916 interconnect providers support adjusting the
> + bandwidth requirements between the various NoC fabrics.
> +
> +allOf:
> + - $ref: qcom,rpm-common.yaml#
> +
> +properties:
> + compatible:
> + enum:
> + - qcom,msm8916-bimc
> + - qcom,msm8916-pcnoc
> + - qcom,msm8916-snoc
> +
Keeping reg here also makes it nicely aligned with required: (property
and required are both in one file)
> +required:
> + - compatible
> + - reg
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/clock/qcom,rpmcc.h>
> +
> + snoc: interconnect@...000 {
> + compatible = "qcom,msm8916-snoc";
> + reg = <0x00580000 0x14000>;
> + #interconnect-cells = <1>;
> + };
> +
> + pcnoc: interconnect@...000 {
> + compatible = "qcom,msm8916-pcnoc";
> + reg = <0x00500000 0x11000>;
> + #interconnect-cells = <1>;
> + };
> +
> + bimc: interconnect@...000 {
> + compatible = "qcom,msm8916-bimc";
> + reg = <0x00400000 0x62000>;
> + #interconnect-cells = <1>;
> + };
Just keep one example.
> diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml
> index 4f95d512012a..788c5e88445a 100644
> --- a/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml
> +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml
> @@ -20,9 +20,6 @@ properties:
>
> compatible:
> enum:
> - - qcom,msm8916-bimc
> - - qcom,msm8916-pcnoc
> - - qcom,msm8916-snoc
> - qcom,msm8939-bimc
> - qcom,msm8939-pcnoc
> - qcom,msm8939-snoc
> @@ -109,9 +106,6 @@ allOf:
> compatible:
> contains:
> enum:
> - - qcom,msm8916-bimc
> - - qcom,msm8916-pcnoc
> - - qcom,msm8916-snoc
> - qcom,msm8939-bimc
> - qcom,msm8939-pcnoc
> - qcom,msm8939-snoc
> @@ -254,7 +248,7 @@ examples:
> #include <dt-bindings/clock/qcom,rpmcc.h>
>
> bimc: interconnect@...000 {
> - compatible = "qcom,msm8916-bimc";
> + compatible = "qcom,msm8939-bimc";
> reg = <0x00400000 0x62000>;
> #interconnect-cells = <1>;
> clock-names = "bus", "bus_a";
> @@ -263,7 +257,7 @@ examples:
> };
>
> pcnoc: interconnect@...000 {
> - compatible = "qcom,msm8916-pcnoc";
> + compatible = "qcom,msm8939-pcnoc";
> reg = <0x00500000 0x11000>;
> #interconnect-cells = <1>;
> clock-names = "bus", "bus_a";
This part makes little sense since you remove the file few patches
later. I suggest reverse the order of patches. Split out first the oones
without examples (like 8939), so the last step is kind of rename.
Best regards,
Krzysztof
Powered by blists - more mailing lists