dt-bindings: Move sophgo,cv1800b-rtc to rtc directory
authorRob Herring (Arm) <robh@kernel.org>
Sun, 8 Jun 2025 22:42:51 +0000 (17:42 -0500)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 7 Jul 2025 21:41:38 +0000 (23:41 +0200)
The $id path for the sophgo,cv1800b-rtc binding was missing part of the
path 'soc'. However, the correct place for RTC bindings (even if it's
also a "syscon") is the rtc directory, so move the binding there while
fixing the $id value.

Fixes: 76517429dbfd ("dt-bindings: soc: sophgo: add RTC support for Sophgo CV1800 series")
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250608224252.3902421-1-robh@kernel.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Documentation/devicetree/bindings/rtc/sophgo,cv1800b-rtc.yaml [new file with mode: 0644]
Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800b-rtc.yaml [deleted file]

diff --git a/Documentation/devicetree/bindings/rtc/sophgo,cv1800b-rtc.yaml b/Documentation/devicetree/bindings/rtc/sophgo,cv1800b-rtc.yaml
new file mode 100644 (file)
index 0000000..c695d2f
--- /dev/null
@@ -0,0 +1,86 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/sophgo,cv1800b-rtc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Real Time Clock of the Sophgo CV1800 SoC
+
+description:
+  The RTC (Real Time Clock) is an independently powered module in the chip. It
+  contains a 32KHz oscillator and a Power-On-Reset (POR) sub-module, which can
+  be used for time display and scheduled alarm produce. In addition, the
+  hardware state machine provides triggering and timing control for chip
+  power-on, power-off and reset.
+
+  Furthermore, the 8051 subsystem is located within RTCSYS and is independently
+  powered. System software can use the 8051 to manage wake conditions and wake
+  the system while the system is asleep, and communicate with external devices
+  through peripheral controllers.
+
+  Technical Reference Manual available at
+    https://github.com/sophgo/sophgo-doc/tree/main/SG200X/TRM
+
+maintainers:
+  - sophgo@lists.linux.dev
+
+allOf:
+  - $ref: /schemas/rtc/rtc.yaml#
+
+properties:
+  compatible:
+    items:
+      - const: sophgo,cv1800b-rtc
+      - const: syscon
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    items:
+      - description: RTC Alarm
+      - description: RTC Longpress
+      - description: VBAT DET
+
+  interrupt-names:
+    items:
+      - const: alarm
+      - const: longpress
+      - const: vbat
+
+  clocks:
+    items:
+      - description: RTC clock source
+      - description: DW8051 MCU clock source
+
+  clock-names:
+    items:
+      - const: rtc
+      - const: mcu
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - interrupt-names
+  - clocks
+  - clock-names
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/clock/sophgo,cv1800.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    rtc@5025000 {
+        compatible = "sophgo,cv1800b-rtc", "syscon";
+        reg = <0x5025000 0x2000>;
+        interrupts = <17 IRQ_TYPE_LEVEL_HIGH>,
+                     <18 IRQ_TYPE_LEVEL_HIGH>,
+                     <19 IRQ_TYPE_LEVEL_HIGH>;
+        interrupt-names = "alarm", "longpress", "vbat";
+        clocks = <&clk CLK_RTC_25M>,
+                 <&clk CLK_SRC_RTC_SYS_0>;
+        clock-names = "rtc", "mcu";
+    };
diff --git a/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800b-rtc.yaml b/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800b-rtc.yaml
deleted file mode 100644 (file)
index 5cf186c..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
-%YAML 1.2
----
-$id: http://devicetree.org/schemas/sophgo/sophgo,cv1800b-rtc.yaml#
-$schema: http://devicetree.org/meta-schemas/core.yaml#
-
-title: Real Time Clock of the Sophgo CV1800 SoC
-
-description:
-  The RTC (Real Time Clock) is an independently powered module in the chip. It
-  contains a 32KHz oscillator and a Power-On-Reset (POR) sub-module, which can
-  be used for time display and scheduled alarm produce. In addition, the
-  hardware state machine provides triggering and timing control for chip
-  power-on, power-off and reset.
-
-  Furthermore, the 8051 subsystem is located within RTCSYS and is independently
-  powered. System software can use the 8051 to manage wake conditions and wake
-  the system while the system is asleep, and communicate with external devices
-  through peripheral controllers.
-
-  Technical Reference Manual available at
-    https://github.com/sophgo/sophgo-doc/tree/main/SG200X/TRM
-
-maintainers:
-  - sophgo@lists.linux.dev
-
-allOf:
-  - $ref: /schemas/rtc/rtc.yaml#
-
-properties:
-  compatible:
-    items:
-      - const: sophgo,cv1800b-rtc
-      - const: syscon
-
-  reg:
-    maxItems: 1
-
-  interrupts:
-    items:
-      - description: RTC Alarm
-      - description: RTC Longpress
-      - description: VBAT DET
-
-  interrupt-names:
-    items:
-      - const: alarm
-      - const: longpress
-      - const: vbat
-
-  clocks:
-    items:
-      - description: RTC clock source
-      - description: DW8051 MCU clock source
-
-  clock-names:
-    items:
-      - const: rtc
-      - const: mcu
-
-required:
-  - compatible
-  - reg
-  - interrupts
-  - interrupt-names
-  - clocks
-  - clock-names
-
-unevaluatedProperties: false
-
-examples:
-  - |
-    #include <dt-bindings/clock/sophgo,cv1800.h>
-    #include <dt-bindings/interrupt-controller/irq.h>
-
-    rtc@5025000 {
-        compatible = "sophgo,cv1800b-rtc", "syscon";
-        reg = <0x5025000 0x2000>;
-        interrupts = <17 IRQ_TYPE_LEVEL_HIGH>,
-                     <18 IRQ_TYPE_LEVEL_HIGH>,
-                     <19 IRQ_TYPE_LEVEL_HIGH>;
-        interrupt-names = "alarm", "longpress", "vbat";
-        clocks = <&clk CLK_RTC_25M>,
-                 <&clk CLK_SRC_RTC_SYS_0>;
-        clock-names = "rtc", "mcu";
-    };