[U-Boot] [PATCH 26/27] ARM64: zynqmp: Add clocks for LPDDMA

Michal Simek michal.simek at xilinx.com
Fri Nov 11 14:41:51 CET 2016


From: Kedareswara rao Appana <appana.durga.rao at xilinx.com>

Zynqmp DMA driver expects two clocks (main clock and apb clock)
For LPDDMA channels the two clocks are missing in the
Dma node resulting probe failure.

xilinx-zynqmp-dma ffa80000.dma: main clock not found.
xilinx-zynqmp-dma ffa80000.dma: Probing channel failed
xilinx-zynqmp-dma: probe of ffa80000.dma failed with error -2

This patch fixes this issue.

Signed-off-by: Kedareswara rao Appana <appanad at xilinx.com>
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---

 arch/arm/dts/zynqmp.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/dts/zynqmp.dtsi b/arch/arm/dts/zynqmp.dtsi
index aeeccbf9e9d0..5b4fe0962e05 100644
--- a/arch/arm/dts/zynqmp.dtsi
+++ b/arch/arm/dts/zynqmp.dtsi
@@ -428,6 +428,7 @@
 		lpd_dma_chan1: dma at ffa80000 {
 			status = "disabled";
 			compatible = "xlnx,zynqmp-dma-1.0";
+			clock-names = "clk_main", "clk_apb";
 			reg = <0x0 0xffa80000 0x0 0x1000>;
 			interrupt-parent = <&gic>;
 			interrupts = <0 77 4>;
@@ -440,6 +441,7 @@
 		lpd_dma_chan2: dma at ffa90000 {
 			status = "disabled";
 			compatible = "xlnx,zynqmp-dma-1.0";
+			clock-names = "clk_main", "clk_apb";
 			reg = <0x0 0xffa90000 0x0 0x1000>;
 			interrupt-parent = <&gic>;
 			interrupts = <0 78 4>;
@@ -452,6 +454,7 @@
 		lpd_dma_chan3: dma at ffaa0000 {
 			status = "disabled";
 			compatible = "xlnx,zynqmp-dma-1.0";
+			clock-names = "clk_main", "clk_apb";
 			reg = <0x0 0xffaa0000 0x0 0x1000>;
 			interrupt-parent = <&gic>;
 			interrupts = <0 79 4>;
@@ -464,6 +467,7 @@
 		lpd_dma_chan4: dma at ffab0000 {
 			status = "disabled";
 			compatible = "xlnx,zynqmp-dma-1.0";
+			clock-names = "clk_main", "clk_apb";
 			reg = <0x0 0xffab0000 0x0 0x1000>;
 			interrupt-parent = <&gic>;
 			interrupts = <0 80 4>;
@@ -476,6 +480,7 @@
 		lpd_dma_chan5: dma at ffac0000 {
 			status = "disabled";
 			compatible = "xlnx,zynqmp-dma-1.0";
+			clock-names = "clk_main", "clk_apb";
 			reg = <0x0 0xffac0000 0x0 0x1000>;
 			interrupt-parent = <&gic>;
 			interrupts = <0 81 4>;
@@ -488,6 +493,7 @@
 		lpd_dma_chan6: dma at ffad0000 {
 			status = "disabled";
 			compatible = "xlnx,zynqmp-dma-1.0";
+			clock-names = "clk_main", "clk_apb";
 			reg = <0x0 0xffad0000 0x0 0x1000>;
 			interrupt-parent = <&gic>;
 			interrupts = <0 82 4>;
@@ -500,6 +506,7 @@
 		lpd_dma_chan7: dma at ffae0000 {
 			status = "disabled";
 			compatible = "xlnx,zynqmp-dma-1.0";
+			clock-names = "clk_main", "clk_apb";
 			reg = <0x0 0xffae0000 0x0 0x1000>;
 			interrupt-parent = <&gic>;
 			interrupts = <0 83 4>;
@@ -512,6 +519,7 @@
 		lpd_dma_chan8: dma at ffaf0000 {
 			status = "disabled";
 			compatible = "xlnx,zynqmp-dma-1.0";
+			clock-names = "clk_main", "clk_apb";
 			reg = <0x0 0xffaf0000 0x0 0x1000>;
 			interrupt-parent = <&gic>;
 			interrupts = <0 84 4>;
-- 
1.9.1



More information about the U-Boot mailing list