ARM: dts: alt: add MMCIF support
authorSimon Horman <horms+renesas@verge.net.au>
Tue, 9 Aug 2016 12:19:04 +0000 (14:19 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 17 Aug 2016 07:07:51 +0000 (09:07 +0200)
Define the Alt board dependent part of the MMCIF device node.

Like the Silk the board has eMMC chip along with the  necessary voltage
regulator (note that the Vcc/Vccq regulator is dummy -- it's required by
the MMCIF driver but doesn't actually exist on the board).

Based on work for the Silk board by Vladimir Barinov and Sergei Shtylyov.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7794-alt.dts

index fe7c128..8d1b35a 100644 (file)
                reg = <0 0x40000000 0 0x40000000>;
        };
 
+       d3_3v: regulator-d3-3v {
+               compatible = "regulator-fixed";
+               regulator-name = "D3.3V";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-boot-on;
+               regulator-always-on;
+       };
+
        vcc_sdhi0: regulator-vcc-sdhi0 {
                compatible = "regulator-fixed";
 
                function = "vin0";
        };
 
+       mmcif0_pins: mmcif0 {
+               groups = "mmc_data8", "mmc_ctrl";
+               function = "mmc";
+       };
+
        sdhi0_pins: sd0 {
                groups = "sdhi0_data4", "sdhi0_ctrl";
                function = "sdhi0";
        };
 };
 
+&mmcif0 {
+       pinctrl-0 = <&mmcif0_pins>;
+       pinctrl-names = "default";
+
+       vmmc-supply = <&d3_3v>;
+       vqmmc-supply = <&d3_3v>;
+       bus-width = <8>;
+       non-removable;
+       status = "okay";
+};
+
 &sdhi0 {
        pinctrl-0 = <&sdhi0_pins>;
        pinctrl-names = "default";