From cb33eeb4c893187316a787414409a30605c529b0 Mon Sep 17 00:00:00 2001 From: wycwyhwyq <5f20.6d9b@gmail.com> Date: Wed, 13 Nov 2024 18:59:13 +0800 Subject: [PATCH] drivers: k230: Add watchdog driver Signed-off-by: wycwyhwyq <5f20.6d9b@gmail.com> --- arch/riscv/boot/dts/canaan/k230.dtsi | 7 +++++++ arch/riscv/configs/k230_defconfig | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/canaan/k230.dtsi b/arch/riscv/boot/dts/canaan/k230.dtsi index c778be2eb264..b2b6b82cb9ff 100644 --- a/arch/riscv/boot/dts/canaan/k230.dtsi +++ b/arch/riscv/boot/dts/canaan/k230.dtsi @@ -508,6 +508,13 @@ status = "disabled"; }; + watchdog1: wdt1@91106800 { + compatible = "snps,dw-wdt"; + reg = <0x0 0x91106800 0x0 0x800>; + interrupts = <108 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&wdt1>; + }; + vpu: vpu@0x90400000 { status = "okay"; compatible = "canaan,vpu"; diff --git a/arch/riscv/configs/k230_defconfig b/arch/riscv/configs/k230_defconfig index 638d8c453163..87115692398b 100644 --- a/arch/riscv/configs/k230_defconfig +++ b/arch/riscv/configs/k230_defconfig @@ -166,7 +166,7 @@ CONFIG_CPU_THERMAL=y CONFIG_THERMAL=y CONFIG_THERMAL_EMULATION=y CONFIG_WATCHDOG=y -CONFIG_SUNXI_WATCHDOG=y +CONFIG_DW_WATCHDOG=y CONFIG_REGULATOR=y CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_FB=y