arm64: dts: r8a7795: salvator: enable on-board eMMC
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 16 Oct 2016 08:27:47 +0000 (10:27 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 4 Nov 2016 09:18:03 +0000 (10:18 +0100)
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts

index c8f6023c4667f96d8c163d4474b789d14b58bb6c..da3e996ba1212646f0b2c51e0ff2faffa8494307 100644 (file)
                clock-frequency = <24576000>;
        };
 
+       reg_1p8v: regulator0 {
+               compatible = "regulator-fixed";
+               regulator-name = "fixed-1.8V";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+               regulator-boot-on;
+               regulator-always-on;
+       };
+
+       reg_3p3v: regulator1 {
+               compatible = "regulator-fixed";
+               regulator-name = "fixed-3.3V";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-boot-on;
+               regulator-always-on;
+       };
+
        vcc_sdhi0: regulator-vcc-sdhi0 {
                compatible = "regulator-fixed";
 
                power-source = <1800>;
        };
 
+       sdhi2_pins: sd2 {
+               groups = "sdhi2_data8", "sdhi2_ctrl";
+               function = "sdhi2";
+               power-source = <3300>;
+       };
+
+       sdhi2_pins_uhs: sd2_uhs {
+               groups = "sdhi2_data8", "sdhi2_ctrl";
+               function = "sdhi2";
+               power-source = <1800>;
+       };
+
        sdhi3_pins: sd3 {
                groups = "sdhi3_data4", "sdhi3_ctrl";
                function = "sdhi3";
        status = "okay";
 };
 
+&sdhi2 {
+       /* used for on-board 8bit eMMC */
+       pinctrl-0 = <&sdhi2_pins>;
+       pinctrl-1 = <&sdhi2_pins_uhs>;
+       pinctrl-names = "default", "state_uhs";
+
+       vmmc-supply = <&reg_3p3v>;
+       vqmmc-supply = <&reg_1p8v>;
+       bus-width = <8>;
+       non-removable;
+       status = "okay";
+};
+
 &sdhi3 {
        pinctrl-0 = <&sdhi3_pins>;
        pinctrl-1 = <&sdhi3_pins_uhs>;