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