diff options
author | William Wu <william.wu@rock-chips.com> | 2018-02-24 16:55:51 +0800 |
---|---|---|
committer | Tao Huang <huangtao@rock-chips.com> | 2018-02-26 17:20:05 +0800 |
commit | 2ba3b09d6bd73241f305688424d92382e1c48fcd (patch) | |
tree | f0ca23edb23b9fe1e05b432d86c7014f44e56af0 /arch/arm64/boot/dts/rockchip/rk3328-evb.dts | |
parent | 26c539146ceea6a42b7b33b798289d25f4fbfc9b (diff) |
ARM64: dts: rockchip: use regulator for usb vbus on rk3328 boards
This patch uses otg-vbus and host-vbus fixed-regulators instead
of GPIO pins for usb2 and usb3 vbus power on rk3328-evb boards.
Change-Id: I82433752724be236a821c8629e882d930687d0f7
Signed-off-by: William Wu <william.wu@rock-chips.com>
Diffstat (limited to 'arch/arm64/boot/dts/rockchip/rk3328-evb.dts')
-rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3328-evb.dts b/arch/arm64/boot/dts/rockchip/rk3328-evb.dts index 7d4d65e62cac..0b6f58a60a51 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-evb.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-evb.dts @@ -127,6 +127,28 @@ #sound-dai-cells = <0>; }; + vcc_host_vbus: host-vbus-regulator { + compatible = "regulator-fixed"; + gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&host_vbus_drv>; + regulator-name = "vcc_host_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + }; + + vcc_otg_vbus: otg-vbus-regulator { + compatible = "regulator-fixed"; + gpio = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&otg_vbus_drv>; + regulator-name = "vcc_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + }; + vcc_phy: vcc-phy-regulator { compatible = "regulator-fixed"; regulator-name = "vcc_phy"; @@ -401,6 +423,18 @@ <1 18 RK_FUNC_GPIO &pcfg_pull_none>; }; }; + + usb { + host_vbus_drv: host-vbus-drv { + rockchip,pins = + <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + otg_vbus_drv: otg-vbus-drv { + rockchip,pins = + <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; }; &pwm3 { @@ -544,7 +578,6 @@ }; &u2phy { - otg-vbus-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>; status = "okay"; u2phy_host: host-port { @@ -552,12 +585,13 @@ }; u2phy_otg: otg-port { + vbus-supply = <&vcc_otg_vbus>; status = "okay"; }; }; &u3phy { - vbus-drv-gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>; + vbus-supply = <&vcc_host_vbus>; status = "okay"; }; |