From 71b15acd632455d3ee6ba8be53312f09f58ab51d Mon Sep 17 00:00:00 2001 From: tao89959 <1036524114@qq.com> Date: Thu, 12 Feb 2026 09:16:32 +0800 Subject: [PATCH] loongson: 2k1000: dtsi: add wtd dts node MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2k1000 dtsi添加看门狗节点 Changelog: Signed-off-by: maoxiaochuan --- arch/loongarch/boot/dts/loongson2k1000.dtsi | 40 ++++++++++++--------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/arch/loongarch/boot/dts/loongson2k1000.dtsi b/arch/loongarch/boot/dts/loongson2k1000.dtsi index cb0418000..ae1c65e2c 100644 --- a/arch/loongarch/boot/dts/loongson2k1000.dtsi +++ b/arch/loongarch/boot/dts/loongson2k1000.dtsi @@ -635,26 +635,32 @@ status = "disabled"; }; - pmc: power-management@1fe27000 { - compatible = "loongson,ls2k1000-pmc", "loongson,ls2k0500-pmc", "syscon"; + pmc: syscon@0x1fe27000 { + compatible = "syscon"; reg = <0x0 0x1fe27000 0x0 0x58>; - interrupt-parent = <&liointc1>; - interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; - loongson,suspend-address = <0x0 0x1c000500>; + }; - syscon-reboot { - compatible = "syscon-reboot"; - offset = <0x30>; - mask = <0x1>; - }; + reboot { + compatible ="syscon-reboot"; + regmap = <&pmc>; + offset = <0x30>; + mask = <0x1>; + }; - syscon-poweroff { - compatible = "syscon-poweroff"; - regmap = <&pmc>; - offset = <0x14>; - mask = <0x3c00>; - value = <0x3c00>; - }; + poweroff { + compatible ="syscon-poweroff"; + regmap = <&pmc>; + offset = <0x14>; + mask = <0x3c00>; + value = <0x3c00>; + }; + + wdt:watchdog@1fe27030{ + compatible = "loongson,ls2x-wdt"; + reg = <0 0x1fe27030 0 0xC>; + clocks = <&clk LOONGSON2_APB_CLK>; + clock-names = "wdt-clk"; + status = "okay"; }; rtc0: rtc@1fe27800 {