|
| 1 | +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | +# Copyright (c) 2020 NXP |
| 3 | +%YAML 1.2 |
| 4 | +--- |
| 5 | +$id: http://devicetree.org/schemas/usb/fsl,imx8mp-dwc3.yaml# |
| 6 | +$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 7 | + |
| 8 | +title: NXP iMX8MP Soc USB Controller |
| 9 | + |
| 10 | +maintainers: |
| 11 | + |
| 12 | + |
| 13 | +properties: |
| 14 | + compatible: |
| 15 | + const: fsl,imx8mp-dwc3 |
| 16 | + |
| 17 | + reg: |
| 18 | + maxItems: 1 |
| 19 | + description: Address and length of the register set for the wrapper of |
| 20 | + dwc3 core on the SOC. |
| 21 | + |
| 22 | + "#address-cells": |
| 23 | + enum: [ 1, 2 ] |
| 24 | + |
| 25 | + "#size-cells": |
| 26 | + enum: [ 1, 2 ] |
| 27 | + |
| 28 | + dma-ranges: |
| 29 | + description: |
| 30 | + See section 2.3.9 of the DeviceTree Specification. |
| 31 | + |
| 32 | + ranges: true |
| 33 | + |
| 34 | + interrupts: |
| 35 | + maxItems: 1 |
| 36 | + description: The interrupt that is asserted when a wakeup event is |
| 37 | + received. |
| 38 | + |
| 39 | + clocks: |
| 40 | + description: |
| 41 | + A list of phandle and clock-specifier pairs for the clocks |
| 42 | + listed in clock-names. |
| 43 | + items: |
| 44 | + - description: system hsio root clock. |
| 45 | + - description: suspend clock, used for usb wakeup logic. |
| 46 | + |
| 47 | + clock-names: |
| 48 | + items: |
| 49 | + - const: hsio |
| 50 | + - const: suspend |
| 51 | + |
| 52 | +# Required child node: |
| 53 | + |
| 54 | +patternProperties: |
| 55 | + "^dwc3@[0-9a-f]+$": |
| 56 | + type: object |
| 57 | + description: |
| 58 | + A child node must exist to represent the core DWC3 IP block |
| 59 | + The content of the node is defined in dwc3.txt. |
| 60 | + |
| 61 | +required: |
| 62 | + - compatible |
| 63 | + - reg |
| 64 | + - "#address-cells" |
| 65 | + - "#size-cells" |
| 66 | + - dma-ranges |
| 67 | + - ranges |
| 68 | + - clocks |
| 69 | + - clock-names |
| 70 | + - interrupts |
| 71 | + |
| 72 | +additionalProperties: false |
| 73 | + |
| 74 | +examples: |
| 75 | + - | |
| 76 | + #include <dt-bindings/clock/imx8mp-clock.h> |
| 77 | + #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 78 | + usb3_0: usb@32f10100 { |
| 79 | + compatible = "fsl,imx8mp-dwc3"; |
| 80 | + reg = <0x32f10100 0x8>; |
| 81 | + clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, |
| 82 | + <&clk IMX8MP_CLK_USB_ROOT>; |
| 83 | + clock-names = "hsio", "suspend"; |
| 84 | + interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>; |
| 85 | + #address-cells = <1>; |
| 86 | + #size-cells = <1>; |
| 87 | + dma-ranges = <0x40000000 0x40000000 0xc0000000>; |
| 88 | + ranges; |
| 89 | +
|
| 90 | + dwc3@38100000 { |
| 91 | + compatible = "snps,dwc3"; |
| 92 | + reg = <0x38100000 0x10000>; |
| 93 | + clocks = <&clk IMX8MP_CLK_HSIO_AXI>, |
| 94 | + <&clk IMX8MP_CLK_USB_CORE_REF>, |
| 95 | + <&clk IMX8MP_CLK_USB_ROOT>; |
| 96 | + clock-names = "bus_early", "ref", "suspend"; |
| 97 | + assigned-clocks = <&clk IMX8MP_CLK_HSIO_AXI>; |
| 98 | + assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_500M>; |
| 99 | + assigned-clock-rates = <500000000>; |
| 100 | + interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; |
| 101 | + phys = <&usb3_phy0>, <&usb3_phy0>; |
| 102 | + phy-names = "usb2-phy", "usb3-phy"; |
| 103 | + snps,dis-u2-freeclk-exists-quirk; |
| 104 | + }; |
| 105 | + }; |
0 commit comments