1139969Simp# SPDX-License-Identifier: GPL-2.0-only
21556Srgrimes%YAML 1.2
31556Srgrimes---
41556Srgrimes$id: http://devicetree.org/schemas/phy/qcom,usb-hs-phy.yaml#
51556Srgrimes$schema: http://devicetree.org/meta-schemas/core.yaml#
61556Srgrimes
71556Srgrimestitle: Qualcomm's USB HS PHY
81556Srgrimes
91556Srgrimesmaintainers:
101556Srgrimes  - Bjorn Andersson <bjorn.andersson@linaro.org>
111556Srgrimes
121556Srgrimesif:
131556Srgrimes  properties:
141556Srgrimes    compatible:
151556Srgrimes      contains:
161556Srgrimes        enum:
171556Srgrimes          - qcom,usb-hs-phy-apq8064
181556Srgrimes          - qcom,usb-hs-phy-msm8960
191556Srgrimesthen:
201556Srgrimes  properties:
211556Srgrimes    resets:
221556Srgrimes      maxItems: 1
231556Srgrimes
241556Srgrimes    reset-names:
251556Srgrimes      const: por
261556Srgrimes
271556Srgrimeselse:
281556Srgrimes  properties:
291556Srgrimes    resets:
301556Srgrimes      minItems: 2
311556Srgrimes      maxItems: 2
3227958Ssteve
3350471Speter    reset-names:
341556Srgrimes      items:
351556Srgrimes        - const: phy
361556Srgrimes        - const: por
371556Srgrimes
38202945Sjhproperties:
39202945Sjh  compatible:
40285734Sallanjude    items:
41285734Sallanjude      - enum:
421556Srgrimes          - qcom,usb-hs-phy-apq8064
431556Srgrimes          - qcom,usb-hs-phy-msm8226
441556Srgrimes          - qcom,usb-hs-phy-msm8916
45157098Sjhb          - qcom,usb-hs-phy-msm8960
461556Srgrimes          - qcom,usb-hs-phy-msm8974
4788591Sjoe      - const: qcom,usb-hs-phy
48105832Srwatson
491556Srgrimes  clocks:
501556Srgrimes    minItems: 2
5135373Sdes    maxItems: 2
5235417Sdes
5362597Sassar  clock-names:
54242807Sgrog    maxItems: 2
551556Srgrimes    contains:
561556Srgrimes      items:
5796892Stjr        - const: ref
58177907Sgrog        - const: sleep
591556Srgrimes
60242725Sgrog  resets: true
61242807Sgrog
6237932Shoek  reset-names: true
63285734Sallanjude
641556Srgrimes  v1p8-supply: true
6561268Sjoe
6661178Sjoe  v3p3-supply: true
6761268Sjoe
681556Srgrimes  extcon: true
691556Srgrimes
701556Srgrimes  "#phy-cells":
711556Srgrimes    const: 0
721556Srgrimes
731556Srgrimes  qcom,init-seq:
7490150Smarkm    $ref: /schemas/types.yaml#/definitions/uint8-matrix
7590150Smarkm    description: >
76105832Srwatson      Sequence of ULPI address and value pairs to
7790150Smarkm      program into the ULPI_EXT_VENDOR_SPECIFIC area.
7890150Smarkm      This is related to Device Mode Eye Diagram test.
7990150Smarkm    maxItems: 32 # no hard limit
8090150Smarkm    items:
8190150Smarkm      items:
821556Srgrimes        - description: >
831556Srgrimes            the address is offset from the ULPI_EXT_VENDOR_SPECIFIC address
841556Srgrimes        - description: value
851556Srgrimes
861556Srgrimesrequired:
871556Srgrimes  - clocks
88105832Srwatson  - clock-names
891556Srgrimes  - resets
901556Srgrimes  - reset-names
91  - "#phy-cells"
92
93additionalProperties: false
94
95examples:
96  - |
97    otg: usb-controller {
98      #reset-cells = <1>;
99
100      ulpi {
101        phy {
102          compatible = "qcom,usb-hs-phy-msm8974", "qcom,usb-hs-phy";
103          #phy-cells = <0>;
104          clocks = <&clk 0>, <&clk 258>;
105          clock-names = "ref", "sleep";
106          resets = <&gcc 10>, <&otg 0>;
107          reset-names = "phy", "por";
108          v3p3-supply = <&pm8941_l24>;
109          v1p8-supply = <&pm8941_l6>;
110          extcon = <&smbb>;
111          qcom,init-seq = /bits/ 8 <0x1 0x63>;
112        };
113      };
114    };
115