ARM: dts: imx6ul: segin: Only enable NAND if it is populated
authorStefan Riedmueller <s.riedmueller@phytec.de>
Tue, 9 Jul 2019 07:19:23 +0000 (09:19 +0200)
committerShawn Guo <shawnguo@kernel.org>
Tue, 23 Jul 2019 05:38:32 +0000 (13:38 +0800)
The phyCORE-i.MX 6UL/ULL now comes either with NAND flash or eMMC. We
have to configure the populated memory type in the device tree files. So
the GPMI node gets disabled by default and only enabled if populated.

Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6ul-phytec-phycore-som.dtsi
arch/arm/boot/dts/imx6ul-phytec-segin-ff-rdk-nand.dts

index fee7a7e..de6ffbb 100644 (file)
@@ -65,7 +65,7 @@
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_gpmi_nand>;
        nand-on-flash-bbt;
-       status = "okay";
+       status = "disabled";
 };
 
 &i2c1 {
index 81a82dd..c6ef136 100644 (file)
        status = "okay";
 };
 
+&gpmi {
+       status = "okay";
+};
+
 &i2c_rtc {
        status = "okay";
 };