diff options
| author | Jagan Teki <jagannadh.teki@gmail.com> | 2017-10-16 08:16:24 -0400 |
|---|---|---|
| committer | Heiko Stuebner <heiko@sntech.de> | 2017-10-17 15:16:08 -0400 |
| commit | ba736024a4dbcd3f86044311b9d2571a205e29ac (patch) | |
| tree | 3c6fddaebb2b11d45c27c0ad438ea97e43afeffc | |
| parent | c09cd2537097985e9030a25dfe52d98f2fb9a1ad (diff) | |
ARM: dts: rockchip: Add usb host for rk3288-vyasa
Add usb host support for rk3288-vyasa, board support hub power
through phy_pwr_en and usb2 host power through usb2_pwr_en and
naming conversion followed as per schematic.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
| -rw-r--r-- | arch/arm/boot/dts/rk3288-vyasa.dts | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rk3288-vyasa.dts b/arch/arm/boot/dts/rk3288-vyasa.dts index 3672a0dcb802..b93c9bb92896 100644 --- a/arch/arm/boot/dts/rk3288-vyasa.dts +++ b/arch/arm/boot/dts/rk3288-vyasa.dts | |||
| @@ -105,6 +105,30 @@ | |||
| 105 | vin-supply = <&dc12_vbat>; | 105 | vin-supply = <&dc12_vbat>; |
| 106 | }; | 106 | }; |
| 107 | 107 | ||
| 108 | vsus_5v: vsus-5v { | ||
| 109 | compatible = "regulator-fixed"; | ||
| 110 | regulator-name = "vsus_5v"; | ||
| 111 | regulator-min-microvolt = <5000000>; | ||
| 112 | regulator-max-microvolt = <5000000>; | ||
| 113 | regulator-always-on; | ||
| 114 | regulator-boot-on; | ||
| 115 | vin-supply = <&vcc_io>; | ||
| 116 | }; | ||
| 117 | |||
| 118 | vusb2_5v: vusb2-5v { | ||
| 119 | compatible = "regulator-fixed"; | ||
| 120 | regulator-name = "vusb2_5v"; | ||
| 121 | enable-active-high; | ||
| 122 | gpio = <&gpio8 RK_PB1 GPIO_ACTIVE_HIGH>; /* USB2_PWR_EN */ | ||
| 123 | pinctrl-names = "default"; | ||
| 124 | pinctrl-0 = <&usb2_pwr_en>; | ||
| 125 | regulator-min-microvolt = <5000000>; | ||
| 126 | regulator-max-microvolt = <5000000>; | ||
| 127 | regulator-always-on; | ||
| 128 | regulator-boot-on; | ||
| 129 | vin-supply = <&vsus_5v>; | ||
| 130 | }; | ||
| 131 | |||
| 108 | ext_gmac: external-gmac-clock { | 132 | ext_gmac: external-gmac-clock { |
| 109 | compatible = "fixed-clock"; | 133 | compatible = "fixed-clock"; |
| 110 | #clock-cells = <0>; | 134 | #clock-cells = <0>; |
| @@ -363,6 +387,20 @@ | |||
| 363 | status = "okay"; | 387 | status = "okay"; |
| 364 | }; | 388 | }; |
| 365 | 389 | ||
| 390 | &usbphy { | ||
| 391 | status = "okay"; | ||
| 392 | }; | ||
| 393 | |||
| 394 | &usb_host0_ehci { | ||
| 395 | status = "okay"; | ||
| 396 | }; | ||
| 397 | |||
| 398 | &usb_host1 { | ||
| 399 | pinctrl-names = "default"; | ||
| 400 | pinctrl-0 = <&phy_pwr_en>; | ||
| 401 | status = "okay"; | ||
| 402 | }; | ||
| 403 | |||
| 366 | &vopb { | 404 | &vopb { |
| 367 | status = "okay"; | 405 | status = "okay"; |
| 368 | }; | 406 | }; |
| @@ -407,4 +445,14 @@ | |||
| 407 | rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>; | 445 | rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>; |
| 408 | }; | 446 | }; |
| 409 | }; | 447 | }; |
| 448 | |||
| 449 | usb_host { | ||
| 450 | phy_pwr_en: phy-pwr-en { | ||
| 451 | rockchip,pins = <RK_GPIO2 RK_PB1 RK_FUNC_GPIO &pcfg_output_high>; | ||
| 452 | }; | ||
| 453 | |||
| 454 | usb2_pwr_en: usb2-pwr-en { | ||
| 455 | rockchip,pins = <8 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; | ||
| 456 | }; | ||
| 457 | }; | ||
| 410 | }; | 458 | }; |
