From: Frank Wang Date: Fri, 29 Apr 2016 03:37:01 +0000 (+0800) Subject: ARM64: dts: rockchip: rk3366: support for the usb2phy driver X-Git-Tag: firefly_0821_release~2600 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7c6d6766f73864f98a8811331d5ecb5da7487159;p=firefly-linux-kernel-4.4.55.git ARM64: dts: rockchip: rk3366: support for the usb2phy driver Change-Id: I0f4b09a41d249997f4c881238101a94a48fd737d Signed-off-by: Frank Wang --- diff --git a/arch/arm64/boot/dts/rockchip/rk3366-tb.dts b/arch/arm64/boot/dts/rockchip/rk3366-tb.dts index 15b9ded30d59..3544b15db73f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3366-tb.dts +++ b/arch/arm64/boot/dts/rockchip/rk3366-tb.dts @@ -807,15 +807,20 @@ status = "okay"; }; +&u2phy { + vbus_host-gpio = <&gpio0 16 GPIO_ACTIVE_HIGH>; +}; + &dwc_control_usb { - host_drv_gpio = <&gpio0 16 GPIO_ACTIVE_LOW>; /* GPIO_C0 = 16 */ otg_drv_gpio = <&gpio0 10 GPIO_ACTIVE_LOW>; /* GPIO_B2 = 10 */ rockchip,remote_wakeup; rockchip,usb_irq_wakeup; }; -&usb_host0_echi { +&usb_host0_ehci { + assigned-clocks = <&cru SCLK_USBPHY480M>; + assigned-clock-parents = <&u2phy>; status = "okay"; }; @@ -832,8 +837,6 @@ reset-names = "otg_ahb", "otg_phy", "otg_controller"; /* 0 - Normal, 1 - Force Host, 2 - Force Device */ rockchip,usb-mode = <0>; - assigned-clocks = <&cru SCLK_USBPHY480M>; - assigned-clock-parents = <&usbphy0>; status = "okay"; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3366.dtsi b/arch/arm64/boot/dts/rockchip/rk3366.dtsi index 8b54201b52a0..a14689d565bd 100644 --- a/arch/arm64/boot/dts/rockchip/rk3366.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3366.dtsi @@ -475,32 +475,13 @@ status = "disabled"; }; - usbphy: phy { - compatible = "rockchip,rk336x-usb-phy"; - rockchip,grf = <&grf>; - #address-cells = <1>; - #size-cells = <0>; - - usbphy0: usb-phy0 { - #phy-cells = <0>; - #clock-cells = <0>; - reg = <0x700>; - }; - - usbphy1: usb-phy1 { - #phy-cells = <0>; - #clock-cells = <0>; - reg = <0x728>; - }; - }; - - usb_host0_echi: usb@ff480000 { + usb_host0_ehci: usb@ff480000 { compatible = "generic-ehci"; reg = <0x0 0xff480000 0x0 0x20000>; interrupts = ; clocks = <&cru SCLK_OTG_PHY0>, <&cru HCLK_HOST>; clock-names = "sclk_otgphy0", "hclk_host0"; - phys = <&usbphy1>; + phys = <&u2phy_host>; phy-names = "usb"; status = "disabled"; }; @@ -774,8 +755,23 @@ }; grf: syscon@ff770000 { - compatible = "rockchip,rk3366-grf", "syscon"; + compatible = "rockchip,rk3366-grf", "syscon", "simple-mfd"; reg = <0x0 0xff770000 0x0 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + + u2phy: usb2-phy { + compatible = "rockchip,rk3366-usb2phy"; + #clock-cells = <0>; + clock-output-names = "sclk_otgphy0_480m"; + + u2phy_host: host-port { + #phy-cells = <0>; + interrupts = ; + interrupt-names = "linestate"; + status = "okay"; + }; + }; }; wdt: watchdog@ff800000 {