diff mbox series

[U-Boot,v2,8/9] ARM: dts: rockchip: Add usb otg for rk3288-vyasa

Message ID 1518623782-24311-9-git-send-email-jagan@amarulasolutions.com
State Accepted
Commit 159916f4e880c1a738a595686c36791a605e5657
Delegated to: Philipp Tomsich
Headers show
Series rockchip: rk3288-vyasa: dts fixes/additions | expand

Commit Message

Jagan Teki Feb. 14, 2018, 3:56 p.m. UTC
Add usb otg support for rk3288-vyasa, board support usb1 otg
power through otg_vbus_drv and naming conversion followed
as per schematic.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
---
 arch/arm/dts/rk3288-vyasa.dts | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

Comments

Philipp Tomsich Feb. 25, 2018, 8:16 p.m. UTC | #1
> Add usb otg support for rk3288-vyasa, board support usb1 otg
> power through otg_vbus_drv and naming conversion followed
> as per schematic.
> 
> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>  arch/arm/dts/rk3288-vyasa.dts | 25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
> 

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

Patch

diff --git a/arch/arm/dts/rk3288-vyasa.dts b/arch/arm/dts/rk3288-vyasa.dts
index fe680e2..70c433f 100644
--- a/arch/arm/dts/rk3288-vyasa.dts
+++ b/arch/arm/dts/rk3288-vyasa.dts
@@ -115,6 +115,20 @@ 
 		vin-supply = <&vcc_io>;
 	};
 
+	vusb1_5v: vusb1-5v {
+		compatible = "regulator-fixed";
+		regulator-name = "vusb1_5v";
+		enable-active-high;
+		gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>; /* OTG_VBUS_DRV */
+		pinctrl-names = "default";
+		pinctrl-0 = <&otg_vbus_drv>;
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		regulator-always-on;
+		regulator-boot-on;
+		vin-supply = <&vsus_5v>;
+	};
+
 	vusb2_5v: vusb2-5v {
 		compatible = "regulator-fixed";
 		regulator-name = "vusb2_5v";
@@ -395,6 +409,10 @@ 
 	status = "okay";
 };
 
+&usb_otg {
+	status = "okay";
+};
+
 &vopb {
 	status = "okay";
 };
@@ -449,4 +467,11 @@ 
 			rockchip,pins = <8 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
 		};
 	};
+
+	usb_otg {
+		otg_vbus_drv: otg-vbus-drv {
+			rockchip,pins = <RK_GPIO0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
+
+		};
+	};
 };