Skip to contentSkip to conversation

dt-bindings: watchdog: migrate mt7621 text bindings to YAML

PATCH Superseded Sergio Paracuellos 2 participants 3 messages Sep 20, 2022 – Sep 26, 2022

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dt-bindings: watchdog: migrate mt7621 text bindings to YAML

Soc Mt7621 Watchdog bindings used text format, so migrate them to YAML.

---
Changes in v2:
- Rebase onto last kernel version.
- Add Krzysztof Reviewed-by tag.

 .../watchdog/mediatek,mt7621-wdt.yaml         | 33 +++++++++++++++++++
 .../bindings/watchdog/mt7621-wdt.txt          | 12 -------
 2 files changed, 33 insertions(+), 12 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml
 delete mode 100644 Documentation/devicetree/bindings/watchdog/mt7621-wdt.txt
Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml new file +33 -0
new file mode 100644
index 000000000000..b2b17fdf4e39
@@ -0,0 +1,33 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/watchdog/mediatek,mt7621-wdt.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Ralink Watchdog Timers
+
+maintainers:
+  - Sergio Paracuellos <[email protected]>
+
+allOf:
+  - $ref: watchdog.yaml#
+
+properties:
+  compatible:
+    const: mediatek,mt7621-wdt
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    watchdog@100 {
+      compatible = "mediatek,mt7621-wdt";
+      reg = <0x100 0x100>;
+    };
Documentation/devicetree/bindings/watchdog/mt7621-wdt.txt deleted +0 -12
deleted file mode 100644
index c15ef0ef609f..000000000000
@@ -1,12 +0,0 @@
-Ralink Watchdog Timers
-
-Required properties:
-- compatible: must be "mediatek,mt7621-wdt"
-- reg: physical base address of the controller and length of the register range
-
-Example:
-
-	watchdog@100 {
-		compatible = "mediatek,mt7621-wdt";
-		reg = <0x100 0x10>;
-	};
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 9 lines · Sergio Paracuellos

Soc Mt7621 Watchdog bindings used text format, so migrate them to YAML.

---
Changes in v2:
- Rebase onto last kernel version.
- Add Krzysztof Reviewed-by tag.

Quoted 5 lines
 .../watchdog/mediatek,mt7621-wdt.yaml         | 33 +++++++++++++++++++
 .../bindings/watchdog/mt7621-wdt.txt          | 12 -------
 2 files changed, 33 insertions(+), 12 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml
 delete mode 100644 Documentation/devicetree/bindings/watchdog/mt7621-wdt.txt

You will want resend to the watchdog maintainers if you want this applied. IOW, use get_maintainers.pl.

Rob

#2 lore raw

Hi Rob,

Quoted 11 lines · Rob Herring
Quoted 9 lines · Sergio Paracuellos

Soc Mt7621 Watchdog bindings used text format, so migrate them to YAML.

---
Changes in v2:
- Rebase onto last kernel version.
- Add Krzysztof Reviewed-by tag.

Quoted 8 lines
Quoted 5 lines
 .../watchdog/mediatek,mt7621-wdt.yaml         | 33 +++++++++++++++++++
 .../bindings/watchdog/mt7621-wdt.txt          | 12 -------
 2 files changed, 33 insertions(+), 12 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml
 delete mode 100644 Documentation/devicetree/bindings/watchdog/mt7621-wdt.txt

You will want resend to the watchdog maintainers if you want this applied. IOW, use get_maintainers.pl.

Sure, I have just resent it also cc'ing watchdog maintainers.

Thanks,
Sergio Paracuellos

Quoted 2 lines

Rob