Skip to contentSkip to conversation

dt-bindings: clock: convert vf610-clock.txt to yaml format

PATCH Applied Frank Li 3 participants 3 messages Apr 11, 2025 – Apr 29, 2025

Subsystems (3)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: clock: convert vf610-clock.txt to yaml format

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

---
 .../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
Documentation/devicetree/bindings/clock/fsl,vf610-ccm.yaml new file +58 -0
new file mode 100644
index 0000000000000..29ae5be51acf8
@@ -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 <[email protected]>
+
+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";
+    };
+
Documentation/devicetree/bindings/clock/vf610-clock.txt deleted +0 -41

41 lines not on this page · raw message

Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Frank Li

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

Quoted 8 lines
---
 .../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
maintainer Applied
#2 lore raw
In reply to Frank Li

Quoting Frank Li (2025-04-11 14:23:38)

Quoted 8 lines

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

---

Applied to clk-next