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