1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 # Copyright 2019 BayLibre, SAS
5 $id: "http://devicetree.org/schemas/usb/amlogic,meson-g12a-usb-ctrl.yaml#"
6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
8 title: Amlogic Meson G12A DWC3 USB SoC Controller Glue
11 - Neil Armstrong <narmstrong@baylibre.com>
14 The Amlogic G12A embeds a DWC3 USB IP Core configured for USB2 and USB3
15 in host-only mode, and a DWC2 IP Core configured for USB2 peripheral mode
18 A glue connects the DWC3 core to USB2 PHYs and optionally to an USB3 PHY.
20 One of the USB2 PHYs can be re-routed in peripheral mode to a DWC2 USB IP.
22 The DWC3 Glue controls the PHY routing and power, an interrupt line is
23 connected to the Glue to serve as OTG ID change detection.
25 The Amlogic A1 embeds a DWC3 USB IP Core configured for USB2 in
28 The Amlogic GXL, GXM & AXG SoCs doesn't embed an USB3 PHY.
33 - amlogic,meson-gxl-usb-ctrl
34 - amlogic,meson-gxm-usb-ctrl
35 - amlogic,meson-axg-usb-ctrl
36 - amlogic,meson-g12a-usb-ctrl
37 - amlogic,meson-a1-usb-ctrl
78 description: VBUS power supply when used in OTG switchable mode
84 - $ref: snps,dwc3.yaml#
86 additionalProperties: false
106 - amlogic,meson-g12a-usb-ctrl
112 - const: usb2-phy0 # USB2 PHY0 if USBHOST_A port is used
113 - const: usb2-phy1 # USB2 PHY1 if USBOTG_B port is used
114 - const: usb3-phy0 # USB3 PHY if USB3_0 is used
119 - amlogic,meson-gxl-usb-ctrl
131 - const: usb2-phy0 # USB2 PHY0 if USBHOST_A port is used
132 - const: usb2-phy1 # USB2 PHY1 if USBOTG_B port is used
139 - amlogic,meson-gxm-usb-ctrl
151 - const: usb2-phy0 # USB2 PHY0 if USBHOST_A port is used
152 - const: usb2-phy1 # USB2 PHY1 if USBOTG_B port is used
153 - const: usb2-phy2 # USB2 PHY2 if USBOTG_C port is used
161 - amlogic,meson-axg-usb-ctrl
167 - const: usb2-phy1 # USB2 PHY1 if USBOTG_B port is used
180 - amlogic,meson-a1-usb-ctrl
186 - const: usb2-phy1 # USB2 PHY1 if USBOTG_B port is used
193 - const: xtal_usb_ctrl
200 compatible = "amlogic,meson-g12a-usb-ctrl";
201 reg = <0xffe09000 0xa0>;
203 #address-cells = <1>;
207 clocks = <&clkc_usb>;
208 resets = <&reset_usb>;
212 phys = <&usb2_phy0>, <&usb2_phy1>, <&usb3_phy0>;
213 phy-names = "usb2-phy0", "usb2-phy1", "usb3-phy0";
216 compatible = "amlogic,meson-g12a-usb", "snps,dwc2";
217 reg = <0xff400000 0x40000>;
219 clocks = <&clkc_usb1>;
222 dr_mode = "peripheral";
223 g-rx-fifo-size = <192>;
224 g-np-tx-fifo-size = <128>;
225 g-tx-fifo-size = <128 128 16 16 16>;
229 compatible = "snps,dwc3";
230 reg = <0xff500000 0x100000>;
233 snps,dis_u2_susphy_quirk;
234 snps,quirk-frame-length-adjustment = <0x20>;