[PATCH] dt-bindings: rtc: moxa,moxart-rtc: convert to YAML

Avi Radinsky posted 1 patch 2 months, 1 week ago
.../bindings/rtc/moxa,moxart-rtc.txt          | 17 --------
.../bindings/rtc/moxa,moxart-rtc.yaml         | 43 +++++++++++++++++++
2 files changed, 43 insertions(+), 17 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/rtc/moxa,moxart-rtc.txt
create mode 100644 Documentation/devicetree/bindings/rtc/moxa,moxart-rtc.yaml
[PATCH] dt-bindings: rtc: moxa,moxart-rtc: convert to YAML
Posted by Avi Radinsky 2 months, 1 week ago
Convert the MOXA ART Real Time Clock text binding to YAML schema.

Signed-off-by: Avi Radinsky <avi.radinsky@gmail.com>
---
 .../bindings/rtc/moxa,moxart-rtc.txt          | 17 --------
 .../bindings/rtc/moxa,moxart-rtc.yaml         | 43 +++++++++++++++++++
 2 files changed, 43 insertions(+), 17 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rtc/moxa,moxart-rtc.txt
 create mode 100644 Documentation/devicetree/bindings/rtc/moxa,moxart-rtc.yaml

diff --git a/Documentation/devicetree/bindings/rtc/moxa,moxart-rtc.txt
b/Documentation/devicetree/bindings/rtc/moxa,moxart-rtc.txt
deleted file mode 100644
index 1374df7bf9d6..000000000000
--- a/Documentation/devicetree/bindings/rtc/moxa,moxart-rtc.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-MOXA ART real-time clock
-
-Required properties:
-
-- compatible : Should be "moxa,moxart-rtc"
-- rtc-sclk-gpios : RTC sclk gpio, with zero flags
-- rtc-data-gpios : RTC data gpio, with zero flags
-- rtc-reset-gpios : RTC reset gpio, with zero flags
-
-Example:
-
-       rtc: rtc {
-               compatible = "moxa,moxart-rtc";
-               rtc-sclk-gpios = <&gpio 5 0>;
-               rtc-data-gpios = <&gpio 6 0>;
-               rtc-reset-gpios = <&gpio 7 0>;
-       };
diff --git a/Documentation/devicetree/bindings/rtc/moxa,moxart-rtc.yaml
b/Documentation/devicetree/bindings/rtc/moxa,moxart-rtc.yaml
new file mode 100644
index 000000000000..9693c96a9f27
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/moxa,moxart-rtc.yaml
@@ -0,0 +1,43 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/moxa,moxart-rtc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MOXA ART Real Time Clock
+
+maintainers:
+  - Alexandre Belloni <alexandre.belloni@bootlin.com>
+
+properties:
+  compatible:
+    const: moxa,moxart-rtc
+
+  rtc-sclk-gpios:
+    maxItems: 1
+    description: GPIO line for the RTC serial clock.
+
+  rtc-data-gpios:
+    maxItems: 1
+    description: GPIO line for the RTC data input/output.
+
+  rtc-reset-gpios:
+    maxItems: 1
+    description: GPIO line for the RTC reset.
+
+required:
+  - compatible
+  - rtc-sclk-gpios
+  - rtc-data-gpios
+  - rtc-reset-gpios
+
+additionalProperties: false
+
+examples:
+  - |
+    rtc {
+        compatible = "moxa,moxart-rtc";
+        rtc-sclk-gpios = <&gpio 5 0>;
+        rtc-data-gpios = <&gpio 6 0>;
+        rtc-reset-gpios = <&gpio 7 0>;
+    };
--
2.51.0
Re: [PATCH] dt-bindings: rtc: moxa,moxart-rtc: convert to YAML
Posted by Krzysztof Kozlowski 2 months, 1 week ago
On Sun, Apr 05, 2026 at 09:31:36PM -0400, Avi Radinsky wrote:
> Convert the MOXA ART Real Time Clock text binding to YAML schema.
> 

Same comments as for other try.

Also, do not duplicate work.

I don't find hopping on this entire GSoC program, while doing duplicated
and uncoordinated work with same issues, helpful.

Best regards,
Krzysztof