]> git.sur5r.net Git - u-boot/commitdiff
rockchip: dts: rk3328: support and enable dwc2
authorMeng Dongyang <daniel.meng@rock-chips.com>
Wed, 28 Jun 2017 11:22:45 +0000 (19:22 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 11 Jul 2017 10:13:49 +0000 (12:13 +0200)
Enable dwc2 controller and add fixed regulator for dwc2 controller to
control vbus.

Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
arch/arm/dts/rk3328-evb.dts
arch/arm/dts/rk3328.dtsi

index 4cf6d2e1e9a22879fd800a78b2d8de45e446d6ef..220d0ab35031f659f61503ee7172f0f1b6ee3f7b 100644 (file)
                stdout-path = &uart2;
        };
 
+       vcc5v0_otg: vcc5v0-otg-drv {
+               compatible = "regulator-fixed";
+               enable-active-high;
+               regulator-name = "vcc5v0_otg";
+               gpio = <&gpio0 27 GPIO_ACTIVE_HIGH>;
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+       };
+
        vcc5v0_host_xhci: vcc5v0-host-xhci-drv {
                compatible = "regulator-fixed";
                enable-active-high;
        status = "okay";
 };
 
+&usb20_otg {
+       vbus-supply = <&vcc5v0_otg>;
+       status = "okay";
+};
+
 &usb_host0_xhci {
        vbus-supply = <&vcc5v0_host_xhci>;
        status = "okay";
index a57176d808e75b2c9f4f913d0c73de46c8cb6b4a..35e02f554f14b15f15681dc22fc57973cf865a25 100644 (file)
                status = "disabled";
        };
 
+       usb20_otg: usb@ff580000 {
+               compatible = "rockchip,rk3328-usb", "rockchip,rk3066-usb",
+                            "snps,dwc2";
+               reg = <0x0 0xff580000 0x0 0x40000>;
+               interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
+               hnp-srp-disable;
+               dr_mode = "otg";
+               status = "disabled";
+       };
+
        sdmmc_ext: rksdmmc@ff5f0000 {
                compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
                reg = <0x0 0xff5f0000 0x0 0x4000>;