dt-bindings: rtc: at91: rename rtt bindings file
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 8 Mar 2022 15:57:35 +0000 (16:57 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 23 Mar 2022 18:58:32 +0000 (19:58 +0100)
atmel,at91sam9-rtc is a confusing name for this file as it is documenting
the RTT used as an RTC and not the other regular RTC (atmel,at91rm9200-rtc
and atmel,at91sam9x5-rtc)

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20220308155735.54146-1-alexandre.belloni@bootlin.com
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml [deleted file]
Documentation/devicetree/bindings/rtc/atmel,at91sam9260-rtt.yaml [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml b/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml
deleted file mode 100644 (file)
index e5c3c38..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
-# Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries
-%YAML 1.2
----
-$id: http://devicetree.org/schemas/rtc/atmel,at91sam9-rtc.yaml#
-$schema: http://devicetree.org/meta-schemas/core.yaml#
-
-title: Atmel AT91 RTT Device Tree Bindings
-
-allOf:
-  - $ref: "rtc.yaml#"
-
-maintainers:
-  - Alexandre Belloni <alexandre.belloni@bootlin.com>
-
-properties:
-  compatible:
-    oneOf:
-      - items:
-          - const: atmel,at91sam9260-rtt
-      - items:
-          - const: microchip,sam9x60-rtt
-          - const: atmel,at91sam9260-rtt
-      - items:
-          - const: microchip,sama7g5-rtt
-          - const: microchip,sam9x60-rtt
-          - const: atmel,at91sam9260-rtt
-
-  reg:
-    maxItems: 1
-
-  interrupts:
-    maxItems: 1
-
-  clocks:
-    maxItems: 1
-
-  atmel,rtt-rtc-time-reg:
-    $ref: /schemas/types.yaml#/definitions/phandle-array
-    items:
-      - items:
-          - description: Phandle to the GPBR node.
-          - description: Offset within the GPBR block.
-    description:
-      Should encode the GPBR register used to store the time base when the
-      RTT is used as an RTC. The first cell should point to the GPBR node
-      and the second one encodes the offset within the GPBR block (or in
-      other words, the GPBR register used to store the time base).
-
-required:
-  - compatible
-  - reg
-  - interrupts
-  - clocks
-  - atmel,rtt-rtc-time-reg
-
-unevaluatedProperties: false
-
-examples:
-  - |
-    #include <dt-bindings/interrupt-controller/irq.h>
-
-    rtc@fffffd20 {
-        compatible = "atmel,at91sam9260-rtt";
-        reg = <0xfffffd20 0x10>;
-        interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
-        clocks = <&clk32k>;
-        atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
-    };
diff --git a/Documentation/devicetree/bindings/rtc/atmel,at91sam9260-rtt.yaml b/Documentation/devicetree/bindings/rtc/atmel,at91sam9260-rtt.yaml
new file mode 100644 (file)
index 0000000..0ef1b7f
--- /dev/null
@@ -0,0 +1,69 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+# Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/atmel,at91sam9260-rtt.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Atmel AT91 RTT Device Tree Bindings
+
+allOf:
+  - $ref: "rtc.yaml#"
+
+maintainers:
+  - Alexandre Belloni <alexandre.belloni@bootlin.com>
+
+properties:
+  compatible:
+    oneOf:
+      - items:
+          - const: atmel,at91sam9260-rtt
+      - items:
+          - const: microchip,sam9x60-rtt
+          - const: atmel,at91sam9260-rtt
+      - items:
+          - const: microchip,sama7g5-rtt
+          - const: microchip,sam9x60-rtt
+          - const: atmel,at91sam9260-rtt
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+
+  atmel,rtt-rtc-time-reg:
+    $ref: /schemas/types.yaml#/definitions/phandle-array
+    items:
+      - items:
+          - description: Phandle to the GPBR node.
+          - description: Offset within the GPBR block.
+    description:
+      Should encode the GPBR register used to store the time base when the
+      RTT is used as an RTC. The first cell should point to the GPBR node
+      and the second one encodes the offset within the GPBR block (or in
+      other words, the GPBR register used to store the time base).
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+  - atmel,rtt-rtc-time-reg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    rtc@fffffd20 {
+        compatible = "atmel,at91sam9260-rtt";
+        reg = <0xfffffd20 0x10>;
+        interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
+        clocks = <&clk32k>;
+        atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
+    };