* [PATCH] dt-bindings: clock: qcom,turingcc: convert to dtschema
@ 2024-07-15 8:43 Rayyan Ansari
2024-07-15 16:11 ` Conor Dooley
0 siblings, 1 reply; 3+ messages in thread
From: Rayyan Ansari @ 2024-07-15 8:43 UTC (permalink / raw)
To: devicetree
Cc: Rayyan Ansari, 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, currently only
used for QCS404, from the old text format to yaml.
Signed-off-by: Rayyan Ansari <rayyan.ansari@linaro.org>
---
.../bindings/clock/qcom,turingcc.txt | 19 --------
.../bindings/clock/qcom,turingcc.yaml | 47 +++++++++++++++++++
2 files changed, 47 insertions(+), 19 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/clock/qcom,turingcc.txt
create mode 100644 Documentation/devicetree/bindings/clock/qcom,turingcc.yaml
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>;
- };
diff --git a/Documentation/devicetree/bindings/clock/qcom,turingcc.yaml b/Documentation/devicetree/bindings/clock/qcom,turingcc.yaml
new file mode 100644
index 000000000000..0a57e42fb4d9
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/qcom,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,turingcc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Turing Clock & Reset Controller
+
+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>
+ 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] dt-bindings: clock: qcom,turingcc: convert to dtschema
2024-07-15 8:43 [PATCH] dt-bindings: clock: qcom,turingcc: convert to dtschema Rayyan Ansari
@ 2024-07-15 16:11 ` Conor Dooley
2024-07-15 16:12 ` Conor Dooley
0 siblings, 1 reply; 3+ messages in thread
From: Conor Dooley @ 2024-07-15 16:11 UTC (permalink / raw)
To: Rayyan Ansari
Cc: devicetree, Bjorn Andersson, Michael Turquette, Stephen Boyd,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-arm-msm,
linux-clk, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 3136 bytes --]
On Mon, Jul 15, 2024 at 09:43:10AM +0100, Rayyan Ansari wrote:
> Convert the bindings for the Turing Clock Controller, currently only
> used for QCS404, from the old text format to yaml.
>
> Signed-off-by: Rayyan Ansari <rayyan.ansari@linaro.org>
> ---
> .../bindings/clock/qcom,turingcc.txt | 19 --------
> .../bindings/clock/qcom,turingcc.yaml | 47 +++++++++++++++++++
> 2 files changed, 47 insertions(+), 19 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/clock/qcom,turingcc.txt
> create mode 100644 Documentation/devicetree/bindings/clock/qcom,turingcc.yaml
>
> 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>;
> - };
> diff --git a/Documentation/devicetree/bindings/clock/qcom,turingcc.yaml b/Documentation/devicetree/bindings/clock/qcom,turingcc.yaml
> new file mode 100644
> index 000000000000..0a57e42fb4d9
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/qcom,turingcc.yaml
filename should match the compatible in the binding.
> @@ -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,turingcc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Qualcomm Turing Clock & Reset Controller
> +
> +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>
> + turingcc: clock-controller@800000 {
nit: drop the label
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Cheers,
Conor.
> + compatible = "qcom,qcs404-turingcc";
> + reg = <0x00800000 0x30000>;
> + clocks = <&gcc GCC_CDSP_CFG_AHB_CLK>;
> +
> + #clock-cells = <1>;
> + #reset-cells = <1>;
> + };
> --
> 2.45.2
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: clock: qcom,turingcc: convert to dtschema
2024-07-15 16:11 ` Conor Dooley
@ 2024-07-15 16:12 ` Conor Dooley
0 siblings, 0 replies; 3+ messages in thread
From: Conor Dooley @ 2024-07-15 16:12 UTC (permalink / raw)
To: Rayyan Ansari
Cc: devicetree, Bjorn Andersson, Michael Turquette, Stephen Boyd,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-arm-msm,
linux-clk, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1896 bytes --]
On Mon, Jul 15, 2024 at 05:11:49PM +0100, Conor Dooley wrote:
> On Mon, Jul 15, 2024 at 09:43:10AM +0100, Rayyan Ansari wrote:
> > diff --git a/Documentation/devicetree/bindings/clock/qcom,turingcc.yaml b/Documentation/devicetree/bindings/clock/qcom,turingcc.yaml
> > new file mode 100644
> > index 000000000000..0a57e42fb4d9
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/clock/qcom,turingcc.yaml
>
> filename should match the compatible in the binding.
>
> > @@ -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,turingcc.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: Qualcomm Turing Clock & Reset Controller
> > +
> > +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>
> > + turingcc: clock-controller@800000 {
>
> nit: drop the label
>
> Acked-by: Conor Dooley <conor.dooley@microchip.com>
gah, I forgot to say that ack was conditional on the filename being
changed.
>
> Cheers,
> Conor.
>
> > + compatible = "qcom,qcs404-turingcc";
> > + reg = <0x00800000 0x30000>;
> > + clocks = <&gcc GCC_CDSP_CFG_AHB_CLK>;
> > +
> > + #clock-cells = <1>;
> > + #reset-cells = <1>;
> > + };
> > --
> > 2.45.2
> >
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-15 16:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-15 8:43 [PATCH] dt-bindings: clock: qcom,turingcc: convert to dtschema Rayyan Ansari
2024-07-15 16:11 ` Conor Dooley
2024-07-15 16:12 ` Conor Dooley
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).