ARM: dts: cm-t335: add support for MMC
authorIlya Ledvich <ilya@compulab.co.il>
Tue, 24 Nov 2015 14:02:11 +0000 (16:02 +0200)
committerTony Lindgren <tony@atomide.com>
Mon, 30 Nov 2015 22:03:47 +0000 (14:03 -0800)
Add pinmux configuration for MMC0 pins.
Add fixed regulator 'vmmc_fixed'.
Enable MMC0 in 4-bit mode.

Signed-off-by: Ilya Ledvich <ilya@compulab.co.il>
Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am335x-cm-t335.dts

index 57c8b031369c14a4b2c23bf93b502cc288bdd97f..486810f361288eeff851d46f4b1f2a84d36bb6f4 100644 (file)
                        linux,default-trigger = "heartbeat";
                };
        };
+
+       /* regulator for mmc */
+       vmmc_fixed: fixedregulator@0 {
+               compatible = "regulator-fixed";
+               regulator-name = "vmmc_fixed";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+       };
 };
 
 &am33xx_pinmux {
                        AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0)
                >;
        };
+
+       mmc1_pins: pinmux_mmc1_pins {
+               pinctrl-single,pins = <
+                       /* mmc0_dat3.mmc0_dat3 */
+                       AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0)
+                       /* mmc0_dat2.mmc0_dat2 */
+                       AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0)
+                       /* mmc0_dat1.mmc0_dat1 */
+                       AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0)
+                       /* mmc0_dat0.mmc0_dat0 */
+                       AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0)
+                       /* mmc0_clk.mmc0_clk */
+                       AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0)
+                       /* mmc0_cmd.mmc0_cmd */
+                       AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0)
+               >;
+       };
 };
 
 &uart0 {
 &elm {
        status = "okay";
 };
+
+&mmc1 {
+       status = "okay";
+       vmmc-supply = <&vmmc_fixed>;
+       bus-width = <4>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&mmc1_pins>;
+};