]> git.ipfire.org Git - thirdparty/u-boot.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, 27 Feb 2019 07:53:08 +0000 (08:53 +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/arm/dts/zynqmp-zcu100-revC.dts
arch/arm/dts/zynqmp.dtsi

index 20b8c7a1b767757c321ec87edec84f85f4f2ee0d..a9ef1315008c189d60a128ee35bd2848e9d670fa 100644 (file)
 
 &watchdog0 {
        status = "okay";
-       reset-on-timeout;
 };
 
 &zynqmp_dpsub {
index 005be3f3d84b4c7ab86180fb5512b058a9b18287..e7d305f2dfc5ae2c3968d296974bd900821eb76b 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 {