Skip to contentSkip to conversation

dt-bindings: clock: nxp,lpc3220-clk: Convert bindings to DT schema

PATCH Applied Animesh Agarwal 3 participants 3 messages Jul 31, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dt-bindings: clock: nxp,lpc3220-clk: Convert bindings to DT schema

Convert the NXP LPC32xx Clock Controller bindings to yaml format.

---
Changes in v2:
- Listed the items with description in the clock property.
- Corrected clock-names property.

---
 .../bindings/clock/nxp,lpc3220-clk.txt        | 30 -----------
 .../bindings/clock/nxp,lpc3220-clk.yaml       | 51 +++++++++++++++++++
 2 files changed, 51 insertions(+), 30 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.txt
 create mode 100644 Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.yaml
Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.txt deleted +0 -30
deleted file mode 100644
index 20cbca3f41d8..000000000000
@@ -1,30 +0,0 @@
-NXP LPC32xx Clock Controller
-
-Required properties:
-- compatible: should be "nxp,lpc3220-clk"
-- reg:  should contain clock controller registers location and length
-- #clock-cells: must be 1, the cell holds id of a clock provided by the
-  clock controller
-- clocks: phandles of external oscillators, the list must contain one
-  32768 Hz oscillator and may have one optional high frequency oscillator
-- clock-names: list of external oscillator clock names, must contain
-  "xtal_32k" and may have optional "xtal"
-
-Examples:
-
-	/* System Control Block */
-	scb {
-		compatible = "simple-bus";
-		ranges = <0x0 0x040004000 0x00001000>;
-		#address-cells = <1>;
-		#size-cells = <1>;
-
-		clk: clock-controller@0 {
-			compatible = "nxp,lpc3220-clk";
-			reg = <0x00 0x114>;
-			#clock-cells = <1>;
-
-			clocks = <&xtal_32k>, <&xtal>;
-			clock-names = "xtal_32k", "xtal";
-		};
-	};
Documentation/devicetree/bindings/clock/nxp,lpc3220-clk.yaml new file +51 -0

51 lines not on this page · raw message

Signature · 1 line
2.45.2
maintainer Applied
#2 lore raw
In reply to Animesh Agarwal

Quoting Animesh Agarwal (2024-07-30 23:51:33)

Quoted 5 lines

Convert the NXP LPC32xx Clock Controller bindings to yaml format.

---

I'm not sure if I'm supposed to pick this up directly or if some NXP maintainer is going to do it. There wasn't anyone on the "To:" line, so I guess I'll pick it up directly.

Applied to clk-next