Debian Codegraph @

Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/phy/qcom,sc8280xp-qmp-ufs-phy.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Qualcomm QMP PHY controller (UFS, SC8280XP)
8
9 maintainers:
10 - Vinod Koul <[email protected]>
11
12 description:
13 The QMP PHY controller supports physical layer functionality for a number of
14 controllers on Qualcomm chipsets, such as, PCIe, UFS, and USB.
15
16 properties:
17 compatible:
18 oneOf:
19 - items:
20 - enum:
21 - qcom,qcs615-qmp-ufs-phy
22 - const: qcom,sm6115-qmp-ufs-phy
23 - items:
24 - enum:
25 - qcom,x1e80100-qmp-ufs-phy
26 - const: qcom,sm8550-qmp-ufs-phy
27 - items:
28 - enum:
29 - qcom,qcs8300-qmp-ufs-phy
30 - const: qcom,sa8775p-qmp-ufs-phy
31 - items:
32 - enum:
33 - qcom,kaanapali-qmp-ufs-phy
34 - const: qcom,sm8750-qmp-ufs-phy
35 - enum:
36 - qcom,milos-qmp-ufs-phy
37 - qcom,msm8996-qmp-ufs-phy
38 - qcom,msm8998-qmp-ufs-phy
39 - qcom,sa8775p-qmp-ufs-phy
40 - qcom,sc7180-qmp-ufs-phy
41 - qcom,sc7280-qmp-ufs-phy
42 - qcom,sc8180x-qmp-ufs-phy
43 - qcom,sc8280xp-qmp-ufs-phy
44 - qcom,sdm845-qmp-ufs-phy
45 - qcom,sm6115-qmp-ufs-phy
46 - qcom,sm6125-qmp-ufs-phy
47 - qcom,sm6350-qmp-ufs-phy
48 - qcom,sm7150-qmp-ufs-phy
49 - qcom,sm8150-qmp-ufs-phy
50 - qcom,sm8250-qmp-ufs-phy
51 - qcom,sm8350-qmp-ufs-phy
52 - qcom,sm8450-qmp-ufs-phy
53 - qcom,sm8475-qmp-ufs-phy
54 - qcom,sm8550-qmp-ufs-phy
55 - qcom,sm8650-qmp-ufs-phy
56 - qcom,sm8750-qmp-ufs-phy
57
58 reg:
59 maxItems: 1
60
61 clocks:
62 minItems: 2
63 maxItems: 3
64
65 clock-names:
66 minItems: 2
67 maxItems: 3
68
69 power-domains:
70 maxItems: 1
71
72 resets:
73 maxItems: 1
74
75 reset-names:
76 items:
77 - const: ufsphy
78
79 vdda-phy-supply: true
80
81 vdda-pll-supply: true
82
83 "#clock-cells":
84 const: 1
85
86 "#phy-cells":
87 const: 0
88
89 required:
90 - compatible
91 - reg
92 - clocks
93 - clock-names
94 - resets
95 - reset-names
96 - vdda-phy-supply
97 - vdda-pll-supply
98 - "#phy-cells"
99
100 allOf:
101 - if:
102 properties:
103 compatible:
104 contains:
105 enum:
106 - qcom,milos-qmp-ufs-phy
107 - qcom,msm8998-qmp-ufs-phy
108 - qcom,sa8775p-qmp-ufs-phy
109 - qcom,sc7180-qmp-ufs-phy
110 - qcom,sc7280-qmp-ufs-phy
111 - qcom,sc8180x-qmp-ufs-phy
112 - qcom,sc8280xp-qmp-ufs-phy
113 - qcom,sdm845-qmp-ufs-phy
114 - qcom,sm6115-qmp-ufs-phy
115 - qcom,sm6125-qmp-ufs-phy
116 - qcom,sm6350-qmp-ufs-phy
117 - qcom,sm7150-qmp-ufs-phy
118 - qcom,sm8150-qmp-ufs-phy
119 - qcom,sm8250-qmp-ufs-phy
120 - qcom,sm8350-qmp-ufs-phy
121 - qcom,sm8450-qmp-ufs-phy
122 - qcom,sm8475-qmp-ufs-phy
123 - qcom,sm8550-qmp-ufs-phy
124 - qcom,sm8650-qmp-ufs-phy
125 - qcom,sm8750-qmp-ufs-phy
126 then:
127 properties:
128 clocks:
129 minItems: 3
130 maxItems: 3
131 clock-names:
132 items:
133 - const: ref
134 - const: ref_aux
135 - const: qref
136
137 - if:
138 properties:
139 compatible:
140 contains:
141 enum:
142 - qcom,msm8996-qmp-ufs-phy
143 then:
144 properties:
145 clocks:
146 minItems: 2
147 maxItems: 2
148 clock-names:
149 items:
150 - const: ref
151 - const: qref
152
153 - if:
154 properties:
155 compatible:
156 contains:
157 enum:
158 - qcom,msm8996-qmp-ufs-phy
159 - qcom,msm8998-qmp-ufs-phy
160 then:
161 properties:
162 power-domains:
163 false
164 else:
165 required:
166 - power-domains
167
168 additionalProperties: false
169
170 examples:
171 - |
172 #include <dt-bindings/clock/qcom,gcc-sc8280xp.h>
173 #include <dt-bindings/clock/qcom,rpmh.h>
174
175 ufs_mem_phy: phy@1d87000 {
176 compatible = "qcom,sc8280xp-qmp-ufs-phy";
177 reg = <0x01d87000 0x1000>;
178
179 clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_UFS_PHY_PHY_AUX_CLK>,
180 <&gcc GCC_UFS_REF_CLKREF_CLK>;
181
182 clock-names = "ref", "ref_aux", "qref";
183
184 power-domains = <&gcc UFS_PHY_GDSC>;
185
186 resets = <&ufs_mem_hc 0>;
187 reset-names = "ufsphy";
188
189 vdda-phy-supply = <&vreg_l6b>;
190 vdda-pll-supply = <&vreg_l3b>;
191
192 #phy-cells = <0>;
193 };