MLK-13610-2 ARM: dts: imx7ulp-evk: add base board sd slot support
authorHaibo Chen <haibo.chen@nxp.com>
Thu, 15 Dec 2016 02:58:18 +0000 (10:58 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:58:00 +0000 (14:58 -0500)
On imx7ulp-evk board, the SD slot on base board is conflict with BT/WiFi.
This patch seperate the usdhc1 from imx7ulp-evk.dts, and create new dts.

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

index 4bc2a7c..a6f51e5 100644 (file)
@@ -573,6 +573,7 @@ dtb-$(CONFIG_SOC_IMX7ULP) += \
        imx7ulp-14x14-arm2.dtb \
        imx7ulp-evk.dtb \
        imx7ulp-evk-emmc.dtb \
+       imx7ulp-evk-sd1.dtb \
        imx7ulp-evk-lpuart.dtb \
        imx7ulp-evk-qspi.dtb \
        imx7ulp-evk-wm8960.dtb
diff --git a/arch/arm/boot/dts/imx7ulp-evk-sd1.dts b/arch/arm/boot/dts/imx7ulp-evk-sd1.dts
new file mode 100644 (file)
index 0000000..6cdb99a
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * Copyright 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 "imx7ulp-evk.dts"
+
+&bcmdhd_wlan_0 {
+       status = "disabled";
+};
+
+&lpuart6 {
+       status = "disabled";
+};
+
+&usdhc1 {
+       pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep";
+       pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_usdhc1_rst>;
+       pinctrl-1 = <&pinctrl_usdhc1 &pinctrl_usdhc1_rst>;
+       pinctrl-2 = <&pinctrl_usdhc1 &pinctrl_usdhc1_rst>;
+       pinctrl-3 = <&pinctrl_usdhc1 &pinctrl_usdhc1_rst>;
+       cd-gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
+       wp-gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
+       vmmc-supply = <&reg_vsd_3v3b>;
+       /delete-property/non-removable;
+       /delete-property/cd-post;
+       /delete-property/wifi-host;
+       status = "okay";
+};
index f0b3f8c..802a4ec 100644 (file)
                        gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
                        enable-active-high;
                };
+
+               reg_vsd_3v3b: regulator@2 {
+                       compatible = "regulator-fixed";
+                       reg = <2>;
+                       regulator-name = "VSD_3V3B";
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
+                       gpio = <&gpio2 11 GPIO_ACTIVE_HIGH>;
+                       enable-active-high;
+               };
        };
 
        extcon_usb1: extcon_usb1 {
                                ULP1_PAD_PTC10__PTC10           0x30100         /* USDHC0 CD */
                                ULP1_PAD_PTC1__PTC1             0x20100
                                ULP1_PAD_PTD0__PTD0             0x30100         /* USDHC0 RST */
+                               ULP1_PAD_PTE13__PTE13           0x30103         /* USDHC1 CD */
+                               ULP1_PAD_PTE12__PTE12           0x30103         /* USDHC1 WP */
+                               ULP1_PAD_PTE14__SDHC1_VS        0x843           /* USDHC1 VSEL */
                        >;
                };
 
                        >;
                };
 
+               pinctrl_usdhc1_rst: usdhc1grp_rst {
+                       fsl,pins = <
+                               ULP1_PAD_PTE11__PTE11                   0x30100 /* USDHC1 RST */
+                       >;
+               };
+
                pinctrl_wifi: wifigrp {
                        fsl,pins = <
                                ULP1_PAD_PTE6__PTE6             0x43 /* WL_REG_ON */
 };
 
 &usdhc1 {
-       pinctrl-names = "default";
+       pinctrl-names = "default", "sleep";
        pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_wifi>;
+       pinctrl-1 = <&pinctrl_usdhc1 &pinctrl_wifi>;
        non-removable;
        keep-power-in-suspend;
        cd-post;
index 1e861dc..39efbc3 100644 (file)
                                 <&clks IMX7ULP_CLK_USDHC1>;
                        clock-names ="ipg", "ahb", "per";
                        bus-width = <4>;
+                       fsl,tuning-start-tap = <20>;
+                       fsl,tuning-step= <2>;
                        status = "disabled";
                };