Skip to contentSkip to conversation

dt-bindings: watchdog: qca,ar7130-wdt: convert txt to yaml

PATCH Superseded Nik Bune 2 participants 2 messages Oct 31, 2023 – Nov 1, 2023

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Nik Bune

author
#0 lore raw

PATCH 1/1 dt-bindings: watchdog: qca,ar7130-wdt: convert txt to yaml

Convert txt file to yaml.
Add mainteiners from git blame.

---
 .../bindings/watchdog/qca,ar7130-wdt.yaml     | 33 +++++++++++++++++++
 .../bindings/watchdog/qca-ar7130-wdt.txt      | 13 --------
 2 files changed, 33 insertions(+), 13 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/watchdog/qca,ar7130-wdt.yaml
 delete mode 100644 Documentation/devicetree/bindings/watchdog/qca-ar7130-wdt.txt
Documentation/devicetree/bindings/watchdog/qca,ar7130-wdt.yaml new file +33 -0
new file mode 100644
index 000000000000..82040ca10eda
@@ -0,0 +1,33 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/watchdog/qca,ar7130-wdt.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Atheros AR7130 Watchdog Timer (WDT) Controller
+
+maintainers:
+  - Gabor Juhos <[email protected]>
+
+allOf:
+  - $ref: watchdog.yaml#
+
+properties:
+  compatible:
+    const: qca,ar7130-wdt
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    watchdog@18060008 {
+        compatible = "qca,ar7130-wdt";
+        reg = <0x18060008 0x8>;
+    };
Documentation/devicetree/bindings/watchdog/qca-ar7130-wdt.txt deleted +0 -13
deleted file mode 100644
index 7a89e5f85415..000000000000
@@ -1,13 +0,0 @@
-* Qualcomm Atheros AR7130 Watchdog Timer (WDT) Controller
-
-Required properties:
-- compatible: must be "qca,ar7130-wdt"
-- reg: physical base address of the controller and length of memory mapped
-  region.
-
-Example:
-
-wdt@18060008 {
-	compatible = "qca,ar9330-wdt", "qca,ar7130-wdt";
-	reg = <0x18060008 0x8>;
-};
Signature · 1 line
2.34.1
#1 lore raw
Quoted 2 lines · Nik Bune

Convert txt file to yaml.
Add mainteiners from git blame.

Keep it in one line and fix the typo: maintainers.

Quoted 1 line

You lost one compatible, from the example. This should be mentioned in commit msg.

Best regards,
Krzysztof