ramips: fix mt7688 watchdog register base addr
authorlbzhung <gewalalb@gmail.com>
Fri, 8 Jun 2018 09:15:17 +0000 (17:15 +0800)
committerMathias Kresin <dev@kresin.me>
Sat, 16 Jun 2018 08:08:51 +0000 (10:08 +0200)
I found mt7688 watchdog not working. The watchdog registers are identical
for mt7621 and mt7628/mt7688. The first watchdog related register is at
0x10000100, the last one - a 16bit sized - at 0x10000128.

Set the correct register address and size in the dtsi file to get the
watchdog working.

Signed-off-by: lbzhung <gewalalb@gmail.com>
[add commit message]
Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/ramips/dts/mt7628an.dtsi

index df2ed37c9a1c7ecbeab970fa42db36440a038102..0afd9e32345da55197c7ff3ae8dc278ba26bb782 100644 (file)
@@ -37,9 +37,9 @@
                        reg = <0x0 0x100>;
                };
 
-               watchdog: watchdog@120 {
+               watchdog: watchdog@100 {
                        compatible = "ralink,mt7628an-wdt", "mediatek,mt7621-wdt";
-                       reg = <0x120 0x10>;
+                       reg = <0x100 0x30>;
 
                        resets = <&rstctrl 8>;
                        reset-names = "wdt";