devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] dt-bindings: clock: qcom,qcs404-turingcc: convert to dtschema
@ 2024-07-16  8:56 Rayyan Ansari
  2024-07-16 10:12 ` Krzysztof Kozlowski
  2024-08-15 20:40 ` Bjorn Andersson
  0 siblings, 2 replies; 3+ messages in thread
From: Rayyan Ansari @ 2024-07-16  8:56 UTC (permalink / raw)
  To: devicetree
  Cc: Rayyan Ansari, Conor Dooley, Bjorn Andersson, Michael Turquette,
	Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-arm-msm, linux-clk, linux-kernel

Convert the bindings for the Turing Clock Controller on QCS404 from
the old text format to yaml.

Signed-off-by: Rayyan Ansari <rayyan.ansari@linaro.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
---
v1 -> v2: rename file to compatible string, remove label in example dt,
          add acked-by tag
v1: https://lore.kernel.org/all/20240715084313.14098-1-rayyan.ansari@linaro.org/

 .../bindings/clock/qcom,qcs404-turingcc.yaml  | 47 +++++++++++++++++++
 .../bindings/clock/qcom,turingcc.txt          | 19 --------
 2 files changed, 47 insertions(+), 19 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/qcom,qcs404-turingcc.yaml
 delete mode 100644 Documentation/devicetree/bindings/clock/qcom,turingcc.txt

diff --git a/Documentation/devicetree/bindings/clock/qcom,qcs404-turingcc.yaml b/Documentation/devicetree/bindings/clock/qcom,qcs404-turingcc.yaml
new file mode 100644
index 000000000000..033e010754a2
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/qcom,qcs404-turingcc.yaml
@@ -0,0 +1,47 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/qcom,qcs404-turingcc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Turing Clock & Reset Controller on QCS404
+
+maintainers:
+  - Bjorn Andersson <andersson@kernel.org>
+
+properties:
+  compatible:
+    const: qcom,qcs404-turingcc
+
+  reg:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+
+  '#clock-cells':
+    const: 1
+
+  '#reset-cells':
+    const: 1
+
+required:
+  - compatible
+  - reg
+  - clocks
+  - '#clock-cells'
+  - '#reset-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/clock/qcom,gcc-qcs404.h>
+    clock-controller@800000 {
+        compatible = "qcom,qcs404-turingcc";
+        reg = <0x00800000 0x30000>;
+        clocks = <&gcc GCC_CDSP_CFG_AHB_CLK>;
+
+        #clock-cells = <1>;
+        #reset-cells = <1>;
+    };
diff --git a/Documentation/devicetree/bindings/clock/qcom,turingcc.txt b/Documentation/devicetree/bindings/clock/qcom,turingcc.txt
deleted file mode 100644
index 126517de5f9a..000000000000
--- a/Documentation/devicetree/bindings/clock/qcom,turingcc.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-Qualcomm Turing Clock & Reset Controller Binding
-------------------------------------------------
-
-Required properties :
-- compatible: shall contain "qcom,qcs404-turingcc".
-- reg: shall contain base register location and length.
-- clocks: ahb clock for the TuringCC
-- #clock-cells: from common clock binding, shall contain 1.
-- #reset-cells: from common reset binding, shall contain 1.
-
-Example:
-	turingcc: clock-controller@800000 {
-		compatible = "qcom,qcs404-turingcc";
-		reg = <0x00800000 0x30000>;
-		clocks = <&gcc GCC_CDSP_CFG_AHB_CLK>;
-
-		#clock-cells = <1>;
-		#reset-cells = <1>;
-	};
-- 
2.45.2


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

* Re: [PATCH v2] dt-bindings: clock: qcom,qcs404-turingcc: convert to dtschema
  2024-07-16  8:56 [PATCH v2] dt-bindings: clock: qcom,qcs404-turingcc: convert to dtschema Rayyan Ansari
@ 2024-07-16 10:12 ` Krzysztof Kozlowski
  2024-08-15 20:40 ` Bjorn Andersson
  1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2024-07-16 10:12 UTC (permalink / raw)
  To: Rayyan Ansari, devicetree
  Cc: Conor Dooley, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-arm-msm,
	linux-clk, linux-kernel

On 16/07/2024 10:56, Rayyan Ansari wrote:
> Convert the bindings for the Turing Clock Controller on QCS404 from
> the old text format to yaml.
> 
> Signed-off-by: Rayyan Ansari <rayyan.ansari@linaro.org>
> Acked-by: Conor Dooley <conor.dooley@microchip.com>
> ---
> v1 -> v2: rename file to compatible string, remove label in example dt,
>           add acked-by tag
> v1: https://lore.kernel.org/all/20240715084313.14098-1-rayyan.ansari@linaro.org/
> 

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


Best regards,
Krzysztof


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

* Re: [PATCH v2] dt-bindings: clock: qcom,qcs404-turingcc: convert to dtschema
  2024-07-16  8:56 [PATCH v2] dt-bindings: clock: qcom,qcs404-turingcc: convert to dtschema Rayyan Ansari
  2024-07-16 10:12 ` Krzysztof Kozlowski
@ 2024-08-15 20:40 ` Bjorn Andersson
  1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2024-08-15 20:40 UTC (permalink / raw)
  To: devicetree, Rayyan Ansari
  Cc: Conor Dooley, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, linux-clk,
	linux-kernel


On Tue, 16 Jul 2024 09:56:20 +0100, Rayyan Ansari wrote:
> Convert the bindings for the Turing Clock Controller on QCS404 from
> the old text format to yaml.
> 
> 

Applied, thanks!

[1/1] dt-bindings: clock: qcom,qcs404-turingcc: convert to dtschema
      commit: d0c2eccf64fd5b1a995c048cb6ad6fc53727fb17

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

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

end of thread, other threads:[~2024-08-15 20:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-16  8:56 [PATCH v2] dt-bindings: clock: qcom,qcs404-turingcc: convert to dtschema Rayyan Ansari
2024-07-16 10:12 ` Krzysztof Kozlowski
2024-08-15 20:40 ` Bjorn Andersson

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).