diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2012-12-27 17:21:59 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2013-02-28 12:57:12 -0500 |
commit | 41e364bb2494afe21803aff43bd8cb89ce6fc097 (patch) | |
tree | e6829e028ca1fb0145a40cf92f661f12ec712d1a /arch/arm/boot/dts | |
parent | e35e40cd553f7950c0bcb60f1d8f9672bd69d6a2 (diff) |
ARM: Dove: add fixed regulator for CuBox USB power
CuBox needs to enable USB power on a gpio pin. Add a fixed regulator
to always enable usb power on boot.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/boot/dts')
-rw-r--r-- | arch/arm/boot/dts/dove-cubox.dts | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/dove-cubox.dts b/arch/arm/boot/dts/dove-cubox.dts index bed5b62b73a3..7e3065abd751 100644 --- a/arch/arm/boot/dts/dove-cubox.dts +++ b/arch/arm/boot/dts/dove-cubox.dts | |||
@@ -26,6 +26,24 @@ | |||
26 | linux,default-trigger = "default-on"; | 26 | linux,default-trigger = "default-on"; |
27 | }; | 27 | }; |
28 | }; | 28 | }; |
29 | |||
30 | regulators { | ||
31 | compatible = "simple-bus"; | ||
32 | #address-cells = <1>; | ||
33 | #size-cells = <0>; | ||
34 | |||
35 | usb_power: regulator@1 { | ||
36 | compatible = "regulator-fixed"; | ||
37 | reg = <1>; | ||
38 | regulator-name = "USB Power"; | ||
39 | regulator-min-microvolt = <5000000>; | ||
40 | regulator-max-microvolt = <5000000>; | ||
41 | enable-active-high; | ||
42 | regulator-always-on; | ||
43 | regulator-boot-on; | ||
44 | gpio = <&gpio0 1 0>; | ||
45 | }; | ||
46 | }; | ||
29 | }; | 47 | }; |
30 | 48 | ||
31 | &uart0 { status = "okay"; }; | 49 | &uart0 { status = "okay"; }; |
@@ -50,9 +68,14 @@ | |||
50 | }; | 68 | }; |
51 | 69 | ||
52 | &pinctrl { | 70 | &pinctrl { |
53 | pinctrl-0 = <&pmx_gpio_12>; | 71 | pinctrl-0 = <&pmx_gpio_1 &pmx_gpio_12>; |
54 | pinctrl-names = "default"; | 72 | pinctrl-names = "default"; |
55 | 73 | ||
74 | pmx_gpio_1: pmx-gpio-1 { | ||
75 | marvell,pins = "mpp1"; | ||
76 | marvell,function = "gpio"; | ||
77 | }; | ||
78 | |||
56 | pmx_gpio_12: pmx-gpio-12 { | 79 | pmx_gpio_12: pmx-gpio-12 { |
57 | marvell,pins = "mpp12"; | 80 | marvell,pins = "mpp12"; |
58 | marvell,function = "gpio"; | 81 | marvell,function = "gpio"; |