xref: /freebsd/sys/contrib/device-tree/Bindings/phy/qcom,usb-hs-phy.yaml (revision c9ccf3a32da427475985b85d7df023ccfb138c27)
1*c9ccf3a3SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only
2*c9ccf3a3SEmmanuel Vadot%YAML 1.2
3*c9ccf3a3SEmmanuel Vadot---
4*c9ccf3a3SEmmanuel Vadot$id: http://devicetree.org/schemas/phy/qcom,usb-hs-phy.yaml#
5*c9ccf3a3SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*c9ccf3a3SEmmanuel Vadot
7*c9ccf3a3SEmmanuel Vadottitle: Qualcomm's USB HS PHY binding description
8*c9ccf3a3SEmmanuel Vadot
9*c9ccf3a3SEmmanuel Vadotmaintainers:
10*c9ccf3a3SEmmanuel Vadot  - Bjorn Andersson <bjorn.andersson@linaro.org>
11*c9ccf3a3SEmmanuel Vadot
12*c9ccf3a3SEmmanuel Vadotif:
13*c9ccf3a3SEmmanuel Vadot  properties:
14*c9ccf3a3SEmmanuel Vadot    compatible:
15*c9ccf3a3SEmmanuel Vadot      contains:
16*c9ccf3a3SEmmanuel Vadot        const: qcom,usb-hs-phy-apq8064
17*c9ccf3a3SEmmanuel Vadotthen:
18*c9ccf3a3SEmmanuel Vadot  properties:
19*c9ccf3a3SEmmanuel Vadot    resets:
20*c9ccf3a3SEmmanuel Vadot      maxItems: 1
21*c9ccf3a3SEmmanuel Vadot
22*c9ccf3a3SEmmanuel Vadot    reset-names:
23*c9ccf3a3SEmmanuel Vadot      const: por
24*c9ccf3a3SEmmanuel Vadot
25*c9ccf3a3SEmmanuel Vadotelse:
26*c9ccf3a3SEmmanuel Vadot  properties:
27*c9ccf3a3SEmmanuel Vadot    resets:
28*c9ccf3a3SEmmanuel Vadot      minItems: 2
29*c9ccf3a3SEmmanuel Vadot      maxItems: 2
30*c9ccf3a3SEmmanuel Vadot
31*c9ccf3a3SEmmanuel Vadot    reset-names:
32*c9ccf3a3SEmmanuel Vadot      items:
33*c9ccf3a3SEmmanuel Vadot        - const: phy
34*c9ccf3a3SEmmanuel Vadot        - const: por
35*c9ccf3a3SEmmanuel Vadot
36*c9ccf3a3SEmmanuel Vadotproperties:
37*c9ccf3a3SEmmanuel Vadot  compatible:
38*c9ccf3a3SEmmanuel Vadot    items:
39*c9ccf3a3SEmmanuel Vadot      - enum:
40*c9ccf3a3SEmmanuel Vadot          - qcom,usb-hs-phy-apq8064
41*c9ccf3a3SEmmanuel Vadot          - qcom,usb-hs-phy-msm8226
42*c9ccf3a3SEmmanuel Vadot          - qcom,usb-hs-phy-msm8916
43*c9ccf3a3SEmmanuel Vadot          - qcom,usb-hs-phy-msm8974
44*c9ccf3a3SEmmanuel Vadot      - const: qcom,usb-hs-phy
45*c9ccf3a3SEmmanuel Vadot
46*c9ccf3a3SEmmanuel Vadot  clocks:
47*c9ccf3a3SEmmanuel Vadot    minItems: 2
48*c9ccf3a3SEmmanuel Vadot    maxItems: 2
49*c9ccf3a3SEmmanuel Vadot
50*c9ccf3a3SEmmanuel Vadot  clock-names:
51*c9ccf3a3SEmmanuel Vadot    maxItems: 2
52*c9ccf3a3SEmmanuel Vadot    contains:
53*c9ccf3a3SEmmanuel Vadot      items:
54*c9ccf3a3SEmmanuel Vadot        - const: ref
55*c9ccf3a3SEmmanuel Vadot        - const: sleep
56*c9ccf3a3SEmmanuel Vadot
57*c9ccf3a3SEmmanuel Vadot  resets: true
58*c9ccf3a3SEmmanuel Vadot
59*c9ccf3a3SEmmanuel Vadot  reset-names: true
60*c9ccf3a3SEmmanuel Vadot
61*c9ccf3a3SEmmanuel Vadot  v1p8-supply: true
62*c9ccf3a3SEmmanuel Vadot
63*c9ccf3a3SEmmanuel Vadot  v3p3-supply: true
64*c9ccf3a3SEmmanuel Vadot
65*c9ccf3a3SEmmanuel Vadot  extcon: true
66*c9ccf3a3SEmmanuel Vadot
67*c9ccf3a3SEmmanuel Vadot  "#phy-cells":
68*c9ccf3a3SEmmanuel Vadot    const: 0
69*c9ccf3a3SEmmanuel Vadot
70*c9ccf3a3SEmmanuel Vadot  qcom,init-seq:
71*c9ccf3a3SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint8-matrix
72*c9ccf3a3SEmmanuel Vadot    description: >
73*c9ccf3a3SEmmanuel Vadot      Sequence of ULPI address and value pairs to
74*c9ccf3a3SEmmanuel Vadot      program into the ULPI_EXT_VENDOR_SPECIFIC area.
75*c9ccf3a3SEmmanuel Vadot      This is related to Device Mode Eye Diagram test.
76*c9ccf3a3SEmmanuel Vadot    maxItems: 32 # no hard limit
77*c9ccf3a3SEmmanuel Vadot    items:
78*c9ccf3a3SEmmanuel Vadot      items:
79*c9ccf3a3SEmmanuel Vadot        - description: >
80*c9ccf3a3SEmmanuel Vadot            the address is offset from the ULPI_EXT_VENDOR_SPECIFIC address
81*c9ccf3a3SEmmanuel Vadot        - description: value
82*c9ccf3a3SEmmanuel Vadot
83*c9ccf3a3SEmmanuel Vadotrequired:
84*c9ccf3a3SEmmanuel Vadot  - clocks
85*c9ccf3a3SEmmanuel Vadot  - clock-names
86*c9ccf3a3SEmmanuel Vadot  - resets
87*c9ccf3a3SEmmanuel Vadot  - reset-names
88*c9ccf3a3SEmmanuel Vadot  - "#phy-cells"
89*c9ccf3a3SEmmanuel Vadot
90*c9ccf3a3SEmmanuel VadotadditionalProperties: false
91*c9ccf3a3SEmmanuel Vadot
92*c9ccf3a3SEmmanuel Vadotexamples:
93*c9ccf3a3SEmmanuel Vadot  - |
94*c9ccf3a3SEmmanuel Vadot    otg: usb-controller {
95*c9ccf3a3SEmmanuel Vadot      #reset-cells = <1>;
96*c9ccf3a3SEmmanuel Vadot
97*c9ccf3a3SEmmanuel Vadot      ulpi {
98*c9ccf3a3SEmmanuel Vadot        phy {
99*c9ccf3a3SEmmanuel Vadot          compatible = "qcom,usb-hs-phy-msm8974", "qcom,usb-hs-phy";
100*c9ccf3a3SEmmanuel Vadot          #phy-cells = <0>;
101*c9ccf3a3SEmmanuel Vadot          clocks = <&clk 0>, <&clk 258>;
102*c9ccf3a3SEmmanuel Vadot          clock-names = "ref", "sleep";
103*c9ccf3a3SEmmanuel Vadot          resets = <&gcc 10>, <&otg 0>;
104*c9ccf3a3SEmmanuel Vadot          reset-names = "phy", "por";
105*c9ccf3a3SEmmanuel Vadot          v3p3-supply = <&pm8941_l24>;
106*c9ccf3a3SEmmanuel Vadot          v1p8-supply = <&pm8941_l6>;
107*c9ccf3a3SEmmanuel Vadot          extcon = <&smbb>;
108*c9ccf3a3SEmmanuel Vadot          qcom,init-seq = /bits/ 8 <0x1 0x63>;
109*c9ccf3a3SEmmanuel Vadot        };
110*c9ccf3a3SEmmanuel Vadot      };
111*c9ccf3a3SEmmanuel Vadot    };
112