From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Date: Mon, 14 Oct 2019 16:19:33 +0200 Subject: [U-Boot] [PATCH 7/7] arm64: zynqmp: List lpd watchdog in dtsi In-Reply-To: References: Message-ID: <837bf7c98ecd423063a6706ea6429b7a536dedbe.1571062768.git.michal.simek@xilinx.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de There are use cases where lpd watchdog can be configured for APU use. By design this IP should be listed in zynqmp.dtsi to make sure that node is properly enabled by DTG. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-clk-ccf.dtsi | 4 ++++ arch/arm/dts/zynqmp-clk.dtsi | 4 ++++ arch/arm/dts/zynqmp.dtsi | 9 +++++++++ 3 files changed, 17 insertions(+) diff --git a/arch/arm/dts/zynqmp-clk-ccf.dtsi b/arch/arm/dts/zynqmp-clk-ccf.dtsi index bd0f8eb22c5f..998298cc9bee 100644 --- a/arch/arm/dts/zynqmp-clk-ccf.dtsi +++ b/arch/arm/dts/zynqmp-clk-ccf.dtsi @@ -272,6 +272,10 @@ clocks = <&zynqmp_clk WDT>; }; +&lpd_watchdog { + clocks = <&zynqmp_clk LPD_WDT>; +}; + &xilinx_ams { clocks = <&zynqmp_clk AMS_REF>; }; diff --git a/arch/arm/dts/zynqmp-clk.dtsi b/arch/arm/dts/zynqmp-clk.dtsi index c70f85a43020..9ef55ad0d18e 100644 --- a/arch/arm/dts/zynqmp-clk.dtsi +++ b/arch/arm/dts/zynqmp-clk.dtsi @@ -223,6 +223,10 @@ clocks = <&clk100>; }; +&lpd_watchdog { + clocks = <&clk250>; +}; + &xilinx_drm { clocks = <&drm_clock>; }; diff --git a/arch/arm/dts/zynqmp.dtsi b/arch/arm/dts/zynqmp.dtsi index 6f81909043aa..2bc49c391249 100644 --- a/arch/arm/dts/zynqmp.dtsi +++ b/arch/arm/dts/zynqmp.dtsi @@ -979,6 +979,15 @@ reset-on-timeout; }; + lpd_watchdog: watchdog at ff150000 { + compatible = "cdns,wdt-r1p2"; + status = "disabled"; + interrupt-parent = <&gic>; + interrupts = <0 52 1>; + reg = <0x0 0xff150000 0x0 0x1000>; + timeout-sec = <10>; + }; + xilinx_ams: ams at ffa50000 { compatible = "xlnx,zynqmp-ams"; status = "disabled"; -- 2.17.1