]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commitdiff
ARM: ux500: Add node for the MMC GPIO regulator
authorLee Jones <lee.jones@linaro.org>
Wed, 24 Oct 2012 10:18:14 +0000 (11:18 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 1 Nov 2012 12:02:25 +0000 (13:02 +0100)
There is a very simple mechanism to change and SDI's voltage which
consists of toggling some GPIOs. This scenario can be better handled
if we convert it to a GPIO regulator. This patch provides one which
can be read from Device Tree.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
arch/arm/boot/dts/dbx5x0.dtsi

index 3b4298bc0bf9ad97dafb814d406e63d7e91c1d73..7ce45fc461fbcdf28d5d3b1a5b322db1e893f485 100644 (file)
                        ranges = <0 0x50000000 0x4000000>;
                        status = "disabled";
                };
+
+               vmmci: regulator-gpio {
+                       compatible = "regulator-gpio";
+
+                       regulator-min-microvolt = <1800000>;
+                       regulator-max-microvolt = <2600000>;
+                       regulator-name = "mmci-reg";
+                       regulator-type = "voltage";
+
+                       gpios = <&tc3589x_gpio 18 0x4>;
+                       gpio-enable = <&tc3589x_gpio 17 0x4>;
+                       states = <1800000 0x1
+                                 2900000 0x0>;
+               };
        };
 };