arm64: dts: rk3368-p9: add usb host
authorZorro Liu <lyx@rock-chips.com>
Fri, 17 Mar 2017 09:29:56 +0000 (17:29 +0800)
committerJianqun Xu <jay.xu@rock-chips.com>
Mon, 20 Mar 2017 08:29:01 +0000 (16:29 +0800)
Change-Id: Ief0045ac99d3af4db22042d468b67609d6fddf2f
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3368-p9.dts

index 3cbc43599e4d1af3b553e4297e1d106648384a99..d7ee5dd6f217689930444a24ac45fed78aa96569 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;
+       };
 };
 
 &hdmi {
        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";
+};
+
 &mipi_dsi_host {
        status = "okay";
 
                };
        };
 
+       usb2 {
+               host_vbus_drv: host-vbus-drv {
+                       rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
+
        wireless-bluetooth {
                uart0_rts_gpio: uart0-rts-gpio {
                        rockchip,pins = <2 27 RK_FUNC_GPIO &pcfg_pull_none>;