summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/dove-cubox.dts
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2012-12-28 02:21:59 +0400
committerArnd Bergmann <arnd@arndb.de>2013-02-28 21:57:12 +0400
commit41e364bb2494afe21803aff43bd8cb89ce6fc097 (patch)
treee6829e028ca1fb0145a40cf92f661f12ec712d1a /arch/arm/boot/dts/dove-cubox.dts
parente35e40cd553f7950c0bcb60f1d8f9672bd69d6a2 (diff)
downloadlinux-41e364bb2494afe21803aff43bd8cb89ce6fc097.tar.xz
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/dove-cubox.dts')
-rw-r--r--arch/arm/boot/dts/dove-cubox.dts25
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 @@
linux,default-trigger = "default-on";
};
};
+
+ regulators {
+ compatible = "simple-bus";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ usb_power: regulator@1 {
+ compatible = "regulator-fixed";
+ reg = <1>;
+ regulator-name = "USB Power";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ enable-active-high;
+ regulator-always-on;
+ regulator-boot-on;
+ gpio = <&gpio0 1 0>;
+ };
+ };
};
&uart0 { status = "okay"; };
@@ -50,9 +68,14 @@
};
&pinctrl {
- pinctrl-0 = <&pmx_gpio_12>;
+ pinctrl-0 = <&pmx_gpio_1 &pmx_gpio_12>;
pinctrl-names = "default";
+ pmx_gpio_1: pmx-gpio-1 {
+ marvell,pins = "mpp1";
+ marvell,function = "gpio";
+ };
+
pmx_gpio_12: pmx-gpio-12 {
marvell,pins = "mpp12";
marvell,function = "gpio";