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>
Fri, 15 Feb 2019 14:04:01 +0000 (15:04 +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 05491e9bbc0c309e4fcc5f25f601c21a3c3e6f9d..0d9ad86029aa42cabb7cc9c184b3efb0e2a1a826 100644 (file)
 
 &watchdog0 {
        status = "okay";
-       reset-on-timeout;
 };
 
 &xilinx_ams {
index 831d6e1ecc4d19b2f2b172fa35d4fdf8d8242ca4..b28e75732f1e490859218f96ea52c373eddcfefc 100644 (file)
                        interrupt-parent = <&gic>;
                        interrupts = <0 113 1>;
                        reg = <0x0 0xfd4d0000 0x0 0x1000>;
-                       timeout-sec = <10>;
+                       timeout-sec = <60>;
+                       reset-on-timeout;
                };
 
                xilinx_ams: ams@ffa50000 {