diff options
author | Ashutosh singh <ashutosh.s@phytec.in> | 2014-02-20 00:50:15 -0500 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2014-02-20 21:13:47 -0500 |
commit | 3b4053b802e5845654673cf8330180eaab107121 (patch) | |
tree | c682dec01553fee47e36522c420c41ebca3a1cce | |
parent | d2c3936ebe88ce3cc188d01be0c684884e396293 (diff) |
ARM: dts: imx6q-phytec: Added USB_OTG Support
This patch adds support for USB_OTG on Phytec phyFLEX-i.MX6 Quad module.
Signed-off-by: Ashutosh singh <ashutosh.s@phytec.in>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
-rw-r--r-- | arch/arm/boot/dts/imx6q-phytec-pbab01.dts | 4 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi | 31 |
2 files changed, 35 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx6q-phytec-pbab01.dts b/arch/arm/boot/dts/imx6q-phytec-pbab01.dts index 7d37ec60d58d..87c370268c67 100644 --- a/arch/arm/boot/dts/imx6q-phytec-pbab01.dts +++ b/arch/arm/boot/dts/imx6q-phytec-pbab01.dts | |||
@@ -25,6 +25,10 @@ | |||
25 | status = "okay"; | 25 | status = "okay"; |
26 | }; | 26 | }; |
27 | 27 | ||
28 | &usbotg { | ||
29 | status = "okay"; | ||
30 | }; | ||
31 | |||
28 | &usdhc2 { | 32 | &usdhc2 { |
29 | status = "okay"; | 33 | status = "okay"; |
30 | }; | 34 | }; |
diff --git a/arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi b/arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi index 0dd5d3bee01b..ee07896b30d3 100644 --- a/arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi +++ b/arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi | |||
@@ -18,6 +18,21 @@ | |||
18 | memory { | 18 | memory { |
19 | reg = <0x10000000 0x80000000>; | 19 | reg = <0x10000000 0x80000000>; |
20 | }; | 20 | }; |
21 | |||
22 | regulators { | ||
23 | compatible = "simple-bus"; | ||
24 | #address-cells = <1>; | ||
25 | #size-cells = <0>; | ||
26 | |||
27 | reg_usb_otg_vbus: regulator@0 { | ||
28 | compatible = "regulator-fixed"; | ||
29 | reg = <0>; | ||
30 | regulator-name = "usb_otg_vbus"; | ||
31 | regulator-min-microvolt = <5000000>; | ||
32 | regulator-max-microvolt = <5000000>; | ||
33 | gpio = <&gpio4 15 0>; | ||
34 | }; | ||
35 | }; | ||
21 | }; | 36 | }; |
22 | 37 | ||
23 | &ecspi3 { | 38 | &ecspi3 { |
@@ -180,6 +195,14 @@ | |||
180 | >; | 195 | >; |
181 | }; | 196 | }; |
182 | 197 | ||
198 | pinctrl_usbotg: usbotggrp { | ||
199 | fsl,pins = < | ||
200 | MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059 | ||
201 | MX6QDL_PAD_KEY_COL4__USB_OTG_OC 0x1b0b0 | ||
202 | MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x80000000 | ||
203 | >; | ||
204 | }; | ||
205 | |||
183 | pinctrl_usdhc2: usdhc2grp { | 206 | pinctrl_usdhc2: usdhc2grp { |
184 | fsl,pins = < | 207 | fsl,pins = < |
185 | MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059 | 208 | MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059 |
@@ -225,6 +248,14 @@ | |||
225 | status = "disabled"; | 248 | status = "disabled"; |
226 | }; | 249 | }; |
227 | 250 | ||
251 | &usbotg { | ||
252 | vbus-supply = <®_usb_otg_vbus>; | ||
253 | pinctrl-names = "default"; | ||
254 | pinctrl-0 = <&pinctrl_usbotg>; | ||
255 | disable-over-current; | ||
256 | status = "disabled"; | ||
257 | }; | ||
258 | |||
228 | &usdhc2 { | 259 | &usdhc2 { |
229 | pinctrl-names = "default"; | 260 | pinctrl-names = "default"; |
230 | pinctrl-0 = <&pinctrl_usdhc2>; | 261 | pinctrl-0 = <&pinctrl_usdhc2>; |