]> git.itanic.dy.fi Git - linux-stable/commitdiff
mips: dts: ralink: mt7621: add phandle to system controller node for watchdog
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Tue, 14 Feb 2023 10:39:34 +0000 (11:39 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 28 Feb 2023 22:09:32 +0000 (23:09 +0100)
To allow to access system controller registers from watchdog driver code
add a phandle in the watchdog 'wdt' node. This avoid using arch dependent
operations in driver code.

Reviewed-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/ralink/mt7621.dtsi

index c16295d27fa6750e082a614c11893c089774a908..7caed0d14f11a68de7f309ba83d4990ebc5e5e37 100644 (file)
@@ -73,6 +73,7 @@ sysc: syscon@0 {
                wdt: watchdog@100 {
                        compatible = "mediatek,mt7621-wdt";
                        reg = <0x100 0x100>;
+                       mediatek,sysctl = <&sysc>;
                };
 
                gpio: gpio@600 {