Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1661783

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

From Stefan Agner <stefan@agner.ch>
Newsgroups linux.kernel
Subject [PATCH v6 2/3] ARM: dts: imx7: add GPMI NAND and APBH DMA
Date 2017-06-09 00:40 +0200
Message-ID <tQefU-1I1-31@gated-at.bofh.it> (permalink)
References <tQefT-1I1-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Add i.MX 7 APBH DMA and GPMI NAND modules.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Tested-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 arch/arm/boot/dts/imx7s.dtsi | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi
index c4f12fd..4902f62 100644
--- a/arch/arm/boot/dts/imx7s.dtsi
+++ b/arch/arm/boot/dts/imx7s.dtsi
@@ -995,5 +995,36 @@
 				status = "disabled";
 			};
 		};
+
+		dma_apbh: dma-apbh@33000000 {
+			compatible = "fsl,imx7d-dma-apbh", "fsl,imx28-dma-apbh";
+			reg = <0x33000000 0x2000>;
+			interrupts = <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 = "gpmi0", "gpmi1", "gpmi2", "gpmi3";
+			#dma-cells = <1>;
+			dma-channels = <4>;
+			clocks = <&clks IMX7D_NAND_USDHC_BUS_RAWNAND_CLK>;
+		};
+
+		gpmi: gpmi-nand@33002000{
+			compatible = "fsl,imx7d-gpmi-nand";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			reg = <0x33002000 0x2000>, <0x33004000 0x4000>;
+			reg-names = "gpmi-nand", "bch";
+			interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "bch";
+			clocks = <&clks IMX7D_NAND_RAWNAND_CLK>,
+				<&clks IMX7D_NAND_USDHC_BUS_RAWNAND_CLK>;
+			clock-names = "gpmi_io", "gpmi_bch_apb";
+			dmas = <&dma_apbh 0>;
+			dma-names = "rx-tx";
+			status = "disabled";
+			assigned-clocks = <&clks IMX7D_NAND_ROOT_SRC>;
+			assigned-clock-parents = <&clks IMX7D_PLL_ENET_MAIN_500M_CLK>;
+		};
 	};
 };
-- 
git-series 0.9.1

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v6 0/3] ARM: dts: imx7: add NAND support Stefan Agner <stefan@agner.ch> - 2017-06-09 00:40 +0200
  [PATCH v6 1/3] clk: imx7d: create clocks behind rawnand clock gate Stefan Agner <stefan@agner.ch> - 2017-06-09 00:40 +0200
    Re: [PATCH v6 1/3] clk: imx7d: create clocks behind rawnand clock  gate Han Xu <han.xu@nxp.com> - 2017-06-09 21:20 +0200
  [PATCH v6 3/3] ARM: dts: imx7-colibri: add NAND support Stefan Agner <stefan@agner.ch> - 2017-06-09 00:40 +0200
    Re: [PATCH v6 3/3] ARM: dts: imx7-colibri: add NAND support Han Xu <han.xu@nxp.com> - 2017-06-09 21:20 +0200
  [PATCH v6 2/3] ARM: dts: imx7: add GPMI NAND and APBH DMA Stefan Agner <stefan@agner.ch> - 2017-06-09 00:40 +0200
    Re: [PATCH v6 2/3] ARM: dts: imx7: add GPMI NAND and APBH DMA Han Xu <han.xu@nxp.com> - 2017-06-09 21:20 +0200
  Re: [PATCH v6 0/3] ARM: dts: imx7: add NAND support Shawn Guo <shawnguo@kernel.org> - 2017-06-14 17:20 +0200

csiph-web