Zynq7000

Linux Drivers

Release Date
2023-07-22
  1. Zynq7000 platform device-tree can be found in https://github.com/Xilinx/device-tree-xlnx/blob/xlnx_rel_v2021.2/device_tree/data/kernel_dtsi/2021.2/zynq/zynq-7000.dtsi#L455-L462

    zynq-7000.dtsi
    watchdog0: watchdog@f8005000 {
            clocks = <&clkc45>;
            compatible = "cdns,wdt-r1p2";
            interrupt-parent = <&&intc>;
            interrupts = <0 9 1>;
            reg = <0xf8005000 0x1000>;
            timeout-sec = <10>;
    };
  2. Modify the device tree in <plnx-proj-root>/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi as below and rebuild your project.

    system-user.dtsi
    &watchdog0 {
        status = "okay";
    };

  3. If user want the watchdog to trigger a software reset/reboot upon time out then add "reset-on-timeout" in device tree node.

    system-user.dtsi
    &watchdog0 {
        status = "okay";
        reset-on-timeout;
    };