Skip to contentSkip to conversation

dt-bindings: rtc: convert at91sam9 bindings to json-schema

PATCH Superseded Sergiu Moga 4 participants 7 messages Feb 15, 2022 – Feb 17, 2022

Subsystems (3)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: rtc: convert at91sam9 bindings to json-schema

Convert RTC binding for Atmel/Microchip SoCs to Device Tree Schema format.

---
 .../bindings/rtc/atmel,at91sam9-rtc.txt       | 25 --------
 .../bindings/rtc/atmel,at91sam9-rtc.yaml      | 61 +++++++++++++++++++
 2 files changed, 61 insertions(+), 25 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt
 create mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt deleted +0 -25
deleted file mode 100644
index 3f0e2a5950eb..000000000000
@@ -1,25 +0,0 @@
-Atmel AT91SAM9260 Real Time Timer
-
-Required properties:
-- compatible: should be one of the following:
-	- "atmel,at91sam9260-rtt"
-	- "microchip,sam9x60-rtt", "atmel,at91sam9260-rtt"
-- reg: should encode the memory region of the RTT controller
-- interrupts: rtt alarm/event interrupt
-- clocks: should contain the 32 KHz slow clk that will drive the RTT block.
-- atmel,rtt-rtc-time-reg: 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
-	encode the offset within the GPBR block (or in other words, the
-	GPBR register used to store the time base).
-
-
-Example:
-
-rtt@fffffd20 {
-	compatible = "atmel,at91sam9260-rtt";
-	reg = <0xfffffd20 0x10>;
-	interrupts = <1 4 7>;
-	clocks = <&clk32k>;
-	atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
-};
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file +61 -0

61 lines not on this page · raw message

Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw

Hello,

Quoted 81 lines · Sergiu Moga

Convert RTC binding for Atmel/Microchip SoCs to Device Tree Schema format.

---
 .../bindings/rtc/atmel,at91sam9-rtc.txt       | 25 --------
 .../bindings/rtc/atmel,at91sam9-rtc.yaml      | 61 +++++++++++++++++++
 2 files changed, 61 insertions(+), 25 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt
 create mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt deleted +0 -25
deleted file mode 100644
index 3f0e2a5950eb..000000000000
@@ -1,25 +0,0 @@
-Atmel AT91SAM9260 Real Time Timer
-
-Required properties:
-- compatible: should be one of the following:
-	- "atmel,at91sam9260-rtt"
-	- "microchip,sam9x60-rtt", "atmel,at91sam9260-rtt"
-- reg: should encode the memory region of the RTT controller
-- interrupts: rtt alarm/event interrupt
-- clocks: should contain the 32 KHz slow clk that will drive the RTT block.
-- atmel,rtt-rtc-time-reg: 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
-	encode the offset within the GPBR block (or in other words, the
-	GPBR register used to store the time base).
-
-
-Example:
-
-rtt@fffffd20 {
-	compatible = "atmel,at91sam9260-rtt";
-	reg = <0xfffffd20 0x10>;
-	interrupts = <1 4 7>;
-	clocks = <&clk32k>;
-	atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
-};
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file +33 -0
new file mode 100644
index 000000000000..c78a8c1c9314
@@ -0,0 +1,61 @@
+# 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 <[email protected]>
+
+properties:
+  compatible:
+    oneOf:
+      - items:
+        - const: atmel,at91sam9260-rtt
+      - items:
+        - const: microchip,sam9x60-rtt
+        - const: atmel,at91sam9260-rtt
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+

Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml line 43

Quoted 10 lines
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file +10 -0
+  atmel,rtt-rtc-time-reg:
+    $ref: /schemas/types.yaml#/definitions/uint32-array
+    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).
+    items:
+      maxItems: 1
+

This is missing start-year which is supported by the driver

Quoted 21 lines
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file +18 -0
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+  - atmel,rtt-rtc-time-reg
+
+additionalProperties: false
+
+examples:
+  - |
+    rtt@fffffd20 {
+        compatible = "atmel,at91sam9260-rtt";
+        reg = <0xfffffd20 0x10>;
+        interrupts = <1 4 7>;
+        clocks = <&clk32k>;
+        atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
+    };
Signature · 1 line
2.25.1
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw
In reply to Sergiu Moga
Quoted 78 lines · Sergiu Moga

Convert RTC binding for Atmel/Microchip SoCs to Device Tree Schema format.

---
 .../bindings/rtc/atmel,at91sam9-rtc.txt       | 25 --------
 .../bindings/rtc/atmel,at91sam9-rtc.yaml      | 61 +++++++++++++++++++
 2 files changed, 61 insertions(+), 25 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt
 create mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt deleted +0 -25
deleted file mode 100644
index 3f0e2a5950eb..000000000000
@@ -1,25 +0,0 @@
-Atmel AT91SAM9260 Real Time Timer
-
-Required properties:
-- compatible: should be one of the following:
-	- "atmel,at91sam9260-rtt"
-	- "microchip,sam9x60-rtt", "atmel,at91sam9260-rtt"
-- reg: should encode the memory region of the RTT controller
-- interrupts: rtt alarm/event interrupt
-- clocks: should contain the 32 KHz slow clk that will drive the RTT block.
-- atmel,rtt-rtc-time-reg: 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
-	encode the offset within the GPBR block (or in other words, the
-	GPBR register used to store the time base).
-
-
-Example:
-
-rtt@fffffd20 {
-	compatible = "atmel,at91sam9260-rtt";
-	reg = <0xfffffd20 0x10>;
-	interrupts = <1 4 7>;
-	clocks = <&clk32k>;
-	atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
-};
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file +30 -0
new file mode 100644
index 000000000000..c78a8c1c9314
@@ -0,0 +1,61 @@
+# 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 <[email protected]>
+
+properties:
+  compatible:
+    oneOf:
+      - items:
+        - const: atmel,at91sam9260-rtt
+      - items:
+        - const: microchip,sam9x60-rtt
+        - const: atmel,at91sam9260-rtt
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+

Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml line 40

Quoted 10 lines
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file +10 -0
+  clocks:
+    maxItems: 1
+
+  atmel,rtt-rtc-time-reg:
+    $ref: /schemas/types.yaml#/definitions/uint32-array
+    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).

The first cell points to a phandle, so this does not look like uint32-array. I think this matches something like syscon. Look for example at samsung,sysreg:
Documentation/devicetree/bindings/soc/samsung/exynos-usi.yaml

Quoted 5 lines
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file +5 -0
+    items:
+      maxItems: 1
+
+required:
+  - compatible

Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml line 55

Quoted 10 lines
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file +10 -0
+  - reg
+  - interrupts
+  - clocks
+  - atmel,rtt-rtc-time-reg
+
+additionalProperties: false
+
+examples:
+  - |
+    rtt@fffffd20 {

Is it a timer or a clock? If more like a RTC, then the node name should be "rtc".

rtc.yaml requires this, so it looks like you did not test the bindings at all?

Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml line 61

Quoted 6 lines
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file +6 -0
+        compatible = "atmel,at91sam9260-rtt";
+        reg = <0xfffffd20 0x10>;
+        interrupts = <1 4 7>;
+        clocks = <&clk32k>;
+        atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
+    };

Best regards,
Krzysztof

maintainer
#5 lore raw
In reply to Sergiu Moga
Quoted 11 lines · Sergiu Moga

Convert RTC binding for Atmel/Microchip SoCs to Device Tree Schema format.

---
 .../bindings/rtc/atmel,at91sam9-rtc.txt       | 25 --------
 .../bindings/rtc/atmel,at91sam9-rtc.yaml      | 61 +++++++++++++++++++
 2 files changed, 61 insertions(+), 25 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt
 create mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml

My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):

yamllint warnings/errors:
./Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml:20:9: [warning] wrong indentation: expected 10 but found 8 (indentation) ./Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml:22:9: [warning] wrong indentation: expected 10 but found 8 (indentation)

dtschema/dtc warnings/errors:
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.example.dt.yaml: rtt@fffffd20: $nodename:0: 'rtt@fffffd20' does not match '^rtc(@.*|-[0-9a-f])*$'
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.example.dt.yaml: rtt@fffffd20: atmel,rtt-rtc-time-reg:0: [4294967295, 0] is too long
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml

doc reference errors (make refcheckdocs):

See https://patchwork.ozlabs.org/patch/1593106

This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.

If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:

pip3 install dtschema --upgrade

Please check and re-submit.

#2 lore raw
In reply to Alexandre Belloni

Hello,

Quoted 87 lines · Alexandre Belloni

Hello,

Quoted 84 lines · Sergiu Moga

Convert RTC binding for Atmel/Microchip SoCs to Device Tree Schema format.

---
  .../bindings/rtc/atmel,at91sam9-rtc.txt       | 25 --------
  .../bindings/rtc/atmel,at91sam9-rtc.yaml      | 61 +++++++++++++++++++
  2 files changed, 61 insertions(+), 25 deletions(-)

delete mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt create mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml

Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt deleted +0 -25
deleted file mode 100644
index 3f0e2a5950eb..000000000000
@@ -1,25 +0,0 @@
-Atmel AT91SAM9260 Real Time Timer
-
-Required properties:
-- compatible: should be one of the following:
-     - "atmel,at91sam9260-rtt"
-     - "microchip,sam9x60-rtt", "atmel,at91sam9260-rtt"
-- reg: should encode the memory region of the RTT controller
-- interrupts: rtt alarm/event interrupt
-- clocks: should contain the 32 KHz slow clk that will drive the RTT block.
-- atmel,rtt-rtc-time-reg: 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
-     encode the offset within the GPBR block (or in other words, the
-     GPBR register used to store the time base).
-
-
-Example:
-
-rtt@fffffd20 {
-     compatible = "atmel,at91sam9260-rtt";
-     reg = <0xfffffd20 0x10>;
-     interrupts = <1 4 7>;
-     clocks = <&clk32k>;
-     atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
-};
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file +36 -0
new file mode 100644
index 000000000000..c78a8c1c9314
@@ -0,0 +1,61 @@
+# 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 <[email protected]>
+
+properties:
+  compatible:
+    oneOf:
+      - items:
+        - const: atmel,at91sam9260-rtt
+      - items:
+        - 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/uint32-array
+    description: |
Quoted 9 lines

Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml line 43

Quoted 7 lines
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file +7 -0
+      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).
+    items:
+      maxItems: 1
+

This is missing start-year which is supported by the driver

Noted. Will add the change in the next version of the patch.

Quoted 17 lines
Quoted 17 lines
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file +17 -0
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+  - atmel,rtt-rtc-time-reg
+
+additionalProperties: false
+
+examples:
+  - |
+    rtt@fffffd20 {
+        compatible = "atmel,at91sam9260-rtt";
+        reg = <0xfffffd20 0x10>;
+        interrupts = <1 4 7>;
+        clocks = <&clk32k>;
+        atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
Quoted 8 lines
Quoted 4 lines
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file +1 -1
+    };
--

2.25.1

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

Thank you for the feedback.

Sergiu

#4 lore raw
In reply to Krzysztof Kozlowski

Hello,

Quoted 85 lines · Krzysztof Kozlowski
Quoted 84 lines · Sergiu Moga

Convert RTC binding for Atmel/Microchip SoCs to Device Tree Schema format.

---
  .../bindings/rtc/atmel,at91sam9-rtc.txt       | 25 --------
  .../bindings/rtc/atmel,at91sam9-rtc.yaml      | 61 +++++++++++++++++++
  2 files changed, 61 insertions(+), 25 deletions(-)

delete mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt create mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml

Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt deleted +0 -25
deleted file mode 100644
index 3f0e2a5950eb..000000000000
@@ -1,25 +0,0 @@
-Atmel AT91SAM9260 Real Time Timer
-
-Required properties:
-- compatible: should be one of the following:
-     - "atmel,at91sam9260-rtt"
-     - "microchip,sam9x60-rtt", "atmel,at91sam9260-rtt"
-- reg: should encode the memory region of the RTT controller
-- interrupts: rtt alarm/event interrupt
-- clocks: should contain the 32 KHz slow clk that will drive the RTT block.
-- atmel,rtt-rtc-time-reg: 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
-     encode the offset within the GPBR block (or in other words, the
-     GPBR register used to store the time base).
-
-
-Example:
-
-rtt@fffffd20 {
-     compatible = "atmel,at91sam9260-rtt";
-     reg = <0xfffffd20 0x10>;
-     interrupts = <1 4 7>;
-     clocks = <&clk32k>;
-     atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
-};
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file +36 -0
new file mode 100644
index 000000000000..c78a8c1c9314
@@ -0,0 +1,61 @@
+# 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 <[email protected]>
+
+properties:
+  compatible:
+    oneOf:
+      - items:
+        - const: atmel,at91sam9260-rtt
+      - items:
+        - 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/uint32-array
+    description: |
Quoted 9 lines

Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml line 40

Quoted 4 lines
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file +4 -0
+      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).

The first cell points to a phandle, so this does not look like uint32-array. I think this matches something like syscon. Look for example at samsung,sysreg:
Documentation/devicetree/bindings/soc/samsung/exynos-usi.yaml

Thank you. I will correct this in the next version of the patch.

Quoted 18 lines
Quoted 5 lines
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file +5 -0
+    items:
+      maxItems: 1
+
+required:
+  - compatible

Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml line 55

Quoted 10 lines
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file +10 -0
+  - reg
+  - interrupts
+  - clocks
+  - atmel,rtt-rtc-time-reg
+
+additionalProperties: false
+
+examples:
+  - |
+    rtt@fffffd20 {

Is it a timer or a clock? If more like a RTC, then the node name should be "rtc".

Quoted 3 lines

rtc.yaml requires this, so it looks like you did not test the bindings at all?

My apologies, it seems that, by mistake, I used the wrong file for DT_SCHEMA_FILES when testing and thus I did not see any warnings or errors. I will correct this in the next patch.
In order for this to work correctly, the next patch series will also include some changes to other "dtsi" files (such as "arch/arm/boot/dts/sama7g5.dtsi" and "arch/arm/boot/dts/sam9x60.dtsi") that use "rtt" instead of "rtc" for their node names.

Quoted 9 lines

Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml line 61

Quoted 6 lines
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file +6 -0
+        compatible = "atmel,at91sam9260-rtt";
+        reg = <0xfffffd20 0x10>;
+        interrupts = <1 4 7>;
+        clocks = <&clk32k>;
+        atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
+    };

Best regards,
Krzysztof

Thank you for the feedback.

Sergiu

#6 lore raw
In reply to Rob Herring

Hello,

Quoted 32 lines · Rob Herring
Quoted 11 lines · Sergiu Moga

Convert RTC binding for Atmel/Microchip SoCs to Device Tree Schema format.

---
  .../bindings/rtc/atmel,at91sam9-rtc.txt       | 25 --------
  .../bindings/rtc/atmel,at91sam9-rtc.yaml      | 61 +++++++++++++++++++
  2 files changed, 61 insertions(+), 25 deletions(-)

delete mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt create mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml

My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):

yamllint warnings/errors:
./Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml:20:9: [warning] wrong indentation: expected 10 but found 8 (indentation) ./Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml:22:9: [warning] wrong indentation: expected 10 but found 8 (indentation)

dtschema/dtc warnings/errors:
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.example.dt.yaml: rtt@fffffd20: $nodename:0: 'rtt@fffffd20' does not match '^rtc(@.*|-[0-9a-f])*$'
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.example.dt.yaml: rtt@fffffd20: atmel,rtt-rtc-time-reg:0: [4294967295, 0] is too long
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml

doc reference errors (make refcheckdocs):

See https://patchwork.ozlabs.org/patch/1593106

This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.

Quoted 8 lines

If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:

pip3 install dtschema --upgrade

Please check and re-submit.

My apologies, it seems that, by mistake, I used the wrong file for DT_SCHEMA_FILES and thus I did not see any warnings or errors. I will correct this in the next version.

Thank you for the feedback.

Sergiu