arm: dts: rockchip: add u2phy otg-port and dwc2 ctrl nodes for rk322x SoC
authorWilliam Wu <william.wu@rock-chips.com>
Fri, 5 May 2017 09:29:56 +0000 (17:29 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 8 May 2017 02:11:37 +0000 (10:11 +0800)
This patch adds dwc2 controller and its phy nodes for rk322x SoC.

Change-Id: I29779baf92c28154ad342e234e8a5582984b8a12
Signed-off-by: William Wu <william.wu@rock-chips.com>
arch/arm/boot/dts/rk322x.dtsi

index 720bfe0b66c8f5c337f103d22a8f3e1612a85957..4da3d8b2600e62d9f14c86fb1ae644b462d1db86 100644 (file)
                        clock-output-names = "usb480m_phy0";
                        status = "disabled";
 
+                       u2phy0_otg: otg-port {
+                               #phy-cells = <0>;
+                               interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
+                                            <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
+                               interrupt-names = "otg-bvalid", "otg-id",
+                                                 "linestate";
+                               status = "disabled";
+                       };
+
                        u2phy0_host: host-port {
                                #phy-cells = <0>;
                                interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
                status = "disabled";
        };
 
+       usb_otg: usb@30040000 {
+               compatible = "rockchip,rk322x-usb", "rockchip,rk3066-usb",
+                            "snps,dwc2";
+               reg = <0x30040000 0x40000>;
+               interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
+               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>;