]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: sun8i: a83t: cubietruck-plus: Enable micro-SD card and eMMC
authorChen-Yu Tsai <wens@csie.org>
Mon, 24 Jul 2017 13:59:04 +0000 (21:59 +0800)
committerChen-Yu Tsai <wens@csie.org>
Sat, 5 Aug 2017 14:06:58 +0000 (22:06 +0800)
Now that we support the MMC controllers on the A83T SoC, we can enable
them on some boards.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts

index cff33454fc2458bf0e1fee5110ab8dd86c88cc21..163ddf8868b505f69e230743791d63a5de9b9689 100644 (file)
@@ -83,6 +83,13 @@ green {
                };
        };
 
+       reg_vcc3v3: vcc3v3 {
+               compatible = "regulator-fixed";
+               regulator-name = "vcc3v3";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+       };
+
        sound {
                compatible = "simple-audio-card";
                simple-audio-card,name = "On-board SPDIF";
@@ -102,6 +109,26 @@ spdif_out: spdif-out {
        };
 };
 
+&mmc0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&mmc0_pins>;
+       vmmc-supply = <&reg_vcc3v3>;
+       bus-width = <4>;
+       cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
+       cd-inverted;
+       status = "okay";
+};
+
+&mmc2 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&mmc2_8bit_emmc_pins>;
+       vmmc-supply = <&reg_vcc3v3>;
+       bus-width = <8>;
+       non-removable;
+       cap-mmc-hw-reset;
+       status = "okay";
+};
+
 &spdif {
        status = "okay";
 };