Thread (9 messages) flat view 9 messages, 3 authors, 2017-06-08

Re: [PATCH v5 2/3] ARM: dts: imx7: add GPMI NAND and APBH DMA

From: Han Xu <han.xu@nxp.com>
Date: 2017-06-07 15:33:32
Also in: linux-arm-kernel, linux-devicetree, lkml


On 06/06/2017 01:30 AM, Stefan Agner wrote:
quoted hunk ↗ jump to hunk
Add i.MX 7 APBH DMA and GPMI NAND modules.

Signed-off-by: Stefan Agner <stefan@agner.ch>
---
  arch/arm/boot/dts/imx7s.dtsi | 32 ++++++++++++++++++++++++++++++++
  1 file changed, 32 insertions(+)
diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi
index c4f12fd..d71acd8 100644
--- a/arch/arm/boot/dts/imx7s.dtsi
+++ b/arch/arm/boot/dts/imx7s.dtsi
@@ -995,5 +995,37 @@
  				status =3D "disabled";
  			};
  		};
+
+		dma_apbh: dma-apbh@33000000 {
+			compatible =3D "fsl,imx7d-dma-apbh", "fsl,imx28-dma-apbh";
+			reg =3D <0x33000000 0x2000>;
+			interrupts =3D <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names =3D "gpmi0", "gpmi1", "gpmi2", "gpmi3";
+			#dma-cells =3D <1>;
+			dma-channels =3D <4>;
+			clocks =3D <&clks IMX7D_NAND_USDHC_BUS_RAWNAND_CLK>;
+			clock-names =3D "dma_apbh_bch", "dma_apbh_io";
please remove the clock names, I am good with all other changes.
+		};
+
+		gpmi: gpmi-nand@33002000{
+			compatible =3D "fsl,imx7d-gpmi-nand";
+			#address-cells =3D <1>;
+			#size-cells =3D <1>;
+			reg =3D <0x33002000 0x2000>, <0x33004000 0x4000>;
+			reg-names =3D "gpmi-nand", "bch";
+			interrupts =3D <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names =3D "bch";
+			clocks =3D <&clks IMX7D_NAND_RAWNAND_CLK>,
+				<&clks IMX7D_NAND_USDHC_BUS_RAWNAND_CLK>;
+			clock-names =3D "gpmi_io", "gpmi_bch_apb";
+			dmas =3D <&dma_apbh 0>;
+			dma-names =3D "rx-tx";
+			status =3D "disabled";
+			assigned-clocks =3D <&clks IMX7D_NAND_ROOT_SRC>;
+			assigned-clock-parents =3D <&clks IMX7D_PLL_ENET_MAIN_500M_CLK>;
+		};
  	};
  };
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help