]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
arm64: zynqmp: Add reset-on-timeout for all boards and modify default timeout value
authorMounika Grace Akula <mounika.grace.akula@xilinx.com>
Tue, 9 Oct 2018 15:22:50 +0000 (20:52 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 7 Nov 2018 10:05:45 +0000 (11:05 +0100)
This patch adds reset-on-timeout to FPD WDT which will trigger an
interrupt to PMU when watchdog expiry happens and PMU takes the
necessary action. If this property is not enabled, reason will not be
known when watchdog expiry happens.
This patch also modifies the default timeout to 60 seconds. Reason is
that if u-boot enables WDT, it will set the timeout to 10 seconds and
this is not enough to boot till Linux and start the WDT application in
Linux. 60 seconds is the maximum safest value to boot till Linux and
start the WDT application.

Users need to change this timeout value to fit their needs.

Signed-off-by: Mounika Grace Akula <mounika.grace.akula@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts
arch/arm64/boot/dts/xilinx/zynqmp.dtsi

index 20b8c7a1b767757c321ec87edec84f85f4f2ee0d..a9ef1315008c189d60a128ee35bd2848e9d670fa 100644 (file)
 
 &watchdog0 {
        status = "okay";
-       reset-on-timeout;
 };
 
 &zynqmp_dpsub {
index c2500dbd9acd54e346c9675687132e683c918a18..9433db0cccf32ae663aa1e0347cac22601516682 100644 (file)
                        interrupt-parent = <&gic>;
                        interrupts = <0 113 1>;
                        reg = <0x0 0xfd4d0000 0x0 0x1000>;
-                       timeout-sec = <10>;
+                       timeout-sec = <60>;
+                       reset-on-timeout;
                };
 
                lpd_watchdog: watchdog@ff150000 {