Skip to content

Commit d2a704e

Browse files
Junlisuzhougregkh
authored andcommitted
dt-bindings: usb: dwc3-imx8mp: add imx8mp dwc3 glue bindings
NXP imx8mp integrates 2 dwc3 3.30b IP and add some wakeup logic to support low power mode, the glue layer is for this wakeup functionality, which has a separated interrupt, can support wakeup from U3 and connect events for host, and vbus wakeup for device. Reviewed-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Li Jun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent cb4d9b5 commit d2a704e

File tree

1 file changed

+105
-0
lines changed

1 file changed

+105
-0
lines changed
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
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+
- Li Jun <[email protected]>
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

Comments
 (0)