]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mips: dts: realtek: Add watchdog
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Thu, 19 Jun 2025 01:07:53 +0000 (13:07 +1200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 2 Jul 2025 11:18:44 +0000 (13:18 +0200)
The RTL9300 has an integrated watchdog. Add this to the devicetree.

This is taken from openwrt[1] the only difference is removing the
unnecessary second cell from the interrupts.

[1] - https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=target/linux/realtek/dts/rtl930x.dtsi

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/realtek/rtl930x.dtsi

index 74b30704f188b1c8fb853127542aae80128420fe..77a854034aba7b0cd1c7e4a53d2f1b96800070b8 100644 (file)
                        clocks = <&lx_clk>;
                };
 
+               watchdog0: watchdog@3260 {
+                       compatible = "realtek,rtl9300-wdt";
+                       reg = <0x3260 0xc>;
+
+                       realtek,reset-mode = "soc";
+
+                       clocks = <&lx_clk>;
+                       timeout-sec = <30>;
+
+                       interrupt-parent = <&intc>;
+                       interrupt-names = "phase1", "phase2";
+                       interrupts = <5>, <6>;
+               };
+
                snand: spi@1a400 {
                        compatible = "realtek,rtl9301-snand";
                        reg = <0x1a400 0x44>;