0001 # SPDX-License-Identifier: GPL-2.0-only
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/phy/qcom,usb-hs-phy.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Qualcomm's USB HS PHY binding description
0008
0009 maintainers:
0010 - Bjorn Andersson <bjorn.andersson@linaro.org>
0011
0012 if:
0013 properties:
0014 compatible:
0015 contains:
0016 const: qcom,usb-hs-phy-apq8064
0017 then:
0018 properties:
0019 resets:
0020 maxItems: 1
0021
0022 reset-names:
0023 const: por
0024
0025 else:
0026 properties:
0027 resets:
0028 minItems: 2
0029 maxItems: 2
0030
0031 reset-names:
0032 items:
0033 - const: phy
0034 - const: por
0035
0036 properties:
0037 compatible:
0038 items:
0039 - enum:
0040 - qcom,usb-hs-phy-apq8064
0041 - qcom,usb-hs-phy-msm8226
0042 - qcom,usb-hs-phy-msm8916
0043 - qcom,usb-hs-phy-msm8974
0044 - const: qcom,usb-hs-phy
0045
0046 clocks:
0047 minItems: 2
0048 maxItems: 2
0049
0050 clock-names:
0051 maxItems: 2
0052 contains:
0053 items:
0054 - const: ref
0055 - const: sleep
0056
0057 resets: true
0058
0059 reset-names: true
0060
0061 v1p8-supply: true
0062
0063 v3p3-supply: true
0064
0065 extcon: true
0066
0067 "#phy-cells":
0068 const: 0
0069
0070 qcom,init-seq:
0071 $ref: /schemas/types.yaml#/definitions/uint8-matrix
0072 description: >
0073 Sequence of ULPI address and value pairs to
0074 program into the ULPI_EXT_VENDOR_SPECIFIC area.
0075 This is related to Device Mode Eye Diagram test.
0076 maxItems: 32 # no hard limit
0077 items:
0078 items:
0079 - description: >
0080 the address is offset from the ULPI_EXT_VENDOR_SPECIFIC address
0081 - description: value
0082
0083 required:
0084 - clocks
0085 - clock-names
0086 - resets
0087 - reset-names
0088 - "#phy-cells"
0089
0090 additionalProperties: false
0091
0092 examples:
0093 - |
0094 otg: usb-controller {
0095 #reset-cells = <1>;
0096
0097 ulpi {
0098 phy {
0099 compatible = "qcom,usb-hs-phy-msm8974", "qcom,usb-hs-phy";
0100 #phy-cells = <0>;
0101 clocks = <&clk 0>, <&clk 258>;
0102 clock-names = "ref", "sleep";
0103 resets = <&gcc 10>, <&otg 0>;
0104 reset-names = "phy", "por";
0105 v3p3-supply = <&pm8941_l24>;
0106 v1p8-supply = <&pm8941_l6>;
0107 extcon = <&smbb>;
0108 qcom,init-seq = /bits/ 8 <0x1 0x63>;
0109 };
0110 };
0111 };