starfive: add new target for StarFive JH7100/7110 SoC
[openwrt/staging/981213.git] / target / linux / starfive / patches-6.1 / 0106-riscv-dts-starfive-jh7100-Add-watchdog-node.patch
1 From b085b6233065b1e5145fbf93d75264b2042c0eb5 Mon Sep 17 00:00:00 2001
2 From: Xingyu Wu <xingyu.wu@starfivetech.com>
3 Date: Tue, 14 Mar 2023 21:24:37 +0800
4 Subject: [PATCH 106/122] riscv: dts: starfive: jh7100: Add watchdog node
5
6 Add watchdog node for the StarFive JH7100 RISC-V SoC.
7
8 Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
9 Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
10 ---
11 arch/riscv/boot/dts/starfive/jh7100.dtsi | 10 ++++++++++
12 1 file changed, 10 insertions(+)
13
14 --- a/arch/riscv/boot/dts/starfive/jh7100.dtsi
15 +++ b/arch/riscv/boot/dts/starfive/jh7100.dtsi
16 @@ -238,5 +238,15 @@
17 #size-cells = <0>;
18 status = "disabled";
19 };
20 +
21 + watchdog@12480000 {
22 + compatible = "starfive,jh7100-wdt";
23 + reg = <0x0 0x12480000 0x0 0x10000>;
24 + clocks = <&clkgen JH7100_CLK_WDTIMER_APB>,
25 + <&clkgen JH7100_CLK_WDT_CORE>;
26 + clock-names = "apb", "core";
27 + resets = <&rstgen JH7100_RSTN_WDTIMER_APB>,
28 + <&rstgen JH7100_RSTN_WDT>;
29 + };
30 };
31 };