diff mbox

[U-Boot,v8,3/8] rockchip: dts: rk3328: add fixed regulator node for xhci

Message ID 1498648966-19612-4-git-send-email-daniel.meng@rock-chips.com
State Accepted
Delegated to: Philipp Tomsich
Headers show

Commit Message

Meng Dongyang June 28, 2017, 11:22 a.m. UTC
The driver changes gpio to fixed regulator to control vbus, so add
fixed regulator node in DTS for xhci driver.

Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
---

Changes in v8: None
Changes in v7: None
Changes in v6:
- New patch, splited from [PATCH,v5,06/11]

 arch/arm/dts/rk3328-evb.dts | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

Comments

Philipp Tomsich July 3, 2017, 4:35 p.m. UTC | #1
> The driver changes gpio to fixed regulator to control vbus, so add
> fixed regulator node in DTS for xhci driver.
> 
> Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
> 
> Changes in v8: None
> Changes in v7: None
> Changes in v6:
> - New patch, splited from [PATCH,v5,06/11]
> 
>  arch/arm/dts/rk3328-evb.dts | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
> 

Applied to u-boot-rockchip/next, thanks!
diff mbox

Patch

diff --git a/arch/arm/dts/rk3328-evb.dts b/arch/arm/dts/rk3328-evb.dts
index b807bc5..4cf6d2e 100644
--- a/arch/arm/dts/rk3328-evb.dts
+++ b/arch/arm/dts/rk3328-evb.dts
@@ -14,6 +14,15 @@ 
 	chosen {
 		stdout-path = &uart2;
 	};
+
+	vcc5v0_host_xhci: vcc5v0-host-xhci-drv {
+		compatible = "regulator-fixed";
+		enable-active-high;
+		regulator-name = "vcc5v0_host_xhci";
+		gpio = <&gpio0 0 GPIO_ACTIVE_HIGH>;
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+	};
 };
 
 &uart2 {
@@ -53,6 +62,6 @@ 
 };
 
 &usb_host0_xhci {
-	rockchip,vbus-gpio = <&gpio0 0 GPIO_ACTIVE_HIGH>;
+	vbus-supply = <&vcc5v0_host_xhci>;
 	status = "okay";
 };