xref: /linux/Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml (revision db4a3f0fbedb0398f77b9047e8b8bb2b49f355bb)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/phy/fsl,imx8mq-usb-phy.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Freescale i.MX8MQ USB3 PHY
8
9maintainers:
10  - Li Jun <jun.li@nxp.com>
11
12properties:
13  compatible:
14    oneOf:
15      - enum:
16          - fsl,imx8mq-usb-phy
17          - fsl,imx8mp-usb-phy
18      - items:
19          - const: fsl,imx95-usb-phy
20          - const: fsl,imx8mp-usb-phy
21
22  reg:
23    minItems: 1
24    maxItems: 2
25
26  "#phy-cells":
27    const: 0
28
29  clocks:
30    maxItems: 1
31
32  clock-names:
33    items:
34      - const: phy
35
36  power-domains:
37    maxItems: 1
38
39  vbus-supply:
40    description:
41      A phandle to the regulator for USB VBUS.
42
43  fsl,phy-tx-vref-tune-percent:
44    description:
45      Tunes the HS DC level relative to the nominal level
46    minimum: 90
47    maximum: 124
48
49  fsl,phy-tx-rise-tune-percent:
50    description:
51      Adjusts the rise/fall time duration of the HS waveform relative to
52      its nominal value
53    minimum: 90
54    maximum: 120
55
56  fsl,phy-tx-preemp-amp-tune-microamp:
57    description:
58      Adjust amount of current sourced to DPn and DMn after a J-to-K
59      or K-to-J transition. Default is 0 (disabled).
60    minimum: 0
61    maximum: 1800
62
63  fsl,phy-tx-vboost-level-microvolt:
64    description:
65      Adjust the boosted transmit launch pk-pk differential amplitude
66    enum: [844, 1008, 1156]
67
68  fsl,phy-comp-dis-tune-percent:
69    description:
70      Adjust the voltage level used to detect a disconnect event at the host
71      relative to the nominal value
72    minimum: 91
73    maximum: 115
74
75  fsl,phy-pcs-tx-deemph-3p5db-attenuation-db:
76    description:
77      Adjust TX de-emphasis attenuation in dB at nominal
78      3.5dB point as per USB specification
79    minimum: 0
80    maximum: 36
81
82  fsl,phy-pcs-tx-swing-full-percent:
83    description:
84      Scaling of the voltage defined by fsl,phy-tx-vboost-level-microvolt
85    minimum: 0
86    maximum: 100
87
88required:
89  - compatible
90  - reg
91  - "#phy-cells"
92  - clocks
93  - clock-names
94
95allOf:
96  - if:
97      properties:
98        compatible:
99          contains:
100            enum:
101              - fsl,imx95-usb-phy
102    then:
103      properties:
104        reg:
105          items:
106            - description: USB PHY Control range
107            - description: USB PHY TCA Block range
108    else:
109      properties:
110        reg:
111          maxItems: 1
112
113  - if:
114      properties:
115        compatible:
116          enum:
117            - fsl,imx8mq-usb-phy
118            - fsl,imx8mp-usb-phy
119    then:
120      properties:
121        fsl,phy-tx-vref-tune-percent:
122          minimum: 94
123        fsl,phy-tx-rise-tune-percent:
124          minimum: 97
125          maximum: 103
126
127  - if:
128      properties:
129        compatible:
130          contains:
131            enum:
132              - fsl,imx95-usb-phy
133    then:
134      properties:
135        fsl,phy-tx-vref-tune-percent:
136          maximum: 108
137        fsl,phy-comp-dis-tune-percent:
138          minimum: 94
139          maximum: 104
140
141  - if:
142      required:
143        - orientation-switch
144    then:
145      $ref: /schemas/usb/usb-switch.yaml#
146
147unevaluatedProperties: false
148
149examples:
150  - |
151    #include <dt-bindings/clock/imx8mq-clock.h>
152    usb3_phy0: phy@381f0040 {
153        compatible = "fsl,imx8mq-usb-phy";
154        reg = <0x381f0040 0x40>;
155        clocks = <&clk IMX8MQ_CLK_USB1_PHY_ROOT>;
156        clock-names = "phy";
157        #phy-cells = <0>;
158    };
159