MLK-13610-1 ARM: dts: add SD3.0 support for usdhc0 on imx7ulp-evk
authorHaibo Chen <haibo.chen@nxp.com>
Wed, 14 Dec 2016 11:35:34 +0000 (19:35 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:58:00 +0000 (14:58 -0500)
Add SD3.0 support for usdhc0 on imx7ulp-evk board. Currently the
usdhc0 root clock is 158.4MHz.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
arch/arm/boot/dts/imx7ulp-evk.dts
arch/arm/boot/dts/imx7ulp.dtsi

index 2d46da2..f0b3f8c 100644 (file)
                        gpio = <&gpio0 0 GPIO_ACTIVE_HIGH>;
                        enable-active-high;
                };
+
+               reg_vsd_3v3: regulator@1 {
+                       compatible = "regulator-fixed";
+                       reg = <1>;
+                       regulator-name = "VSD_3V3";
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
+                       gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
+                       enable-active-high;
+               };
        };
 
        extcon_usb1: extcon_usb1 {
        imx7ulp-evk {
                pinctrl_hog_1: hoggrp-1 {
                        fsl,pins = <
-                               ULP1_PAD_PTC10__PTC10           0x30100
+                               ULP1_PAD_PTC10__PTC10           0x30100         /* USDHC0 CD */
                                ULP1_PAD_PTC1__PTC1             0x20100
+                               ULP1_PAD_PTD0__PTD0             0x30100         /* USDHC0 RST */
                        >;
                };
 
                pinctrl_usdhc0: usdhc0grp {
                        fsl,pins = <
                                ULP1_PAD_PTD1__SDHC0_CMD        0x843
-                               ULP1_PAD_PTD2__SDHC0_CLK        0x843
+                               ULP1_PAD_PTD2__SDHC0_CLK        0x10843
                                ULP1_PAD_PTD7__SDHC0_D3         0x843
                                ULP1_PAD_PTD8__SDHC0_D2         0x843
                                ULP1_PAD_PTD9__SDHC0_D1         0x843
 };
 
 &usdhc0 {
-       pinctrl-names = "default", "sleep";
+       pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep";
        pinctrl-0 = <&pinctrl_usdhc0>;
        pinctrl-1 = <&pinctrl_usdhc0>;
-       non-removable;
+       pinctrl-2 = <&pinctrl_usdhc0>;
+       pinctrl-3 = <&pinctrl_usdhc0>;
+       cd-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+       vmmc-supply = <&reg_vsd_3v3>;
+       vqmmc-supply = <&vldo2_reg>;
        status = "okay";
 };
 
index a4842d8..1e861dc 100644 (file)
                                 <&clks IMX7ULP_CLK_USDHC0>;
                        clock-names ="ipg", "ahb", "per";
                        bus-width = <4>;
+                       fsl,tuning-start-tap = <20>;
+                       fsl,tuning-step= <2>;
                        status = "disabled";
                };