Skip to content

Instantly share code, notes, and snippets.

@ast
Created November 14, 2022 18:45
Show Gist options
  • Save ast/76c60ab03b82f4cd38cfef92f69c0018 to your computer and use it in GitHub Desktop.
Save ast/76c60ab03b82f4cd38cfef92f69c0018 to your computer and use it in GitHub Desktop.
Waveshare watchdog hat configuration

Waveshare RTC WatchDog HAT configuration

https://www.waveshare.com/rtc-watchdog-hat.htm

watchdog-device = /dev/watchdog1
interval = 30
/dts-v1/;
/plugin/;

/ {
    compatible = "brcm,bcm2708";
    fragment@0 {
        target  = <&soc>;
        __overlay__ {
             gpio_watchdog {
                  compatible = "linux,wdt-gpio";
                  gpios = <&gpio 4 0>;
                  hw_algo = "toggle";
                  hw_margin_ms = <1000>;
             };
        };
    };
};
dtc -@ -I dts -O dtb -o max705-wdt.dtbo max705-wdt.dts
cp max-705-wdt.dtbo /boot/overlays/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment