- I do not know how to control the watchdog1 timeout (struct watchdog_device) from user-space
and how enable the watchdog1. This has to be evaluated how it should work.
additionally enabling CONFIG_WATCHDOG_SYSFS=y
show some more sysfs info:
root@letux:~# ls -l /sys/class/watchdog/watchdog1/ total 0 -r--r--r-- 1 root root 4096 Oct 31 12:20 bootstatus -r--r--r-- 1 root root 4096 Oct 31 12:20 dev lrwxrwxrwx 1 root root 0 Oct 31 12:20 device -> ../../../48070000.i2c:palmas@48:watchdog -r--r--r-- 1 root root 4096 Oct 31 12:20 identity -rw-r--r-- 1 root root 4096 Oct 31 12:20 nowayout drwxr-xr-x 2 root root 0 Oct 31 12:20 power -r--r--r-- 1 root root 4096 Oct 31 12:20 state -r--r--r-- 1 root root 4096 Oct 31 12:20 status lrwxrwxrwx 1 root root 0 Oct 31 12:20 subsystem -> ../../../../../../../../../../../../class/watchdog -r--r--r-- 1 root root 4096 Oct 31 12:20 timeout -rw-r--r-- 1 root root 4096 Oct 31 12:16 uevent root@letux:~# cat /sys/class/watchdog/watchdog1/state inactive root@letux:~# cat /sys/class/watchdog/watchdog1/status 0x0 root@letux:~# cat /sys/class/watchdog/watchdog1/timeout 30 root@letux:~# cat /sys/class/watchdog/watchdog1/nowayout 0 root@letux:~# cat /sys/class/watchdog/watchdog1/identity Palmas Watchdog root@letux:~# cat /sys/class/watchdog/watchdog1/bootstatus 0 root@letux:~# cat /sys/class/watchdog/watchdog1/uevent MAJOR=252 MINOR=1 DEVNAME=watchdog1 root@letux:~#