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