]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: clock: Convert TI-NSPIRE clocks to DT schema
authorRob Herring (Arm) <robh@kernel.org>
Wed, 21 May 2025 21:07:49 +0000 (16:07 -0500)
committerStephen Boyd <sboyd@kernel.org>
Thu, 19 Jun 2025 01:40:02 +0000 (18:40 -0700)
Convert the TI-NSPIRE clock bindings to DT schema format. It's a
straight forward conversion.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250521210750.60759-1-robh@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Documentation/devicetree/bindings/clock/lsi,nspire-cx-clock.yaml [new file with mode: 0644]
Documentation/devicetree/bindings/clock/nspire-clock.txt [deleted file]

diff --git a/Documentation/devicetree/bindings/clock/lsi,nspire-cx-clock.yaml b/Documentation/devicetree/bindings/clock/lsi,nspire-cx-clock.yaml
new file mode 100644 (file)
index 0000000..52c217d
--- /dev/null
@@ -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 <dt.tangr@gmail.com>
+
+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
diff --git a/Documentation/devicetree/bindings/clock/nspire-clock.txt b/Documentation/devicetree/bindings/clock/nspire-clock.txt
deleted file mode 100644 (file)
index 7c3bc8b..0000000
+++ /dev/null
@@ -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>;
-};