Linux clock framework development
 help / color / mirror / Atom feed
* [PATCH 1/1] dt-bindings: clock: convert vf610-clock.txt to yaml format
@ 2025-04-11 21:23 Frank Li
  2025-04-12 18:03 ` Rob Herring (Arm)
  2025-04-29 21:06 ` Stephen Boyd
  0 siblings, 2 replies; 3+ messages in thread
From: Frank Li @ 2025-04-11 21:23 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, open list:COMMON CLK FRAMEWORK,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list
  Cc: imx

Convert vf610-clock.txt to yaml format.

Additional changes:
- swap audio_ext and enet_ext to match existed dts order
- remove clock consumer in example

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
 .../bindings/clock/fsl,vf610-ccm.yaml         | 58 +++++++++++++++++++
 .../devicetree/bindings/clock/vf610-clock.txt | 41 -------------
 2 files changed, 58 insertions(+), 41 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/fsl,vf610-ccm.yaml
 delete mode 100644 Documentation/devicetree/bindings/clock/vf610-clock.txt

diff --git a/Documentation/devicetree/bindings/clock/fsl,vf610-ccm.yaml b/Documentation/devicetree/bindings/clock/fsl,vf610-ccm.yaml
new file mode 100644
index 0000000000000..29ae5be51acf8
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/fsl,vf610-ccm.yaml
@@ -0,0 +1,58 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/fsl,vf610-ccm.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Clock for Freescale Vybrid VF610 SOC
+
+description:
+  The clock consumer should specify the desired clock by having the clock
+  ID in its "clocks" phandle cell. See include/dt-bindings/clock/vf610-clock.h
+  for the full list of VF610 clock IDs
+
+maintainers:
+  - Frank Li <Frank.Li@nxp.com>
+
+properties:
+  compatible:
+    const: fsl,vf610-ccm
+
+  reg:
+    maxItems: 1
+
+  '#clock-cells':
+    const: 1
+
+  clocks:
+    items:
+      - description: external crystal oscillator 32KHz, recommended
+      - description: external crystal oscillator 24MHz, recommended
+      - description: audio
+      - description: enet
+    minItems: 2
+
+  clock-names:
+    items:
+      - const: sxosc
+      - const: fxosc
+      - const: enet_ext
+      - const: audio_ext
+    minItems: 2
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    clock-controller@4006b000 {
+        compatible = "fsl,vf610-ccm";
+        reg = <0x4006b000 0x1000>;
+        #clock-cells = <1>;
+        clocks = <&sxosc>, <&fxosc>;
+        clock-names = "sxosc", "fxosc";
+    };
+
diff --git a/Documentation/devicetree/bindings/clock/vf610-clock.txt b/Documentation/devicetree/bindings/clock/vf610-clock.txt
deleted file mode 100644
index 109ffa3a5b661..0000000000000
--- a/Documentation/devicetree/bindings/clock/vf610-clock.txt
+++ /dev/null
@@ -1,41 +0,0 @@
-* Clock bindings for Freescale Vybrid VF610 SOC
-
-Required properties:
-- compatible: Should be "fsl,vf610-ccm"
-- reg: Address and length of the register set
-- #clock-cells: Should be <1>
-
-Optional properties:
-- clocks: list of clock identifiers which are external input clocks to the
-	given clock controller. Please refer the next section to find
-	the input clocks for a given controller.
-- clock-names: list of names of clocks which are external input clocks to the
-	given clock controller.
-
-Input clocks for top clock controller:
-	- sxosc (external crystal oscillator 32KHz, recommended)
-	- fxosc (external crystal oscillator 24MHz, recommended)
-	- audio_ext
-	- enet_ext
-
-The clock consumer should specify the desired clock by having the clock
-ID in its "clocks" phandle cell. See include/dt-bindings/clock/vf610-clock.h
-for the full list of VF610 clock IDs.
-
-Examples:
-
-clks: ccm@4006b000 {
-	compatible = "fsl,vf610-ccm";
-	reg = <0x4006b000 0x1000>;
-	#clock-cells = <1>;
-	clocks = <&sxosc>, <&fxosc>;
-	clock-names = "sxosc", "fxosc";
-};
-
-uart1: serial@40028000 {
-	compatible = "fsl,vf610-uart";
-	reg = <0x40028000 0x1000>;
-	interrupts = <0 62 0x04>;
-	clocks = <&clks VF610_CLK_UART1>;
-	clock-names = "ipg";
-};
-- 
2.34.1


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

* Re: [PATCH 1/1] dt-bindings: clock: convert vf610-clock.txt to yaml format
  2025-04-11 21:23 [PATCH 1/1] dt-bindings: clock: convert vf610-clock.txt to yaml format Frank Li
@ 2025-04-12 18:03 ` Rob Herring (Arm)
  2025-04-29 21:06 ` Stephen Boyd
  1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring (Arm) @ 2025-04-12 18:03 UTC (permalink / raw)
  To: Frank Li
  Cc: Krzysztof Kozlowski, Conor Dooley, Stephen Boyd, devicetree,
	Michael Turquette, imx, linux-kernel, linux-clk


On Fri, 11 Apr 2025 17:23:38 -0400, Frank Li wrote:
> Convert vf610-clock.txt to yaml format.
> 
> Additional changes:
> - swap audio_ext and enet_ext to match existed dts order
> - remove clock consumer in example
> 
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
>  .../bindings/clock/fsl,vf610-ccm.yaml         | 58 +++++++++++++++++++
>  .../devicetree/bindings/clock/vf610-clock.txt | 41 -------------
>  2 files changed, 58 insertions(+), 41 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/clock/fsl,vf610-ccm.yaml
>  delete mode 100644 Documentation/devicetree/bindings/clock/vf610-clock.txt
> 

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


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

* Re: [PATCH 1/1] dt-bindings: clock: convert vf610-clock.txt to yaml format
  2025-04-11 21:23 [PATCH 1/1] dt-bindings: clock: convert vf610-clock.txt to yaml format Frank Li
  2025-04-12 18:03 ` Rob Herring (Arm)
@ 2025-04-29 21:06 ` Stephen Boyd
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2025-04-29 21:06 UTC (permalink / raw)
  To: Conor Dooley, Frank Li, Krzysztof Kozlowski, Michael Turquette,
	Rob Herring, devicetree, linux-clk, linux-kernel
  Cc: imx

Quoting Frank Li (2025-04-11 14:23:38)
> Convert vf610-clock.txt to yaml format.
> 
> Additional changes:
> - swap audio_ext and enet_ext to match existed dts order
> - remove clock consumer in example
> 
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---

Applied to clk-next

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

end of thread, other threads:[~2025-04-29 21:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-11 21:23 [PATCH 1/1] dt-bindings: clock: convert vf610-clock.txt to yaml format Frank Li
2025-04-12 18:03 ` Rob Herring (Arm)
2025-04-29 21:06 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox