2024/04/12 08:56
linux有自带的驱动:linux-custom/drivers/watchdog/gpio_wdt.c,
驱动说明:linux-custom/Documentation/devicetree/bindings/watchdog/gpio-wdt.txt
1、dts配置参考:
watchdog: watchdog {
/* io trigger watchdog */
compatible = "linux,wdt-gpio";
gpios = <&gpiok 7 GPIO_ACTIVE_LOW>;
hw_algo = "toggle";
hw_margin_ms = <1600>;
};
2、打开配置文件:
make linux-menuconfig
Decice Drivers > watchdog Timer Support ->Watchdog device controlled though GPIO-line