arm: dts: imx: add emmc support on imx6ulz
authorHaibo Chen <haibo.chen@nxp.com>
Tue, 29 Oct 2019 08:19:41 +0000 (16:19 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:20:23 +0000 (11:20 +0800)
eMMC on EVK board share the same USDHC with Micro-SD.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
arch/arm/boot/dts/Makefile
arch/arm/boot/dts/imx6ulz-14x14-evk-emmc.dts [new file with mode: 0644]

index 91d5f9c..e1d4610 100644 (file)
@@ -652,7 +652,8 @@ dtb-$(CONFIG_SOC_IMX6UL) += \
        imx6ull-phytec-segin-ff-rdk-nand.dtb \
        imx6ull-phytec-segin-ff-rdk-emmc.dtb \
        imx6ull-phytec-segin-lc-rdk-nand.dtb \
-       imx6ulz-14x14-evk.dtb
+       imx6ulz-14x14-evk.dtb \
+       imx6ulz-14x14-evk-emmc.dtb
 dtb-$(CONFIG_SOC_IMX7D) += \
        imx7d-cl-som-imx7.dtb \
        imx7d-colibri-aster.dtb \
diff --git a/arch/arm/boot/dts/imx6ulz-14x14-evk-emmc.dts b/arch/arm/boot/dts/imx6ulz-14x14-evk-emmc.dts
new file mode 100644 (file)
index 0000000..e477952
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2019 NXP
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#include "imx6ulz-14x14-evk.dts"
+
+&usdhc2 {
+       pinctrl-names = "default", "state_100mhz", "state_200mhz";
+       pinctrl-0 = <&pinctrl_usdhc2_8bit>;
+       pinctrl-1 = <&pinctrl_usdhc2_8bit_100mhz>;
+       pinctrl-2 = <&pinctrl_usdhc2_8bit_200mhz>;
+       bus-width = <8>;
+       non-removable;
+       status = "okay";
+};