From e183dc8bfd3a03070c8f9deca8e51c1c83915cde Mon Sep 17 00:00:00 2001 From: William Wu Date: Fri, 5 May 2017 17:29:56 +0800 Subject: [PATCH] arm: dts: rockchip: add u2phy otg-port and dwc2 ctrl nodes for rk322x SoC This patch adds dwc2 controller and its phy nodes for rk322x SoC. Change-Id: I29779baf92c28154ad342e234e8a5582984b8a12 Signed-off-by: William Wu --- arch/arm/boot/dts/rk322x.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi index 720bfe0b66c8..4da3d8b2600e 100644 --- a/arch/arm/boot/dts/rk322x.dtsi +++ b/arch/arm/boot/dts/rk322x.dtsi @@ -194,6 +194,16 @@ clock-output-names = "usb480m_phy0"; status = "disabled"; + u2phy0_otg: otg-port { + #phy-cells = <0>; + interrupts = , + , + ; + interrupt-names = "otg-bvalid", "otg-id", + "linestate"; + status = "disabled"; + }; + u2phy0_host: host-port { #phy-cells = <0>; interrupts = ; @@ -494,6 +504,23 @@ status = "disabled"; }; + usb_otg: usb@30040000 { + compatible = "rockchip,rk322x-usb", "rockchip,rk3066-usb", + "snps,dwc2"; + reg = <0x30040000 0x40000>; + interrupts = ; + clocks = <&cru HCLK_OTG>; + clock-names = "otg"; + dr_mode = "otg"; + g-np-tx-fifo-size = <16>; + g-rx-fifo-size = <275>; + g-tx-fifo-size = <256 128 128 64 64 32>; + g-use-dma; + phys = <&u2phy0_otg>; + phy-names = "usb2-phy"; + status = "disabled"; + }; + usb_host0_ehci: usb@30080000 { compatible = "generic-ehci"; reg = <0x30080000 0x20000>; -- 2.34.1