arm: dts: phy3250: add SD fixed regulator
authorVladimir Zapolskiy <vz@mleia.com>
Mon, 21 Dec 2015 19:54:26 +0000 (21:54 +0200)
committerVladimir Zapolskiy <vz@mleia.com>
Thu, 11 Feb 2016 01:06:36 +0000 (03:06 +0200)
The change adds fixed voltage regulator for SD controller, ARM MMCI
controller driver uses it to control card power management.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
arch/arm/boot/dts/phy3250.dts

index 8ac368f..a00d7ce 100644 (file)
                        enable-active-high;
                        regulator-boot-on;
                };
+
+               sd_reg: regulator@2 {
+                       compatible = "regulator-fixed";
+                       regulator-name = "sd_reg";
+                       regulator-min-microvolt = <1800000>;
+                       regulator-max-microvolt = <1800000>;
+                       gpio = <&gpio 5 5 0>;
+                       enable-active-high;
+               };
        };
 
        ahb {
                                cd-gpios = <&gpio 3 1 0>;
                                cd-inverted;
                                bus-width = <4>;
+                               vmmc-supply = <&sd_reg>;
                                status = "okay";
                        };
                };