* [PATCH v4 0/2] ARM: dts: imx7: add NAND support
@ 2017-06-02 2:11 Stefan Agner
2017-06-02 2:11 ` [PATCH v4 1/2] ARM: dts: imx7: add GPMI NAND Stefan Agner
2017-06-02 2:11 ` [PATCH v4 2/2] ARM: dts: imx7-colibri: add NAND support Stefan Agner
0 siblings, 2 replies; 3+ messages in thread
From: Stefan Agner @ 2017-06-02 2:11 UTC (permalink / raw)
To: shawnguo, kernel
Cc: dwmw2, computersforpeace, boris.brezillon, marek.vasut, richard,
cyrille.pitchen, robh+dt, mark.rutland, han.xu, fabio.estevam,
LW, linux-mtd, devicetree, linux-arm-kernel, linux-kernel,
Stefan Agner
This are the missing device tree parts to add NAND support for i.MX 7.
See previous patchset:
https://lkml.org/lkml/2017/4/21/832
The previous version also included driver changes, which are already
merged.
--
Stefan
Changes since v3:
- Only specify IMX7D_NAND_USDHC_BUS_ROOT_CLK which seems to be sufficent
Changes since v2:
- Dropped driver changes, alreay merged
Changes since v1:
- Make clks_count const
- Introduce IS_IMX7D for i.MX 7 SoC's and make it part of GPMI_IS_MX6
Stefan Agner (2):
ARM: dts: imx7: add GPMI NAND
ARM: dts: imx7-colibri: add NAND support
arch/arm/boot/dts/imx7-colibri.dtsi | 9 +++++++++-
arch/arm/boot/dts/imx7s.dtsi | 30 ++++++++++++++++++++++++++++++-
2 files changed, 39 insertions(+)
base-commit: e2bb3be2c6c623ff0bad975dc9435531f450f0c5
--
git-series 0.9.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v4 1/2] ARM: dts: imx7: add GPMI NAND
2017-06-02 2:11 [PATCH v4 0/2] ARM: dts: imx7: add NAND support Stefan Agner
@ 2017-06-02 2:11 ` Stefan Agner
2017-06-02 2:11 ` [PATCH v4 2/2] ARM: dts: imx7-colibri: add NAND support Stefan Agner
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Agner @ 2017-06-02 2:11 UTC (permalink / raw)
To: shawnguo, kernel
Cc: dwmw2, computersforpeace, boris.brezillon, marek.vasut, richard,
cyrille.pitchen, robh+dt, mark.rutland, han.xu, fabio.estevam,
LW, linux-mtd, devicetree, linux-arm-kernel, linux-kernel,
Stefan Agner
Add i.MX 7 GPMI NAND module.
Signed-off-by: Stefan Agner <stefan@agner.ch>
---
arch/arm/boot/dts/imx7s.dtsi | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi
index c4f12fd..48cfedb 100644
--- a/arch/arm/boot/dts/imx7s.dtsi
+++ b/arch/arm/boot/dts/imx7s.dtsi
@@ -995,5 +995,35 @@
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_ROOT_CLK>;
+ clock-names = "dma_apbh_bch", "dma_apbh_io";
+ };
+
+ 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_ROOT_CLK>,
+ <&clks IMX7D_NAND_USDHC_BUS_ROOT_CLK>;
+ clock-names = "gpmi_io", "gpmi_bch_apb";
+ dmas = <&dma_apbh 0>;
+ dma-names = "rx-tx";
+ status = "disabled";
+ };
};
};
--
git-series 0.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH v4 2/2] ARM: dts: imx7-colibri: add NAND support
2017-06-02 2:11 [PATCH v4 0/2] ARM: dts: imx7: add NAND support Stefan Agner
2017-06-02 2:11 ` [PATCH v4 1/2] ARM: dts: imx7: add GPMI NAND Stefan Agner
@ 2017-06-02 2:11 ` Stefan Agner
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Agner @ 2017-06-02 2:11 UTC (permalink / raw)
To: shawnguo, kernel
Cc: dwmw2, computersforpeace, boris.brezillon, marek.vasut, richard,
cyrille.pitchen, robh+dt, mark.rutland, han.xu, fabio.estevam,
LW, linux-mtd, devicetree, linux-arm-kernel, linux-kernel,
Stefan Agner
The Colibri iMX7 modules come with 512MB on-module SLC NAND flash
populated. Make use of it by enabling the GPMI controller.
Signed-off-by: Stefan Agner <stefan@agner.ch>
---
arch/arm/boot/dts/imx7-colibri.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/dts/imx7-colibri.dtsi
index 2d87489..ad4ce19 100644
--- a/arch/arm/boot/dts/imx7-colibri.dtsi
+++ b/arch/arm/boot/dts/imx7-colibri.dtsi
@@ -106,6 +106,15 @@
fsl,magic-packet;
};
+&gpmi {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_gpmi_nand>;
+ fsl,use-minimum-ecc;
+ nand-on-flash-bbt;
+ nand-ecc-mode = "hw";
+ status = "okay";
+};
+
&i2c1 {
clock-frequency = <100000>;
pinctrl-names = "default";
--
git-series 0.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-02 2:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-02 2:11 [PATCH v4 0/2] ARM: dts: imx7: add NAND support Stefan Agner
2017-06-02 2:11 ` [PATCH v4 1/2] ARM: dts: imx7: add GPMI NAND Stefan Agner
2017-06-02 2:11 ` [PATCH v4 2/2] ARM: dts: imx7-colibri: add NAND support Stefan Agner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).