【MA35D1】Linux下如何配置复位外部的Watch Dog

qwang |浏览41次
收藏|2024/04/12 08:52

满意回答

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


蔡芳芳

其他回答(0)
0人关注该问题
+1
 加载中...