devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Reference the common qcom,gcc.yaml schema
@ 2025-07-17  6:38 Satya Priya Kakitapalli
  2025-07-17  6:38 ` [PATCH v2 1/4] dt-bindings: clock: qcom,sm8150-camcc: Reference qcom,gcc.yaml Satya Priya Kakitapalli
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Satya Priya Kakitapalli @ 2025-07-17  6:38 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Jeff Hugo
  Cc: Ajit Pandey, Jagadeesh Kona, Imran Shaik, Taniya Das,
	linux-arm-msm, linux-clk, devicetree, linux-kernel,
	Satya Priya Kakitapalli, Krzysztof Kozlowski

For all the possible Qualcomm clock controller bindings
add qcom,gcc.yaml reference to unify the common
parts of the binding.

Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com>
---
Changes in v2:
- Drop the patches which didn't have the power-domain-cells.
- Add Krzysztof's Suggested-by tag to all the patches.
- Drop the Reviewed-by tag given on 1st patch as the series got NAK.
- Link to v1: https://lore.kernel.org/r/20250709-gcc-ref-fixes-v1-0-ceddde06775b@quicinc.com

---
Satya Priya Kakitapalli (4):
      dt-bindings: clock: qcom,sm8150-camcc: Reference qcom,gcc.yaml
      dt-bindings: clock: qcom,mmcc: Reference qcom,gcc.yaml
      dt-bindings: clock: qcom,sm4450-camcc: Reference qcom,gcc.yaml
      dt-bindings: clock: qcom,sm4450-dispcc: Reference qcom,gcc.yaml

 .../devicetree/bindings/clock/qcom,mmcc.yaml       | 24 +++-------------------
 .../bindings/clock/qcom,sm4450-camcc.yaml          | 20 ++++--------------
 .../bindings/clock/qcom,sm4450-dispcc.yaml         | 20 ++++--------------
 .../bindings/clock/qcom,sm8150-camcc.yaml          | 20 ++++--------------
 4 files changed, 15 insertions(+), 69 deletions(-)
---
base-commit: 26ffb3d6f02cd0935fb9fa3db897767beee1cb2a
change-id: 20250708-gcc-ref-fixes-3f05521a10b1

Best regards,
-- 
Satya Priya Kakitapalli <quic_skakitap@quicinc.com>


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

* [PATCH v2 1/4] dt-bindings: clock: qcom,sm8150-camcc: Reference qcom,gcc.yaml
  2025-07-17  6:38 [PATCH v2 0/4] Reference the common qcom,gcc.yaml schema Satya Priya Kakitapalli
@ 2025-07-17  6:38 ` Satya Priya Kakitapalli
  2025-07-17  6:47   ` Krzysztof Kozlowski
  2025-07-17  6:38 ` [PATCH v2 2/4] dt-bindings: clock: qcom,mmcc: " Satya Priya Kakitapalli
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 9+ messages in thread
From: Satya Priya Kakitapalli @ 2025-07-17  6:38 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Jeff Hugo
  Cc: Ajit Pandey, Jagadeesh Kona, Imran Shaik, Taniya Das,
	linux-arm-msm, linux-clk, devicetree, linux-kernel,
	Satya Priya Kakitapalli, Krzysztof Kozlowski

Reference the common qcom,gcc.yaml schema to unify the common
parts of the binding.

Suggested-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com>
---
 .../devicetree/bindings/clock/qcom,sm8150-camcc.yaml | 20 ++++----------------
 1 file changed, 4 insertions(+), 16 deletions(-)

diff --git a/Documentation/devicetree/bindings/clock/qcom,sm8150-camcc.yaml b/Documentation/devicetree/bindings/clock/qcom,sm8150-camcc.yaml
index 5e9f62d7866cfc816845e5cd3fc132894bffe5fd..1b505f473e293af77d5158e8e65dac12244133f4 100644
--- a/Documentation/devicetree/bindings/clock/qcom,sm8150-camcc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,sm8150-camcc.yaml
@@ -19,9 +19,6 @@ properties:
   compatible:
     const: qcom,sm8150-camcc
 
-  reg:
-    maxItems: 1
-
   clocks:
     items:
       - description: Board XO source
@@ -37,26 +34,17 @@ properties:
     description:
       A phandle to an OPP node describing required MMCX performance point.
 
-  '#clock-cells':
-    const: 1
-
-  '#reset-cells':
-    const: 1
-
-  '#power-domain-cells':
-    const: 1
-
 required:
   - compatible
-  - reg
   - clocks
   - power-domains
   - required-opps
-  - '#clock-cells'
-  - '#reset-cells'
   - '#power-domain-cells'
 
-additionalProperties: false
+allOf:
+  - $ref: qcom,gcc.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |

-- 
2.25.1


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

* [PATCH v2 2/4] dt-bindings: clock: qcom,mmcc: Reference qcom,gcc.yaml
  2025-07-17  6:38 [PATCH v2 0/4] Reference the common qcom,gcc.yaml schema Satya Priya Kakitapalli
  2025-07-17  6:38 ` [PATCH v2 1/4] dt-bindings: clock: qcom,sm8150-camcc: Reference qcom,gcc.yaml Satya Priya Kakitapalli
@ 2025-07-17  6:38 ` Satya Priya Kakitapalli
  2025-07-17  6:47   ` Krzysztof Kozlowski
  2025-07-17  6:38 ` [PATCH v2 3/4] dt-bindings: clock: qcom,sm4450-camcc: " Satya Priya Kakitapalli
  2025-07-17  6:38 ` [PATCH v2 4/4] dt-bindings: clock: qcom,sm4450-dispcc: " Satya Priya Kakitapalli
  3 siblings, 1 reply; 9+ messages in thread
From: Satya Priya Kakitapalli @ 2025-07-17  6:38 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Jeff Hugo
  Cc: Ajit Pandey, Jagadeesh Kona, Imran Shaik, Taniya Das,
	linux-arm-msm, linux-clk, devicetree, linux-kernel,
	Satya Priya Kakitapalli, Krzysztof Kozlowski

Reference the common qcom,gcc.yaml schema to unify the common
parts of the binding.

Suggested-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com>
---
 .../devicetree/bindings/clock/qcom,mmcc.yaml       | 24 +++-------------------
 1 file changed, 3 insertions(+), 21 deletions(-)

diff --git a/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml b/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml
index 59ac288ca5f12de4f14fac3ce0d783d1ee1ebb4f..53ceec9673a810c2230548a47e045959e8159806 100644
--- a/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml
@@ -38,36 +38,16 @@ properties:
     minItems: 7
     maxItems: 13
 
-  '#clock-cells':
-    const: 1
-
-  '#reset-cells':
-    const: 1
-
-  '#power-domain-cells':
-    const: 1
-
-  reg:
-    maxItems: 1
-
-  protected-clocks:
-    description:
-      Protected clock specifier list as per common clock binding
-
   vdd-gfx-supply:
     description:
       Regulator supply for the GPU_GX GDSC
 
 required:
   - compatible
-  - reg
-  - '#clock-cells'
-  - '#reset-cells'
   - '#power-domain-cells'
 
-additionalProperties: false
-
 allOf:
+  - $ref: qcom,gcc.yaml#
   - if:
       properties:
         compatible:
@@ -351,6 +331,8 @@ allOf:
             - const: dp_link_2x_clk_divsel_five
             - const: dp_vco_divided_clk_src_mux
 
+unevaluatedProperties: false
+
 examples:
   # Example for MMCC for MSM8960:
   - |

-- 
2.25.1


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

* [PATCH v2 3/4] dt-bindings: clock: qcom,sm4450-camcc: Reference qcom,gcc.yaml
  2025-07-17  6:38 [PATCH v2 0/4] Reference the common qcom,gcc.yaml schema Satya Priya Kakitapalli
  2025-07-17  6:38 ` [PATCH v2 1/4] dt-bindings: clock: qcom,sm8150-camcc: Reference qcom,gcc.yaml Satya Priya Kakitapalli
  2025-07-17  6:38 ` [PATCH v2 2/4] dt-bindings: clock: qcom,mmcc: " Satya Priya Kakitapalli
@ 2025-07-17  6:38 ` Satya Priya Kakitapalli
  2025-07-17  6:47   ` Krzysztof Kozlowski
  2025-07-17  6:38 ` [PATCH v2 4/4] dt-bindings: clock: qcom,sm4450-dispcc: " Satya Priya Kakitapalli
  3 siblings, 1 reply; 9+ messages in thread
From: Satya Priya Kakitapalli @ 2025-07-17  6:38 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Jeff Hugo
  Cc: Ajit Pandey, Jagadeesh Kona, Imran Shaik, Taniya Das,
	linux-arm-msm, linux-clk, devicetree, linux-kernel,
	Satya Priya Kakitapalli, Krzysztof Kozlowski

Reference the common qcom,gcc.yaml schema to unify the common
parts of the binding.

Suggested-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com>
---
 .../devicetree/bindings/clock/qcom,sm4450-camcc.yaml | 20 ++++----------------
 1 file changed, 4 insertions(+), 16 deletions(-)

diff --git a/Documentation/devicetree/bindings/clock/qcom,sm4450-camcc.yaml b/Documentation/devicetree/bindings/clock/qcom,sm4450-camcc.yaml
index f54ce865880dedfb4bb7c38cbd39a6f5690cda31..1464f3d1f48552d0056715340eb1905d7b2b3e1c 100644
--- a/Documentation/devicetree/bindings/clock/qcom,sm4450-camcc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,sm4450-camcc.yaml
@@ -20,32 +20,20 @@ properties:
   compatible:
     const: qcom,sm4450-camcc
 
-  reg:
-    maxItems: 1
-
   clocks:
     items:
       - description: Board XO source
       - description: Camera AHB clock source from GCC
 
-  '#clock-cells':
-    const: 1
-
-  '#reset-cells':
-    const: 1
-
-  '#power-domain-cells':
-    const: 1
-
 required:
   - compatible
-  - reg
   - clocks
-  - '#clock-cells'
-  - '#reset-cells'
   - '#power-domain-cells'
 
-additionalProperties: false
+allOf:
+  - $ref: qcom,gcc.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |

-- 
2.25.1


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

* [PATCH v2 4/4] dt-bindings: clock: qcom,sm4450-dispcc: Reference qcom,gcc.yaml
  2025-07-17  6:38 [PATCH v2 0/4] Reference the common qcom,gcc.yaml schema Satya Priya Kakitapalli
                   ` (2 preceding siblings ...)
  2025-07-17  6:38 ` [PATCH v2 3/4] dt-bindings: clock: qcom,sm4450-camcc: " Satya Priya Kakitapalli
@ 2025-07-17  6:38 ` Satya Priya Kakitapalli
  2025-07-17  6:48   ` Krzysztof Kozlowski
  3 siblings, 1 reply; 9+ messages in thread
From: Satya Priya Kakitapalli @ 2025-07-17  6:38 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Jeff Hugo
  Cc: Ajit Pandey, Jagadeesh Kona, Imran Shaik, Taniya Das,
	linux-arm-msm, linux-clk, devicetree, linux-kernel,
	Satya Priya Kakitapalli, Krzysztof Kozlowski

Reference the common qcom,gcc.yaml schema to unify the common
parts of the binding.

Suggested-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com>
---
 .../bindings/clock/qcom,sm4450-dispcc.yaml           | 20 ++++----------------
 1 file changed, 4 insertions(+), 16 deletions(-)

diff --git a/Documentation/devicetree/bindings/clock/qcom,sm4450-dispcc.yaml b/Documentation/devicetree/bindings/clock/qcom,sm4450-dispcc.yaml
index 2aa05353eff17326b9f4234ac1c99dcd82a6abdb..03208166689a9305142d619509dd8fb73a2f629c 100644
--- a/Documentation/devicetree/bindings/clock/qcom,sm4450-dispcc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,sm4450-dispcc.yaml
@@ -20,9 +20,6 @@ properties:
   compatible:
     const: qcom,sm4450-dispcc
 
-  reg:
-    maxItems: 1
-
   clocks:
     items:
       - description: Board XO source
@@ -32,24 +29,15 @@ properties:
       - description: Byte clock from DSI PHY0
       - description: Pixel clock from DSI PHY0
 
-  '#clock-cells':
-    const: 1
-
-  '#reset-cells':
-    const: 1
-
-  '#power-domain-cells':
-    const: 1
-
 required:
   - compatible
-  - reg
   - clocks
-  - '#clock-cells'
-  - '#reset-cells'
   - '#power-domain-cells'
 
-additionalProperties: false
+allOf:
+  - $ref: qcom,gcc.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |

-- 
2.25.1


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

* Re: [PATCH v2 3/4] dt-bindings: clock: qcom,sm4450-camcc: Reference qcom,gcc.yaml
  2025-07-17  6:38 ` [PATCH v2 3/4] dt-bindings: clock: qcom,sm4450-camcc: " Satya Priya Kakitapalli
@ 2025-07-17  6:47   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2025-07-17  6:47 UTC (permalink / raw)
  To: Satya Priya Kakitapalli, Bjorn Andersson, Michael Turquette,
	Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Jeff Hugo
  Cc: Ajit Pandey, Jagadeesh Kona, Imran Shaik, Taniya Das,
	linux-arm-msm, linux-clk, devicetree, linux-kernel

On 17/07/2025 08:38, Satya Priya Kakitapalli wrote:
> Reference the common qcom,gcc.yaml schema to unify the common
> parts of the binding.
> 
> Suggested-by: Krzysztof Kozlowski <krzk@kernel.org>
> Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com>
> ---
>  .../devicetree/bindings/clock/qcom,sm4450-camcc.yaml | 20 ++++----------------
>  1 file changed, 4 insertions(+), 16 deletions(-)

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

Best regards,
Krzysztof

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

* Re: [PATCH v2 1/4] dt-bindings: clock: qcom,sm8150-camcc: Reference qcom,gcc.yaml
  2025-07-17  6:38 ` [PATCH v2 1/4] dt-bindings: clock: qcom,sm8150-camcc: Reference qcom,gcc.yaml Satya Priya Kakitapalli
@ 2025-07-17  6:47   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2025-07-17  6:47 UTC (permalink / raw)
  To: Satya Priya Kakitapalli, Bjorn Andersson, Michael Turquette,
	Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Jeff Hugo
  Cc: Ajit Pandey, Jagadeesh Kona, Imran Shaik, Taniya Das,
	linux-arm-msm, linux-clk, devicetree, linux-kernel

On 17/07/2025 08:38, Satya Priya Kakitapalli wrote:
> Reference the common qcom,gcc.yaml schema to unify the common
> parts of the binding.
> 
> Suggested-by: Krzysztof Kozlowski <krzk@kernel.org>
> Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com>
> ---
>  .../devicetree/bindings/clock/qcom,sm8150-camcc.yaml | 20 ++++----------------
>  1 file changed, 4 insertions(+), 16 deletions(-)

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

Best regards,
Krzysztof

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

* Re: [PATCH v2 2/4] dt-bindings: clock: qcom,mmcc: Reference qcom,gcc.yaml
  2025-07-17  6:38 ` [PATCH v2 2/4] dt-bindings: clock: qcom,mmcc: " Satya Priya Kakitapalli
@ 2025-07-17  6:47   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2025-07-17  6:47 UTC (permalink / raw)
  To: Satya Priya Kakitapalli, Bjorn Andersson, Michael Turquette,
	Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Jeff Hugo
  Cc: Ajit Pandey, Jagadeesh Kona, Imran Shaik, Taniya Das,
	linux-arm-msm, linux-clk, devicetree, linux-kernel

On 17/07/2025 08:38, Satya Priya Kakitapalli wrote:
> Reference the common qcom,gcc.yaml schema to unify the common
> parts of the binding.
> 
> Suggested-by: Krzysztof Kozlowski <krzk@kernel.org>
> Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com>
> ---
>  .../devicetree/bindings/clock/qcom,mmcc.yaml       | 24 +++-------------------
>  1 file changed, 3 insertions(+), 21 deletions(-)
> 

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

Best regards,
Krzysztof

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

* Re: [PATCH v2 4/4] dt-bindings: clock: qcom,sm4450-dispcc: Reference qcom,gcc.yaml
  2025-07-17  6:38 ` [PATCH v2 4/4] dt-bindings: clock: qcom,sm4450-dispcc: " Satya Priya Kakitapalli
@ 2025-07-17  6:48   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2025-07-17  6:48 UTC (permalink / raw)
  To: Satya Priya Kakitapalli, Bjorn Andersson, Michael Turquette,
	Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Jeff Hugo
  Cc: Ajit Pandey, Jagadeesh Kona, Imran Shaik, Taniya Das,
	linux-arm-msm, linux-clk, devicetree, linux-kernel

On 17/07/2025 08:38, Satya Priya Kakitapalli wrote:
> Reference the common qcom,gcc.yaml schema to unify the common
> parts of the binding.
> 
> Suggested-by: Krzysztof Kozlowski <krzk@kernel.org>
> Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com>
> ---
>  .../bindings/clock/qcom,sm4450-dispcc.yaml           | 20 ++++----------------
>  1 file changed, 4 insertions(+), 16 deletions(-)
> 

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

Best regards,
Krzysztof

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

end of thread, other threads:[~2025-07-17  6:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-17  6:38 [PATCH v2 0/4] Reference the common qcom,gcc.yaml schema Satya Priya Kakitapalli
2025-07-17  6:38 ` [PATCH v2 1/4] dt-bindings: clock: qcom,sm8150-camcc: Reference qcom,gcc.yaml Satya Priya Kakitapalli
2025-07-17  6:47   ` Krzysztof Kozlowski
2025-07-17  6:38 ` [PATCH v2 2/4] dt-bindings: clock: qcom,mmcc: " Satya Priya Kakitapalli
2025-07-17  6:47   ` Krzysztof Kozlowski
2025-07-17  6:38 ` [PATCH v2 3/4] dt-bindings: clock: qcom,sm4450-camcc: " Satya Priya Kakitapalli
2025-07-17  6:47   ` Krzysztof Kozlowski
2025-07-17  6:38 ` [PATCH v2 4/4] dt-bindings: clock: qcom,sm4450-dispcc: " Satya Priya Kakitapalli
2025-07-17  6:48   ` 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).