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