arm64: zynqmp: Enable cadence WDT for zcu100
authorMichal Simek <michal.simek@xilinx.com>
Thu, 19 Apr 2018 13:43:50 +0000 (15:43 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 11 May 2018 07:23:43 +0000 (09:23 +0200)
Enable watchdog on zcu100 to make sure if there is a bug in the u-boot
there is proper reset.
Watchdog expires and PMU fw is informed and based on setting proper
action is taken.

The patch is enabling reset-on-timeout feature and also fixing fixed
clock rate for watchdog where 100MHz is max (and also default) clock value.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/dts/zynqmp-clk.dtsi
arch/arm/dts/zynqmp-zcu100-revC.dts
configs/xilinx_zynqmp_zcu100_revC_defconfig

index a8664e8..a795efd 100644 (file)
 };
 
 &watchdog0 {
-       clocks = <&clk250>;
+       clocks = <&clk100>;
 };
 
 &xilinx_drm {
index 9114f98..bcd9c39 100644 (file)
 
 &watchdog0 {
        status = "okay";
+       reset-on-timeout;
 };
 
 &xilinx_ams {
index 87b7941..1625ef3 100644 (file)
@@ -80,5 +80,7 @@ CONFIG_USB_ULPI=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_WDT=y
+CONFIG_WDT_CDNS=y
 CONFIG_OF_LIBFDT_OVERLAY=y
 CONFIG_EFI_LOADER_BOUNCE_BUFFER=y