MLK-12757-3: ARM: dts: imx6ull-ddr3-arm2-emmc.dts: add eMMC support
authorHaibo Chen <haibo.chen@nxp.com>
Wed, 4 May 2016 07:12:32 +0000 (15:12 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:51:55 +0000 (14:51 -0500)
For imx6ull-ddr3-arm2 board, eMMC and SD1 slot share usdhc1, so
this patch add another dts file imx6ull-ddr3-arm2-emmc.dts to
support eMMC.

eMMC data4~data7 share the same I/O domain with sd2, so this patch
only enable eMMC 4bit mode.

Due to the eMMC on imx6ull-ddr3-arm2 board support HS200 mode, and
need the VCCQ to be 1.8v, this patch keep usdhc vselect, let usdhc
to change the I/O voltage to 1.8v automatically. Otherwise, another
rework needed: remove R95, add R94.

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

index d31cd4b..c67f6f2 100644 (file)
@@ -484,6 +484,7 @@ dtb-$(CONFIG_SOC_IMX6ULL) += \
        imx6ull-ddr3-arm2-adc.dtb \
        imx6ull-ddr3-arm2-cs42888.dtb \
        imx6ull-ddr3-arm2-ecspi.dtb \
+       imx6ull-ddr3-arm2-emmc.dtb \
        imx6ull-ddr3-arm2-flexcan2.dtb \
        imx6ull-ddr3-arm2-gpmi-weim.dtb \
        imx6ull-ddr3-arm2-lcdif.dtb \
diff --git a/arch/arm/boot/dts/imx6ull-ddr3-arm2-emmc.dts b/arch/arm/boot/dts/imx6ull-ddr3-arm2-emmc.dts
new file mode 100644 (file)
index 0000000..2c3b975
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * Copyright (C) 2016 Freescale Semiconductor, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include "imx6ull-ddr3-arm2.dts"
+
+&usdhc1 {
+       assigned-clocks = <&clks IMX6UL_CLK_USDHC1_SEL>, <&clks IMX6UL_CLK_USDHC1>;
+       assigned-clock-parents = <&clks IMX6UL_CLK_PLL2_PFD0>;
+       assigned-clock-rates = <0>, <176000000>;
+       cd-gpios = <>;
+       wp-gpios = <>;
+       vmmc-supply = <>;
+       non-removable;
+       status = "okay";
+};