Skip to contentSkip to conversation

dt-bindings: clock: Convert TI-NSPIRE clocks to DT schema

PATCH Applied Rob Herring (Arm) 2 participants 2 messages May 21, 2025 – Jun 19, 2025

Subsystems (2)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: clock: Convert TI-NSPIRE clocks to DT schema

Convert the TI-NSPIRE clock bindings to DT schema format. It's a straight forward conversion.

---
 .../bindings/clock/lsi,nspire-cx-clock.yaml   | 33 +++++++++++++++++++
 .../bindings/clock/nspire-clock.txt           | 24 --------------
 2 files changed, 33 insertions(+), 24 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/clock/lsi,nspire-cx-clock.yaml
 delete mode 100644 Documentation/devicetree/bindings/clock/nspire-clock.txt
Documentation/devicetree/bindings/clock/lsi,nspire-cx-clock.yaml new file +33 -0
new file mode 100644
index 000000000000..52c217d210d0
@@ -0,0 +1,33 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/lsi,nspire-cx-clock.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: TI-NSPIRE Clocks
+
+maintainers:
+  - Daniel Tang <[email protected]>
+
+properties:
+  compatible:
+    enum:
+      - lsi,nspire-cx-ahb-divider
+      - lsi,nspire-classic-ahb-divider
+      - lsi,nspire-cx-clock
+      - lsi,nspire-classic-clock
+
+  reg:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+
+  '#clock-cells':
+    const: 0
+
+additionalProperties: false
+
+required:
+  - compatible
+  - reg
Documentation/devicetree/bindings/clock/nspire-clock.txt deleted +0 -24
deleted file mode 100644
index 7c3bc8bb5b9f..000000000000
@@ -1,24 +0,0 @@
-TI-NSPIRE Clocks
-
-Required properties:
-- compatible: Valid compatible properties include:
-	"lsi,nspire-cx-ahb-divider" for the AHB divider in the CX model
-	"lsi,nspire-classic-ahb-divider" for the AHB divider in the older model
-	"lsi,nspire-cx-clock" for the base clock in the CX model
-	"lsi,nspire-classic-clock" for the base clock in the older model
-
-- reg: Physical base address of the controller and length of memory mapped
-	region.
-
-Optional:
-- clocks: For the "nspire-*-ahb-divider" compatible clocks, this is the parent
-	clock where it divides the rate from.
-
-Example:
-
-ahb_clk {
-	#clock-cells = <0>;
-	compatible = "lsi,nspire-cx-clock";
-	reg = <0x900B0000 0x4>;
-	clocks = <&base_clk>;
-};
Signature · 1 line
2.47.2
maintainer Applied
#1 lore raw

Quoting Rob Herring (Arm) (2025-05-21 14:07:49)

Quoted 5 lines

Convert the TI-NSPIRE clock bindings to DT schema format. It's a straight forward conversion.

---

Applied to clk-next