diff options
author | Stefan Agner <stefan@agner.ch> | 2014-11-16 13:00:28 -0500 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2014-11-23 02:08:15 -0500 |
commit | 505251e504e163f2e2f5c75e9b42cbcd62b792e7 (patch) | |
tree | 0caaa766c254143b885528bf3f8c6cf1bba2a294 | |
parent | 1b61feea3f65fd401a778d705c7223e9f7da529f (diff) |
ARM: dts: vf-colibri: add USB regulators
Add structure of USB supply logic. The USB hosts power enable
regulator is needed to control VBUS supply on the Colibri carrier
board.
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
-rw-r--r-- | arch/arm/boot/dts/vf-colibri-eval-v3.dtsi | 32 | ||||
-rw-r--r-- | arch/arm/boot/dts/vf-colibri.dtsi | 6 |
2 files changed, 38 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi b/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi index 20251a3ea813..56a452bc326c 100644 --- a/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi +++ b/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi | |||
@@ -11,6 +11,34 @@ | |||
11 | chosen { | 11 | chosen { |
12 | bootargs = "console=ttyLP0,115200"; | 12 | bootargs = "console=ttyLP0,115200"; |
13 | }; | 13 | }; |
14 | |||
15 | regulators { | ||
16 | compatible = "simple-bus"; | ||
17 | #address-cells = <1>; | ||
18 | #size-cells = <0>; | ||
19 | |||
20 | sys_5v0_reg: regulator@0 { | ||
21 | compatible = "regulator-fixed"; | ||
22 | reg = <0>; | ||
23 | regulator-name = "5v0"; | ||
24 | regulator-min-microvolt = <5000000>; | ||
25 | regulator-max-microvolt = <5000000>; | ||
26 | regulator-always-on; | ||
27 | }; | ||
28 | |||
29 | /* USBH_PEN */ | ||
30 | usbh_vbus_reg: regulator@1 { | ||
31 | compatible = "regulator-fixed"; | ||
32 | pinctrl-names = "default"; | ||
33 | pinctrl-0 = <&pinctrl_usbh1_reg>; | ||
34 | reg = <1>; | ||
35 | regulator-name = "usbh_vbus"; | ||
36 | regulator-min-microvolt = <5000000>; | ||
37 | regulator-max-microvolt = <5000000>; | ||
38 | gpio = <&gpio3 19 GPIO_ACTIVE_LOW>; | ||
39 | vin-supply = <&sys_5v0_reg>; | ||
40 | }; | ||
41 | }; | ||
14 | }; | 42 | }; |
15 | 43 | ||
16 | &bl { | 44 | &bl { |
@@ -62,3 +90,7 @@ | |||
62 | &uart2 { | 90 | &uart2 { |
63 | status = "okay"; | 91 | status = "okay"; |
64 | }; | 92 | }; |
93 | |||
94 | &usbh1 { | ||
95 | vbus-supply = <&usbh_vbus_reg>; | ||
96 | }; | ||
diff --git a/arch/arm/boot/dts/vf-colibri.dtsi b/arch/arm/boot/dts/vf-colibri.dtsi index 43e7539daf5c..82f5728be5c9 100644 --- a/arch/arm/boot/dts/vf-colibri.dtsi +++ b/arch/arm/boot/dts/vf-colibri.dtsi | |||
@@ -176,5 +176,11 @@ | |||
176 | VF610_PAD_PTD3__UART2_CTS 0x21a1 | 176 | VF610_PAD_PTD3__UART2_CTS 0x21a1 |
177 | >; | 177 | >; |
178 | }; | 178 | }; |
179 | |||
180 | pinctrl_usbh1_reg: gpio_usb_vbus { | ||
181 | fsl,pins = < | ||
182 | VF610_PAD_PTD4__GPIO_83 0x22ed | ||
183 | >; | ||
184 | }; | ||
179 | }; | 185 | }; |
180 | }; | 186 | }; |