xref: /linux/Documentation/devicetree/bindings/phy/fsl,mxs-usbphy.yaml (revision 55d0969c451159cff86949b38c39171cab962069)
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,mxs-usbphy.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Freescale MXS USB Phy Device
8
9maintainers:
10  - Xu Yang <xu.yang_2@nxp.com>
11
12properties:
13  compatible:
14    oneOf:
15      - enum:
16          - fsl,imx23-usbphy
17          - fsl,imx7ulp-usbphy
18          - fsl,vf610-usbphy
19      - items:
20          - enum:
21              - fsl,imx28-usbphy
22              - fsl,imx6ul-usbphy
23              - fsl,imx6sl-usbphy
24              - fsl,imx6sx-usbphy
25              - fsl,imx6q-usbphy
26          - const: fsl,imx23-usbphy
27      - items:
28          - const: fsl,imx6sll-usbphy
29          - const: fsl,imx6ul-usbphy
30          - const: fsl,imx23-usbphy
31      - items:
32          - enum:
33              - fsl,imx8dxl-usbphy
34              - fsl,imx8qm-usbphy
35              - fsl,imx8ulp-usbphy
36          - const: fsl,imx7ulp-usbphy
37
38  reg:
39    maxItems: 1
40
41  interrupts:
42    maxItems: 1
43
44  clocks:
45    maxItems: 1
46
47  '#phy-cells':
48    const: 0
49
50  power-domains:
51    maxItems: 1
52
53  fsl,anatop:
54    description:
55      phandle for anatop register, it is only for imx6 SoC series.
56    $ref: /schemas/types.yaml#/definitions/phandle
57
58  phy-3p0-supply:
59    description:
60      One of USB PHY's power supply. Can be used to keep a good signal
61      quality.
62
63  fsl,tx-cal-45-dn-ohms:
64    description:
65      Resistance (in ohms) of switchable high-speed trimming resistor
66      connected in parallel with the 45 ohm resistor that terminates
67      the DN output signal.
68    minimum: 35
69    maximum: 54
70    default: 45
71
72  fsl,tx-cal-45-dp-ohms:
73    description:
74      Resistance (in ohms) of switchable high-speed trimming resistor
75      connected in parallel with the 45 ohm resistor that terminates
76      the DP output signal.
77    minimum: 35
78    maximum: 54
79    default: 45
80
81  fsl,tx-d-cal:
82    description:
83      Current trimming value (as a percentage) of the 17.78 mA TX
84      reference current.
85    $ref: /schemas/types.yaml#/definitions/uint32
86    minimum: 79
87    maximum: 119
88    default: 100
89
90  nxp,sim:
91    description:
92      The system integration module (SIM) provides system control and chip
93      configuration registers.
94    $ref: /schemas/types.yaml#/definitions/phandle
95
96required:
97  - compatible
98  - reg
99  - clocks
100
101allOf:
102  - if:
103      properties:
104        compatible:
105          oneOf:
106            - enum:
107                - fsl,imx6q-usbphy
108                - fsl,imx6sl-usbphy
109                - fsl,imx6sx-usbphy
110                - fsl,imx6sll-usbphy
111                - fsl,vf610-usbphy
112            - items:
113                - const: fsl,imx6ul-usbphy
114                - const: fsl,imx23-usbphy
115    then:
116      required:
117        - fsl,anatop
118
119  - if:
120      properties:
121        compatible:
122          const: fsl,imx7ulp-usbphy
123    then:
124      required:
125        - nxp,sim
126    else:
127      properties:
128        nxp,sim: false
129
130additionalProperties: false
131
132examples:
133  - |
134    #include <dt-bindings/interrupt-controller/arm-gic.h>
135    #include <dt-bindings/clock/imx6qdl-clock.h>
136
137    usbphy1: usb-phy@20c9000 {
138        compatible = "fsl,imx6q-usbphy", "fsl,imx23-usbphy";
139        reg = <0x020c9000 0x1000>;
140        clocks = <&clks IMX6QDL_CLK_USBPHY1>;
141        interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
142        fsl,anatop = <&anatop>;
143    };
144
145...
146