devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Two apcs-kpss-global.yaml fixes
@ 2022-07-07 15:09 Bryan O'Donoghue
  2022-07-07 15:09 ` [PATCH v2 1/2] dt-bindings: mailbox: qcom,apcs-kpss-global: Add syscon const for relevant entries Bryan O'Donoghue
  2022-07-07 15:09 ` [PATCH v2 2/2] dt-bindings: mailbox: qcom,apcs-kpss-global: Add clock-output-names Bryan O'Donoghue
  0 siblings, 2 replies; 7+ messages in thread
From: Bryan O'Donoghue @ 2022-07-07 15:09 UTC (permalink / raw)
  To: agross, bjorn.andersson, konrad.dybcio, jassisinghbrar, robh+dt,
	krzysztof.kozlowski+dt
  Cc: linux-arm-msm, devicetree, shawn.guo, bryan.odonoghue

V2:
- Fixes example which threw an error in v1 - Rob's bot
- Updates the patch prefix - Krzysztof
- Fixes broken non-DT schema syntax clock-output-name - Krzysztof

V1:
Adding in msm8939.dtsi and running the binding checks is throwing up two
errors for me.

In the first instance we use syscon on the 8939 and should declare it in
the compat list. Doing a quick grep it looks like that fix should be
applied to a number of existing declarations too.

In the second instance we just need to document clock-output-names for the
a53 mux PLL.

Bryan O'Donoghue (2):
  dt-bindings: mailbox: qcom,apcs-kpss-global: Add syscon const for
    relevant entries
  dt-bindings: mailbox: qcom,apcs-kpss-global: Add clock-output-names

 .../mailbox/qcom,apcs-kpss-global.yaml        | 52 +++++++++++--------
 1 file changed, 31 insertions(+), 21 deletions(-)

-- 
2.36.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2 1/2] dt-bindings: mailbox: qcom,apcs-kpss-global: Add syscon const for relevant entries
  2022-07-07 15:09 [PATCH v2 0/2] Two apcs-kpss-global.yaml fixes Bryan O'Donoghue
@ 2022-07-07 15:09 ` Bryan O'Donoghue
  2022-07-11 22:31   ` Rob Herring
  2022-07-12  8:02   ` Krzysztof Kozlowski
  2022-07-07 15:09 ` [PATCH v2 2/2] dt-bindings: mailbox: qcom,apcs-kpss-global: Add clock-output-names Bryan O'Donoghue
  1 sibling, 2 replies; 7+ messages in thread
From: Bryan O'Donoghue @ 2022-07-07 15:09 UTC (permalink / raw)
  To: agross, bjorn.andersson, konrad.dybcio, jassisinghbrar, robh+dt,
	krzysztof.kozlowski+dt
  Cc: linux-arm-msm, devicetree, shawn.guo, bryan.odonoghue

msm8916, msm8939, msm8953, msm8994 and qcs404 already declare or should
declare syscon as they have drivers that use syscon inside of the apcs-kpss
block.

grep apcs arch/arm64/boot/dts/qcom/* | grep syscon

Add in the additional syscon in the documentation for the above mentioned
parts.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 .../mailbox/qcom,apcs-kpss-global.yaml        | 46 ++++++++++---------
 1 file changed, 25 insertions(+), 21 deletions(-)

diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
index 3b5ba7ecc19d9..f504652fc0ea2 100644
--- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
+++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
@@ -15,26 +15,30 @@ maintainers:
 
 properties:
   compatible:
-    enum:
-      - qcom,ipq6018-apcs-apps-global
-      - qcom,ipq8074-apcs-apps-global
-      - qcom,msm8916-apcs-kpss-global
-      - qcom,msm8939-apcs-kpss-global
-      - qcom,msm8953-apcs-kpss-global
-      - qcom,msm8976-apcs-kpss-global
-      - qcom,msm8994-apcs-kpss-global
-      - qcom,msm8996-apcs-hmss-global
-      - qcom,msm8998-apcs-hmss-global
-      - qcom,qcm2290-apcs-hmss-global
-      - qcom,qcs404-apcs-apps-global
-      - qcom,sc7180-apss-shared
-      - qcom,sc8180x-apss-shared
-      - qcom,sdm660-apcs-hmss-global
-      - qcom,sdm845-apss-shared
-      - qcom,sm6125-apcs-hmss-global
-      - qcom,sm6115-apcs-hmss-global
-      - qcom,sm8150-apss-shared
-
+    oneOf:
+      - items:
+          - enum:
+              - qcom,ipq6018-apcs-apps-global
+              - qcom,ipq8074-apcs-apps-global
+              - qcom,msm8976-apcs-kpss-global
+              - qcom,msm8996-apcs-hmss-global
+              - qcom,msm8998-apcs-hmss-global
+              - qcom,qcm2290-apcs-hmss-global
+              - qcom,sc7180-apss-shared
+              - qcom,sc8180x-apss-shared
+              - qcom,sdm660-apcs-hmss-global
+              - qcom,sdm845-apss-shared
+              - qcom,sm6125-apcs-hmss-global
+              - qcom,sm6115-apcs-hmss-global
+              - qcom,sm8150-apss-shared
+      - items:
+          - enum:
+              - qcom,msm8916-apcs-kpss-global
+              - qcom,msm8939-apcs-kpss-global
+              - qcom,msm8953-apcs-kpss-global
+              - qcom,msm8994-apcs-kpss-global
+              - qcom,qcs404-apcs-apps-global
+          - const: syscon
   reg:
     maxItems: 1
 
@@ -121,7 +125,7 @@ examples:
     #define GCC_APSS_AHB_CLK_SRC  1
     #define GCC_GPLL0_AO_OUT_MAIN 123
     apcs: mailbox@b011000 {
-        compatible = "qcom,qcs404-apcs-apps-global";
+        compatible = "qcom,qcs404-apcs-apps-global", "syscon";
         reg = <0x0b011000 0x1000>;
         #mbox-cells = <1>;
         clocks = <&apcs_hfpll>, <&gcc GCC_GPLL0_AO_OUT_MAIN>;
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 2/2] dt-bindings: mailbox: qcom,apcs-kpss-global: Add clock-output-names
  2022-07-07 15:09 [PATCH v2 0/2] Two apcs-kpss-global.yaml fixes Bryan O'Donoghue
  2022-07-07 15:09 ` [PATCH v2 1/2] dt-bindings: mailbox: qcom,apcs-kpss-global: Add syscon const for relevant entries Bryan O'Donoghue
@ 2022-07-07 15:09 ` Bryan O'Donoghue
  2022-07-11 22:32   ` Rob Herring
  2022-07-12  8:02   ` Krzysztof Kozlowski
  1 sibling, 2 replies; 7+ messages in thread
From: Bryan O'Donoghue @ 2022-07-07 15:09 UTC (permalink / raw)
  To: agross, bjorn.andersson, konrad.dybcio, jassisinghbrar, robh+dt,
	krzysztof.kozlowski+dt
  Cc: linux-arm-msm, devicetree, shawn.guo, bryan.odonoghue

Add clock-output-names as optional so that SoCs such as the msm8939 which
have multiple a53 PLLs can latch the appropriate output name in
drivers/clk/qcom/apcs-msm8916.c.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml  | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
index f504652fc0ea2..313efdfb0cafd 100644
--- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
+++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
@@ -63,6 +63,12 @@ properties:
       - const: aux
       - const: ref
 
+  clock-output-names:
+    items:
+      - const: a53mux_c0
+      - const: a53mux_c1
+      - const: a53mux_cci
+
 required:
   - compatible
   - reg
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: mailbox: qcom,apcs-kpss-global: Add syscon const for relevant entries
  2022-07-07 15:09 ` [PATCH v2 1/2] dt-bindings: mailbox: qcom,apcs-kpss-global: Add syscon const for relevant entries Bryan O'Donoghue
@ 2022-07-11 22:31   ` Rob Herring
  2022-07-12  8:02   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 7+ messages in thread
From: Rob Herring @ 2022-07-11 22:31 UTC (permalink / raw)
  To: Bryan O'Donoghue
  Cc: konrad.dybcio, linux-arm-msm, agross, bjorn.andersson, devicetree,
	krzysztof.kozlowski+dt, robh+dt, shawn.guo, jassisinghbrar

On Thu, 07 Jul 2022 16:09:32 +0100, Bryan O'Donoghue wrote:
> msm8916, msm8939, msm8953, msm8994 and qcs404 already declare or should
> declare syscon as they have drivers that use syscon inside of the apcs-kpss
> block.
> 
> grep apcs arch/arm64/boot/dts/qcom/* | grep syscon
> 
> Add in the additional syscon in the documentation for the above mentioned
> parts.
> 
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
> ---
>  .../mailbox/qcom,apcs-kpss-global.yaml        | 46 ++++++++++---------
>  1 file changed, 25 insertions(+), 21 deletions(-)
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 2/2] dt-bindings: mailbox: qcom,apcs-kpss-global: Add clock-output-names
  2022-07-07 15:09 ` [PATCH v2 2/2] dt-bindings: mailbox: qcom,apcs-kpss-global: Add clock-output-names Bryan O'Donoghue
@ 2022-07-11 22:32   ` Rob Herring
  2022-07-12  8:02   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 7+ messages in thread
From: Rob Herring @ 2022-07-11 22:32 UTC (permalink / raw)
  To: Bryan O'Donoghue
  Cc: shawn.guo, jassisinghbrar, robh+dt, krzysztof.kozlowski+dt,
	linux-arm-msm, agross, konrad.dybcio, bjorn.andersson, devicetree

On Thu, 07 Jul 2022 16:09:33 +0100, Bryan O'Donoghue wrote:
> Add clock-output-names as optional so that SoCs such as the msm8939 which
> have multiple a53 PLLs can latch the appropriate output name in
> drivers/clk/qcom/apcs-msm8916.c.
> 
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
> ---
>  .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml  | 6 ++++++
>  1 file changed, 6 insertions(+)
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: mailbox: qcom,apcs-kpss-global: Add syscon const for relevant entries
  2022-07-07 15:09 ` [PATCH v2 1/2] dt-bindings: mailbox: qcom,apcs-kpss-global: Add syscon const for relevant entries Bryan O'Donoghue
  2022-07-11 22:31   ` Rob Herring
@ 2022-07-12  8:02   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-12  8:02 UTC (permalink / raw)
  To: Bryan O'Donoghue, agross, bjorn.andersson, konrad.dybcio,
	jassisinghbrar, robh+dt, krzysztof.kozlowski+dt
  Cc: linux-arm-msm, devicetree, shawn.guo

On 07/07/2022 17:09, Bryan O'Donoghue wrote:
> msm8916, msm8939, msm8953, msm8994 and qcs404 already declare or should
> declare syscon as they have drivers that use syscon inside of the apcs-kpss
> block.
> 
> grep apcs arch/arm64/boot/dts/qcom/* | grep syscon
> 
> Add in the additional syscon in the documentation for the above mentioned
> parts.
> 
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 2/2] dt-bindings: mailbox: qcom,apcs-kpss-global: Add clock-output-names
  2022-07-07 15:09 ` [PATCH v2 2/2] dt-bindings: mailbox: qcom,apcs-kpss-global: Add clock-output-names Bryan O'Donoghue
  2022-07-11 22:32   ` Rob Herring
@ 2022-07-12  8:02   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-12  8:02 UTC (permalink / raw)
  To: Bryan O'Donoghue, agross, bjorn.andersson, konrad.dybcio,
	jassisinghbrar, robh+dt, krzysztof.kozlowski+dt
  Cc: linux-arm-msm, devicetree, shawn.guo

On 07/07/2022 17:09, Bryan O'Donoghue wrote:
> Add clock-output-names as optional so that SoCs such as the msm8939 which
> have multiple a53 PLLs can latch the appropriate output name in
> drivers/clk/qcom/apcs-msm8916.c.
> 
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-07-12  8:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-07 15:09 [PATCH v2 0/2] Two apcs-kpss-global.yaml fixes Bryan O'Donoghue
2022-07-07 15:09 ` [PATCH v2 1/2] dt-bindings: mailbox: qcom,apcs-kpss-global: Add syscon const for relevant entries Bryan O'Donoghue
2022-07-11 22:31   ` Rob Herring
2022-07-12  8:02   ` Krzysztof Kozlowski
2022-07-07 15:09 ` [PATCH v2 2/2] dt-bindings: mailbox: qcom,apcs-kpss-global: Add clock-output-names Bryan O'Donoghue
2022-07-11 22:32   ` Rob Herring
2022-07-12  8:02   ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).