arm64: dts: rockchip: enable ehci/ohci and u2phy for rk3368-sheep
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3368-sheep.dts
index de9976e0df646f58231484a3672c0d7f73f02bd3..a71cb93097cd231d40133b9a6e559c88b23329a1 100644 (file)
                regulator-min-microvolt = <3800000>;
                regulator-max-microvolt = <3800000>;
        };
+
+       vcc_host: vcc-host {
+               compatible = "regulator-fixed";
+               enable-active-high;
+               gpio = <&gpio0 4 GPIO_ACTIVE_HIGH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&host_vbus_drv>;
+               regulator-name = "vcc_host";
+               regulator-always-on;
+       };
 };
 
 &emmc {
        status = "okay";
 };
 
+&u2phy {
+       status = "okay";
+
+       u2phy_host: host-port {
+               phy-supply = <&vcc_host>;
+               status = "okay";
+       };
+};
+
+&usb_host0_ehci {
+       status = "okay";
+};
+
+&usb_host0_ohci {
+       status = "okay";
+};
+
 &mailbox {
        status = "okay";
 };
                        rockchip,pins = <RK_GPIO0 1 RK_FUNC_GPIO &pcfg_pull_up>;
                };
        };
+
+       usb2 {
+               host_vbus_drv: host-vbus-drv {
+                       rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
 };