Skip to contentSkip to conversation

dt-bindings: watchdog: Convert TS-4800 to DT schema

PATCH Applied Eduard Bostina 5 participants 7 messages Mar 23 – Jun 1

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v2 cover dt-bindings: watchdog: Convert TS-4800 to DT schema

This patch series converts the Technologic Systems TS-4800 Watchdog timer bindings to DT schema and fixes the active hardware node in the iMX51 device tree.

---
Changes in v2:
- dt-bindings: watchdog: Moved 'allOf' block below 'required'.
- dt-bindings: watchdog: Removed the 'syscon' node from the example.

Eduard Bostina (2):
dt-bindings: watchdog: Convert TS-4800 to DT schema
ARM: dts: nxp: imx51-ts4800: Rename wdt node to watchdog

 .../watchdog/technologic,ts4800-wdt.yaml      | 40 +++++++++++++++++++
 .../bindings/watchdog/ts4800-wdt.txt          | 25 ------------
 arch/arm/boot/dts/nxp/imx/imx51-ts4800.dts    |  2 +-
 3 files changed, 41 insertions(+), 26 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/watchdog/technologic,ts4800-wdt.yaml
 delete mode 100644 Documentation/devicetree/bindings/watchdog/ts4800-wdt.txt
Signature · 1 line
2.53.0
#1 lore raw

PATCH v2 1/2 dt-bindings: watchdog: Convert TS-4800 to DT schema

Convert the Technologic Systems TS-4800 watchdog timer bindings to DT schema.

---
Note:
* This patch is part of the GSoC2026 application process for device tree bindings conversions
* https://github.com/LinuxFoundationGSoC/ProjectIdeas/wiki/GSoC-2026-Device-Tree-Bindings

 .../watchdog/technologic,ts4800-wdt.yaml      | 40 +++++++++++++++++++
 .../bindings/watchdog/ts4800-wdt.txt          | 25 ------------
 2 files changed, 40 insertions(+), 25 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/watchdog/technologic,ts4800-wdt.yaml
 delete mode 100644 Documentation/devicetree/bindings/watchdog/ts4800-wdt.txt
Documentation/devicetree/bindings/watchdog/technologic,ts4800-wdt.yaml new file +40 -0
new file mode 100644
index 000000000..5c2541ac6
@@ -0,0 +1,40 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/watchdog/technologic,ts4800-wdt.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Technologic Systems TS-4800 Watchdog
+
+maintainers:
+  - Eduard Bostina <[email protected]>
+
+properties:
+  compatible:
+    const: technologic,ts4800-wdt
+
+  syscon:
+    $ref: /schemas/types.yaml#/definitions/phandle-array
+    items:
+      - items:
+          - description: Phandle to the FPGA's syscon
+          - description: Offset to the watchdog register
+    description: Phandle / integers array that points to the syscon node which
+      describes the FPGA's syscon registers.
+
+required:
+  - compatible
+  - syscon
+
+allOf:
+  - $ref: watchdog.yaml#
+
+unevaluatedProperties: false
+
+examples:
+  - |
+      watchdog {
+        compatible = "technologic,ts4800-wdt";
+        syscon = <&syscon 0xe>;
+        timeout-sec = <10>;
+      };
Documentation/devicetree/bindings/watchdog/ts4800-wdt.txt deleted +0 -25
deleted file mode 100644
index 8f6caad42..000000000
@@ -1,25 +0,0 @@
-Technologic Systems Watchdog
-
-Required properties:
-- compatible: must be "technologic,ts4800-wdt"
-- syscon: phandle / integer array that points to the syscon node which
-          describes the FPGA's syscon registers.
-          - phandle to FPGA's syscon
-          - offset to the watchdog register
-
-Optional property:
-- timeout-sec: contains the watchdog timeout in seconds.
-
-Example:
-
-syscon: syscon@b0010000 {
-	compatible = "syscon", "simple-mfd";
-	reg = <0xb0010000 0x3d>;
-	reg-io-width = <2>;
-
-	wdt@e {
-		compatible = "technologic,ts4800-wdt";
-		syscon = <&syscon 0xe>;
-		timeout-sec = <10>;
-	};
-}
Signature · 1 line
2.53.0
#4 lore raw

PATCH v2 2/2 ARM: dts: nxp: imx51-ts4800: Rename wdt node to watchdog

In reply to Eduard Bostina

The Technologic Systems TS-4800 watchdog node was previously named 'wdt', which violates the core watchdog.yaml schema expecting generic node names.

Rename the node to 'watchdog' to fix the following dtbs_check warning:
'wdt' does not match '^(pmic|timer|watchdog)(@.*|-([0-9]|[1-9][0-9]+))?$'

---
Note:
* This patch is part of the GSoC2026 application process for device tree bindings conversions
* https://github.com/LinuxFoundationGSoC/ProjectIdeas/wiki/GSoC-2026-Device-Tree-Bindings

 arch/arm/boot/dts/nxp/imx/imx51-ts4800.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/nxp/imx/imx51-ts4800.dts +1 -1
index 5118a68db..3610ce395 100644
@@ -155,7 +155,7 @@ syscon: syscon@10000 {
 			reg = <0x10000 0x3d>;
 			reg-io-width = <2>;
 
-			wdt {
+			watchdog {
 				compatible = "technologic,ts4800-wdt";
 				syscon = <&syscon 0xe>;
 			};
Signature · 1 line
2.53.0
Reviewed-by on v2 2/2
#5 lore raw

Re: [PATCH v2 2/2] ARM: dts: nxp: imx51-ts4800: Rename wdt node to watchdog

Quoted 7 lines · Eduard Bostina

The Technologic Systems TS-4800 watchdog node was previously named 'wdt', which violates the core watchdog.yaml schema expecting generic node names.

Rename the node to 'watchdog' to fix the following dtbs_check warning:
'wdt' does not match '^(pmic|timer|watchdog)(@.*|-([0-9]|[1-9][0-9]+))?$'

#6 lore raw
In reply to Eduard Bostina

From: Frank Li <[email protected]>

Quoted 3 lines · Eduard Bostina

This patch series converts the Technologic Systems TS-4800 Watchdog timer bindings to DT schema and fixes the active hardware node in the iMX51 device tree.

Applied, thanks!

[1/2] dt-bindings: watchdog: Convert TS-4800 to DT schema

      commit: 6570a6354bd35619070bedd71dee027b5ecf6006
[2/2] ARM: dts: nxp: imx51-ts4800: Rename wdt node to watchdog
      commit: dcf7bac8c2470a61cd457ed2e6f57960004ca392

Best regards,

Signature · 1 line
Frank Li <[email protected]>