Skip to content

Commit

Permalink
drivers: k230: Add watchdog driver
Browse files Browse the repository at this point in the history
Signed-off-by: wycwyhwyq <[email protected]>
  • Loading branch information
wycwyhwyq authored and RevySR committed Nov 15, 2024
1 parent dda59fa commit cb33eeb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions arch/riscv/boot/dts/canaan/k230.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion arch/riscv/configs/k230_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb33eeb

Please sign in to comment.