ARM: dts: utilite-pro: add mmc card slot support
authorChristopher Spinrath <christopher.spinrath@rwth-aachen.de>
Sun, 12 Jun 2016 23:24:56 +0000 (01:24 +0200)
committerShawn Guo <shawnguo@kernel.org>
Thu, 16 Jun 2016 01:39:48 +0000 (09:39 +0800)
The Utilite Pro has a mmc card slot connected to the usdhc3
controller. There is no card detection until hardware revision 1.3.

Add support for it and signal the controller with the broken-cd
property that polling has to be used to detect a card.

Signed-off-by: Christopher Spinrath <christopher.spinrath@rwth-aachen.de>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6q-utilite-pro.dts

index 721974537aa0cf370b263e7761d79cdaf4c941a0..61990630a74887167784903670a63cec66a6b63d 100644 (file)
                        MX6QDL_PAD_SD4_DAT6__UART2_CTS_B 0x1b0b1
                >;
        };
+
+       pinctrl_usdhc3: usdhc3grp {
+               fsl,pins = <
+                       MX6QDL_PAD_SD3_CMD__SD3_CMD     0x17059
+                       MX6QDL_PAD_SD3_CLK__SD3_CLK     0x10059
+                       MX6QDL_PAD_SD3_DAT0__SD3_DATA0  0x17059
+                       MX6QDL_PAD_SD3_DAT1__SD3_DATA1  0x17059
+                       MX6QDL_PAD_SD3_DAT2__SD3_DATA2  0x17059
+                       MX6QDL_PAD_SD3_DAT3__SD3_DATA3  0x17059
+               >;
+       };
+
+       pinctrl_usdhc3_100mhz: usdhc3grp-100mhz {
+               fsl,pins = <
+                       MX6QDL_PAD_SD3_CMD__SD3_CMD     0x170B9
+                       MX6QDL_PAD_SD3_CLK__SD3_CLK     0x100B9
+                       MX6QDL_PAD_SD3_DAT0__SD3_DATA0  0x170B9
+                       MX6QDL_PAD_SD3_DAT1__SD3_DATA1  0x170B9
+                       MX6QDL_PAD_SD3_DAT2__SD3_DATA2  0x170B9
+                       MX6QDL_PAD_SD3_DAT3__SD3_DATA3  0x170B9
+               >;
+       };
+
+       pinctrl_usdhc3_200mhz: usdhc3grp-200mhz {
+               fsl,pins = <
+                       MX6QDL_PAD_SD3_CMD__SD3_CMD     0x170F9
+                       MX6QDL_PAD_SD3_CLK__SD3_CLK     0x100F9
+                       MX6QDL_PAD_SD3_DAT0__SD3_DATA0  0x170F9
+                       MX6QDL_PAD_SD3_DAT1__SD3_DATA1  0x170F9
+                       MX6QDL_PAD_SD3_DAT2__SD3_DATA2  0x170F9
+                       MX6QDL_PAD_SD3_DAT3__SD3_DATA3  0x170F9
+               >;
+       };
 };
 
 &pcie {
        uart-has-rtscts;
        status = "okay";
 };
+
+&usdhc3 {
+       pinctrl-names = "default", "state_100mhz", "state_200mhz";
+       pinctrl-0 = <&pinctrl_usdhc3>;
+       pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
+       pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
+       no-1-8-v;
+       broken-cd;
+       keep-power-in-suspend;
+       status = "okay";
+};