[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230210065621.598120-3-sergio.paracuellos@gmail.com>
Date: Fri, 10 Feb 2023 07:56:20 +0100
From: Sergio Paracuellos <sergio.paracuellos@...il.com>
To: linux-watchdog@...r.kernel.org
Cc: wim@...ux-watchdog.org, linux@...ck-us.net, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org, matthias.bgg@...il.com,
arinc.unal@...nc9.com, tsbogend@...ha.franken.de,
p.zabel@...gutronix.de, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, linux-mips@...r.kernel.org
Subject: [PATCH 2/3] mips: dts: ralink: mt7621: add phandle to system controller node for watchdog
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.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@...il.com>
---
arch/mips/boot/dts/ralink/mt7621.dtsi | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/mips/boot/dts/ralink/mt7621.dtsi b/arch/mips/boot/dts/ralink/mt7621.dtsi
index 5ca40fd21..ebee23a2b 100644
--- a/arch/mips/boot/dts/ralink/mt7621.dtsi
+++ b/arch/mips/boot/dts/ralink/mt7621.dtsi
@@ -71,8 +71,9 @@ sysc: syscon@0 {
};
wdt: wdt@100 {
- compatible = "mediatek,mt7621-wdt";
+ compatible = "mediatek,mt7621-wdt", "syscon";
reg = <0x100 0x100>;
+ ralink,sysctl = <&sysc>;
};
gpio: gpio@600 {
--
2.25.1
Powered by blists - more mailing lists