ARM: dts: rockchip: Add usb otg for rk3288-vyasa
authorJagan Teki <jagannadh.teki@gmail.com>
Mon, 16 Oct 2017 12:16:25 +0000 (17:46 +0530)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 17 Oct 2017 19:16:39 +0000 (21:16 +0200)
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>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/boot/dts/rk3288-vyasa.dts

index b93c9bb92896de5f1189c622a9f7180604ddad62..d95eb522d3d58ad494f6f828bfceeab3f543a7bc 100644 (file)
                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";
        status = "okay";
 };
 
+&usb_otg {
+       status = "okay";
+};
+
 &vopb {
        status = "okay";
 };
                        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>;
+
+               };
+       };
 };