Introduction

This page describes the AXI WDT/Window watchdog driver which is available in mainline and Xilinx Linux distribution as
drivers/watchdog/of_xilinx_wdt.c

HW IP Features


Known Issues and Limitations

Kernel Configuration

The following config options should be enabled in order to build the xilinx watchdog driver:
CONFIG_XILINX_WATCHDOG
CONFIG_WATCHDOG
¦ Symbol: XILINX_WATCHDOG [=y] ¦
¦ Type : tristate ¦
¦ Prompt: Xilinx Watchdog timer ¦
¦ Location: ¦
¦ -> Device Drivers ¦
¦ (4) -> Watchdog Timer Support (WATCHDOG [=y]) ¦
¦ Defined at drivers/watchdog/Kconfig:171 ¦
¦ Depends on: WATCHDOG [=y] && HAS_IOMEM [=y] ¦
¦ Selects: WATCHDOG_CORE [=y]

Devicetree

For more details, please refer
Documentation/devicetree/bindings/watchdog/of-xilinx-wdt.txt
Example:
watchdog {
 
        compatible = "xlnx,xps-timebase-wdt-1.0.a";
        reg = <0x42600000 0x1000>;
        xlnx-wdt-enable-once = <0>;
        xlnx-wdt-interval = <0x1b>;
};


Test procedure

Change the parameters using IOCTLs and see if reported values is correct.
# /bin/wdt_app /dev/watchdog1
Last boot is caused by : Power-On-Reset
The timeout was is 42 seconds
root@uart:~#

Mainline Status

Change Log


Related Links