All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: firmware: qcom,scm: document MSM8226 clocks
@ 2022-11-22  9:23 Krzysztof Kozlowski
  2022-11-22  9:23 ` [PATCH 2/2] dt-bindings: firmware: qcom,scm: narrow clocks and interconnects Krzysztof Kozlowski
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-22  9:23 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Robert Marko, Das Srinagesh, linux-arm-msm,
	devicetree, linux-kernel
  Cc: Krzysztof Kozlowski, Abel Vesa, Sibi Sankar, Melody Olvera

Document the clocks (core, bus and iface) used on MSM8226 SCM.

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

---

Cc: Abel Vesa <abel.vesa@linaro.org>
Cc: Sibi Sankar <quic_sibis@quicinc.com>
Cc: Melody Olvera <quic_molvera@quicinc.com>
---
 Documentation/devicetree/bindings/firmware/qcom,scm.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml
index 25688571ee7c..fc986f2f5d30 100644
--- a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml
+++ b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml
@@ -111,6 +111,7 @@ allOf:
             enum:
               - qcom,scm-apq8084
               - qcom,scm-mdm9607
+              - qcom,scm-msm8226
               - qcom,scm-msm8916
               - qcom,scm-msm8953
               - qcom,scm-msm8974
-- 
2.34.1


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

* [PATCH 2/2] dt-bindings: firmware: qcom,scm: narrow clocks and interconnects
  2022-11-22  9:23 [PATCH 1/2] dt-bindings: firmware: qcom,scm: document MSM8226 clocks Krzysztof Kozlowski
@ 2022-11-22  9:23 ` Krzysztof Kozlowski
  2022-11-30 19:11   ` Rob Herring
  2022-11-30 19:11 ` [PATCH 1/2] dt-bindings: firmware: qcom,scm: document MSM8226 clocks Rob Herring
  2023-01-11  5:09 ` (subset) " Bjorn Andersson
  2 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-22  9:23 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Robert Marko, Das Srinagesh, linux-arm-msm,
	devicetree, linux-kernel
  Cc: Krzysztof Kozlowski, Abel Vesa, Sibi Sankar, Melody Olvera

SCM has clock inputs and interconnects only on some of the SoCs, so
disallow them inb other cases, which makes the binding stricter.

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

---

Cc: Abel Vesa <abel.vesa@linaro.org>
Cc: Sibi Sankar <quic_sibis@quicinc.com>
Cc: Melody Olvera <quic_molvera@quicinc.com>
---
 .../bindings/firmware/qcom,scm.yaml           | 44 ++++++++++++++++---
 1 file changed, 37 insertions(+), 7 deletions(-)

diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml
index fc986f2f5d30..8e6e9ebb343d 100644
--- a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml
+++ b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml
@@ -82,6 +82,32 @@ properties:
     description: TCSR hardware block
 
 allOf:
+  # Clocks
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - qcom,scm-apq8064
+              - qcom,scm-apq8084
+              - qcom,scm-mdm9607
+              - qcom,scm-msm8226
+              - qcom,scm-msm8660
+              - qcom,scm-msm8916
+              - qcom,scm-msm8953
+              - qcom,scm-msm8960
+              - qcom,scm-msm8974
+              - qcom,scm-msm8976
+              - qcom,scm-sm6375
+    then:
+      required:
+        - clocks
+        - clock-names
+    else:
+      properties:
+        clock-names: false
+        clocks: false
+
   - if:
       properties:
         compatible:
@@ -100,10 +126,6 @@ allOf:
         clocks:
           maxItems: 1
 
-      required:
-        - clocks
-        - clock-names
-
   - if:
       properties:
         compatible:
@@ -128,9 +150,17 @@ allOf:
           minItems: 3
           maxItems: 3
 
-      required:
-        - clocks
-        - clock-names
+  # Interconnects
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              enum:
+                - qcom,scm-sm8450
+    then:
+      properties:
+        interconnects: false
 
 required:
   - compatible
-- 
2.34.1


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

* Re: [PATCH 1/2] dt-bindings: firmware: qcom,scm: document MSM8226 clocks
  2022-11-22  9:23 [PATCH 1/2] dt-bindings: firmware: qcom,scm: document MSM8226 clocks Krzysztof Kozlowski
  2022-11-22  9:23 ` [PATCH 2/2] dt-bindings: firmware: qcom,scm: narrow clocks and interconnects Krzysztof Kozlowski
@ 2022-11-30 19:11 ` Rob Herring
  2023-01-11  5:09 ` (subset) " Bjorn Andersson
  2 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2022-11-30 19:11 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Rob Herring, Melody Olvera, Sibi Sankar, Robert Marko, Abel Vesa,
	devicetree, linux-kernel, Andy Gross, Bjorn Andersson,
	Das Srinagesh, Krzysztof Kozlowski, Konrad Dybcio, linux-arm-msm


On Tue, 22 Nov 2022 10:23:44 +0100, Krzysztof Kozlowski wrote:
> Document the clocks (core, bus and iface) used on MSM8226 SCM.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> ---
> 
> Cc: Abel Vesa <abel.vesa@linaro.org>
> Cc: Sibi Sankar <quic_sibis@quicinc.com>
> Cc: Melody Olvera <quic_molvera@quicinc.com>
> ---
>  Documentation/devicetree/bindings/firmware/qcom,scm.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 

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

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

* Re: [PATCH 2/2] dt-bindings: firmware: qcom,scm: narrow clocks and interconnects
  2022-11-22  9:23 ` [PATCH 2/2] dt-bindings: firmware: qcom,scm: narrow clocks and interconnects Krzysztof Kozlowski
@ 2022-11-30 19:11   ` Rob Herring
  0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2022-11-30 19:11 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: linux-arm-msm, Konrad Dybcio, Bjorn Andersson, devicetree,
	Melody Olvera, Andy Gross, Krzysztof Kozlowski, linux-kernel,
	Abel Vesa, Robert Marko, Rob Herring, Das Srinagesh, Sibi Sankar


On Tue, 22 Nov 2022 10:23:45 +0100, Krzysztof Kozlowski wrote:
> SCM has clock inputs and interconnects only on some of the SoCs, so
> disallow them inb other cases, which makes the binding stricter.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> ---
> 
> Cc: Abel Vesa <abel.vesa@linaro.org>
> Cc: Sibi Sankar <quic_sibis@quicinc.com>
> Cc: Melody Olvera <quic_molvera@quicinc.com>
> ---
>  .../bindings/firmware/qcom,scm.yaml           | 44 ++++++++++++++++---
>  1 file changed, 37 insertions(+), 7 deletions(-)
> 

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

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

* Re: (subset) [PATCH 1/2] dt-bindings: firmware: qcom,scm: document MSM8226 clocks
  2022-11-22  9:23 [PATCH 1/2] dt-bindings: firmware: qcom,scm: document MSM8226 clocks Krzysztof Kozlowski
  2022-11-22  9:23 ` [PATCH 2/2] dt-bindings: firmware: qcom,scm: narrow clocks and interconnects Krzysztof Kozlowski
  2022-11-30 19:11 ` [PATCH 1/2] dt-bindings: firmware: qcom,scm: document MSM8226 clocks Rob Herring
@ 2023-01-11  5:09 ` Bjorn Andersson
  2 siblings, 0 replies; 5+ messages in thread
From: Bjorn Andersson @ 2023-01-11  5:09 UTC (permalink / raw)
  To: Krzysztof Kozlowski, quic_gurus, konrad.dybcio, robimarko,
	devicetree, agross, linux-kernel, linux-arm-msm,
	krzysztof.kozlowski+dt, robh+dt
  Cc: quic_molvera, quic_sibis, abel.vesa

On Tue, 22 Nov 2022 10:23:44 +0100, Krzysztof Kozlowski wrote:
> Document the clocks (core, bus and iface) used on MSM8226 SCM.
> 
> 

Applied, thanks!

[1/2] dt-bindings: firmware: qcom,scm: document MSM8226 clocks
      commit: 8f3945a9adce3934943b365bcd5ae2932737f028
[2/2] dt-bindings: firmware: qcom,scm: narrow clocks and interconnects
      commit: c5b8840c895a5b0291ef84e3f13d92c3414033e7

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

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

end of thread, other threads:[~2023-01-11  5:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-22  9:23 [PATCH 1/2] dt-bindings: firmware: qcom,scm: document MSM8226 clocks Krzysztof Kozlowski
2022-11-22  9:23 ` [PATCH 2/2] dt-bindings: firmware: qcom,scm: narrow clocks and interconnects Krzysztof Kozlowski
2022-11-30 19:11   ` Rob Herring
2022-11-30 19:11 ` [PATCH 1/2] dt-bindings: firmware: qcom,scm: document MSM8226 clocks Rob Herring
2023-01-11  5:09 ` (subset) " Bjorn Andersson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.