arm64: dts: renesas: v3msk: add eMMC support
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tue, 21 Aug 2018 19:50:31 +0000 (22:50 +0300)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 13 Sep 2018 07:47:20 +0000 (09:47 +0200)
Add the eMMC chip support for the V3M Started Kit board.

Based on the original (and large) patches by Vladimir Barinov.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts

index 8eac8ca..0dbcb4c 100644 (file)
                regulator-always-on;
        };
 
+       vcc_vddq_vin0: regulator-2 {
+               compatible = "regulator-fixed";
+               regulator-name = "VCC_VDDQ_VIN0";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-boot-on;
+               regulator-always-on;
+       };
+
        lvds-decoder {
                compatible = "thine,thc63lvd1024";
                vcc-supply = <&vcc_d3_3v>;
                function = "i2c0";
        };
 
+       mmc_pins: mmc_3_3v {
+               groups = "mmc_data8", "mmc_ctrl";
+               function = "mmc";
+               power-source = <3300>;
+       };
+
        scif0_pins: scif0 {
                groups = "scif0_data";
                function = "scif0";
        };
 };
 
+&mmc0 {
+       pinctrl-0 = <&mmc_pins>;
+       pinctrl-names = "default";
+
+       vmmc-supply = <&vcc_d3_3v>;
+       vqmmc-supply = <&vcc_vddq_vin0>;
+       bus-width = <8>;
+       non-removable;
+       status = "okay";
+};
+
 &scif0 {
        pinctrl-0 = <&scif0_pins>;
        pinctrl-names = "default";