ARM: dts: rockchip: enable usb_host and usb_otg for rk3288 Fennec
authorNickey Yang <nickey.yang@rock-chips.com>
Wed, 20 Jul 2016 08:36:45 +0000 (16:36 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Thu, 21 Jul 2016 08:08:53 +0000 (16:08 +0800)
This makes both the usb_otg and usb_host port work well on the RK3288-Fennec board.

Change-Id: I08d2f8916ee1efafdab519513df7cc8e587be2f2
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
arch/arm/boot/dts/rk3288-fennec.dts

index d01dc9f01b478f0ba2a8330d96956faf77161761..195180664b4f7ad2307506ff5c9ee1e8e4db4b32 100644 (file)
                regulator-always-on;
                regulator-boot-on;
        };
+
+       vcc_host: usb-host-regulator {
+               compatible = "regulator-fixed";
+               enable-active-high;
+               gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&host_drv>;
+               regulator-name = "vcc_host_5v";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               regulator-always-on;
+       };
+
+       vcc_otg: usb-otg-regulator {
+               compatible = "regulator-fixed";
+               enable-active-high;
+               gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&otg_drv>;
+               regulator-name = "vcc_otg_5v";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               regulator-always-on;
+       };
 };
 
 &cpu0 {
                };
        };
 
-       usbphy {
+       usb_host {
                host_drv: host-drv {
                        rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
                };
        };
+
+       usb_otg {
+               otg_drv: otg-drv {
+                       rockchip,pins = <0 12 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
 };
 
 &uart2 {
 };
 
 &usbphy {
-       pinctrl-names = "default";
-       pinctrl-0 = <&host_drv>;
-       vbus_drv-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
        status = "okay";
 };