Commit f43e292b6da909a13d1a157e04f0600135f55aff

Authored by Eric Lee
1 parent 8b49762b89

Add support for external watchdog driver on module

Showing 2 changed files with 10 additions and 1 deletions Side-by-side Diff

arch/arm/boot/dts/imx6qdl-smarcfimx6.dtsi
... ... @@ -111,6 +111,14 @@
111 111 hdmi-controller = <&hdmi_audio>;
112 112 };
113 113  
  114 + watchdog: watchdog {
  115 + compatible = "linux,wdt-gpio";
  116 + gpios = <&gpio3 16 GPIO_ACTIVE_LOW>;
  117 + hw_algo = "toggle";
  118 + hw_margin_ms = <3000>;
  119 + always-running;
  120 + };
  121 +
114 122 mxcfb1: fb@0 {
115 123 compatible = "fsl,mxc_sdc_fb";
116 124 disp_dev = "ldb";
arch/arm/configs/smarcfimx6_defconfig
... ... @@ -2484,7 +2484,8 @@
2484 2484 #
2485 2485 # CONFIG_SOFT_WATCHDOG is not set
2486 2486 # CONFIG_DA9052_WATCHDOG is not set
2487   -# CONFIG_GPIO_WATCHDOG is not set
  2487 +CONFIG_GPIO_WATCHDOG=y
  2488 +CONFIG_GPIO_WATCHDOG_ARCH_INITCALL=y
2488 2489 # CONFIG_XILINX_WATCHDOG is not set
2489 2490 # CONFIG_ZIIRAVE_WATCHDOG is not set
2490 2491 # CONFIG_CADENCE_WATCHDOG is not set