1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/usb/fsl,imx8mq-dwc3.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NXP iMX8MQ Soc USB Controller
8
9maintainers:
10  - Li Jun <jun.li@nxp.com>
11  - Peng Fan <peng.fan@nxp.com>
12
13select:
14  properties:
15    compatible:
16      contains:
17        enum:
18          - fsl,imx8mq-dwc3
19  required:
20    - compatible
21
22properties:
23  compatible:
24    items:
25      - const: fsl,imx8mq-dwc3
26      - const: snps,dwc3
27
28allOf:
29  - $ref: snps,dwc3.yaml#
30
31unevaluatedProperties: false
32
33examples:
34  - |
35    #include <dt-bindings/clock/imx8mq-clock.h>
36    #include <dt-bindings/interrupt-controller/arm-gic.h>
37
38    usb_dwc3_1: usb@38200000 {
39        compatible = "fsl,imx8mq-dwc3", "snps,dwc3";
40        reg = <0x38200000 0x10000>;
41        clocks = <&clk IMX8MQ_CLK_USB2_CTRL_ROOT>,
42                 <&clk IMX8MQ_CLK_USB_CORE_REF>,
43                 <&clk IMX8MQ_CLK_32K>;
44        clock-names = "bus_early", "ref", "suspend";
45        interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
46        phys = <&usb3_phy1>, <&usb3_phy1>;
47        phy-names = "usb2-phy", "usb3-phy";
48    };
49