[PATCH v2 1/4] arm64: dts: renesas: r9a08g046: Add USB2.0 host/phy device nodes
Tommaso Merciai <[email protected]>
| Newsgroups | org.kernel.vger.linux-renesas-soc,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <d1f700679bd5c7703564f662550d4dad22355088.1787663426.git.tommaso.merciai.xr@bp.renesas.com> |
From: Biju Das <[email protected]> Add USB2.0 device nodes to the RZ/G3L (r9a08g046) SoC DTSI, covering the USB PHY controller, OHCI/EHCI host controllers, and USB2 PHYs for both ports. Signed-off-by: Biju Das <[email protected]> Signed-off-by: Tommaso Merciai <[email protected]> --- v1->v2: - Cherry picked from "Add RZ/G3L USB2.0 host support" v7. v7: https://lore.kernel.org/all/[email protected]/ arch/arm64/boot/dts/renesas/r9a08g046.dtsi | 104 +++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a08g046.dtsi b/arch/arm64/boot/dts/renesas/r9a08g046.dtsi index c63a857f0e5b..2d8c8fd8a01c 100644 --- a/arch/arm64/boot/dts/renesas/r9a08g046.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a08g046.dtsi @@ -1001,6 +1001,110 @@ queue3 { }; }; + phyrst: usbphy-ctrl@11e00000 { + compatible = "renesas,r9a08g046-usbphy-ctrl"; + reg = <0 0x11e00000 0 0x10000>; + clocks = <&cpg CPG_MOD R9A08G046_USB_PCLK>; + resets = <&cpg R9A08G046_USB_PRESETN>; + power-domains = <&cpg>; + #reset-cells = <1>; + status = "disabled"; + + regulators { + usb0_vbus_otg: vbus0 { + regulator-name = "usb0_vbus"; + }; + + usb1_vbus_otg: vbus1 { + regulator-name = "usb1_vbus"; + }; + }; + }; + + ohci0: usb@11e10000 { + compatible = "generic-ohci"; + reg = <0 0x11e10000 0 0x100>; + interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD R9A08G046_USB_PCLK>, + <&cpg CPG_MOD R9A08G046_USB_U2H0_HCLK>; + resets = <&phyrst 0>, + <&cpg R9A08G046_USB_U2H0_HRESETN>; + phys = <&usb2_phy0 1>; + phy-names = "usb"; + power-domains = <&cpg>; + status = "disabled"; + }; + + ohci1: usb@11e90000 { + compatible = "generic-ohci"; + reg = <0 0x11e90000 0 0x100>; + interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD R9A08G046_USB_PCLK>, + <&cpg CPG_MOD R9A08G046_USB_U2H1_HCLK>; + resets = <&phyrst 1>, + <&cpg R9A08G046_USB_U2H1_HRESETN>; + phys = <&usb2_phy1 1>; + phy-names = "usb"; + power-domains = <&cpg>; + status = "disabled"; + }; + + ehci0: usb@11e10100 { + compatible = "generic-ehci"; + reg = <0 0x11e10100 0 0x100>; + interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD R9A08G046_USB_PCLK>, + <&cpg CPG_MOD R9A08G046_USB_U2H0_HCLK>; + resets = <&phyrst 0>, + <&cpg R9A08G046_USB_U2H0_HRESETN>; + phys = <&usb2_phy0 2>; + phy-names = "usb"; + companion = <&ohci0>; + power-domains = <&cpg>; + status = "disabled"; + }; + + ehci1: usb@11e90100 { + compatible = "generic-ehci"; + reg = <0 0x11e90100 0 0x100>; + interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD R9A08G046_USB_PCLK>, + <&cpg CPG_MOD R9A08G046_USB_U2H1_HCLK>; + resets = <&phyrst 1>, + <&cpg R9A08G046_USB_U2H1_HRESETN>; + phys = <&usb2_phy1 2>; + phy-names = "usb"; + companion = <&ohci1>; + power-domains = <&cpg>; + status = "disabled"; + }; + + usb2_phy0: usb-phy@11e10200 { + compatible = "renesas,usb2-phy-r9a08g046"; + reg = <0 0x11e10200 0 0x700>; + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD R9A08G046_USB_PCLK>, + <&cpg CPG_MOD R9A08G046_USB_U2H0_HCLK>; + resets = <&phyrst 0>, + <&cpg R9A08G046_USB_U2H0_HRESETN>; + #phy-cells = <1>; + power-domains = <&cpg>; + status = "disabled"; + }; + + usb2_phy1: usb-phy@11e90200 { + compatible = "renesas,usb2-phy-r9a08g046"; + reg = <0 0x11e90200 0 0x700>; + interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD R9A08G046_USB_PCLK>, + <&cpg CPG_MOD R9A08G046_USB_U2H1_HCLK>; + resets = <&phyrst 1>, + <&cpg R9A08G046_USB_U2H1_HRESETN>; + #phy-cells = <1>; + power-domains = <&cpg>; + status = "disabled"; + }; + pcie: pcie@11e40000 { reg = <0 0x11e40000 0 0x10000>; ranges = <0x02000000 0 0x30000000 0 0x30000000 0 0x08000000>; -- 2.54.0