Debian Codegraph @

Documentation/devicetree/bindings/display/msm/qcom,qcs8300-mdss.yaml

raw
1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/display/msm/qcom,qcs8300-mdss.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Qualcomm Technologies, Inc. QCS8300 Display MDSS
8
9 maintainers:
10 - Yongxing Mou <[email protected]>
11
12 description:
13 QCS8300 MSM Mobile Display Subsystem(MDSS), which encapsulates sub-blocks like
14 DPU display controller, DP interfaces and EDP etc.
15
16 $ref: /schemas/display/msm/mdss-common.yaml#
17
18 properties:
19 compatible:
20 const: qcom,qcs8300-mdss
21
22 clocks:
23 items:
24 - description: Display AHB
25 - description: Display hf AXI
26 - description: Display core
27
28 iommus:
29 maxItems: 1
30
31 interconnects:
32 maxItems: 3
33
34 interconnect-names:
35 maxItems: 3
36
37 patternProperties:
38 "^display-controller@[0-9a-f]+$":
39 type: object
40 additionalProperties: true
41
42 properties:
43 compatible:
44 contains:
45 const: qcom,qcs8300-dpu
46
47 "^displayport-controller@[0-9a-f]+$":
48 type: object
49 additionalProperties: true
50
51 properties:
52 compatible:
53 contains:
54 const: qcom,qcs8300-dp
55
56 "^dsi@[0-9a-f]+$":
57 type: object
58 additionalProperties: true
59 properties:
60 compatible:
61 contains:
62 const: qcom,qcs8300-dsi-ctrl
63
64 "^phy@[0-9a-f]+$":
65 type: object
66 additionalProperties: true
67 properties:
68 compatible:
69 contains:
70 enum:
71 - qcom,qcs8300-dsi-phy-5nm
72 - qcom,qcs8300-edp-phy
73
74 required:
75 - compatible
76
77 unevaluatedProperties: false
78
79 examples:
80 - |
81 #include <dt-bindings/interconnect/qcom,icc.h>
82 #include <dt-bindings/interrupt-controller/arm-gic.h>
83 #include <dt-bindings/clock/qcom,qcs8300-gcc.h>
84 #include <dt-bindings/clock/qcom,rpmh.h>
85 #include <dt-bindings/clock/qcom,sa8775p-dispcc.h>
86 #include <dt-bindings/interconnect/qcom,qcs8300-rpmh.h>
87 #include <dt-bindings/power/qcom,rpmhpd.h>
88 #include <dt-bindings/power/qcom-rpmpd.h>
89
90 mdss: display-subsystem@ae00000 {
91 compatible = "qcom,qcs8300-mdss";
92 reg = <0x0ae00000 0x1000>;
93 reg-names = "mdss";
94
95 interconnects = <&mmss_noc MASTER_MDP0 QCOM_ICC_TAG_ACTIVE_ONLY
96 &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ACTIVE_ONLY>,
97 <&mmss_noc MASTER_MDP1 QCOM_ICC_TAG_ACTIVE_ONLY
98 &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ACTIVE_ONLY>,
99 <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY
100 &config_noc SLAVE_DISPLAY_CFG QCOM_ICC_TAG_ACTIVE_ONLY>;
101 interconnect-names = "mdp0-mem",
102 "mdp1-mem",
103 "cpu-cfg";
104
105 resets = <&dispcc_core_bcr>;
106 power-domains = <&dispcc_gdsc>;
107
108 clocks = <&dispcc_ahb_clk>,
109 <&gcc GCC_DISP_HF_AXI_CLK>,
110 <&dispcc_mdp_clk>;
111
112 interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
113 interrupt-controller;
114 #interrupt-cells = <1>;
115
116 iommus = <&apps_smmu 0x1000 0x402>;
117
118 #address-cells = <1>;
119 #size-cells = <1>;
120 ranges;
121
122 display-controller@ae01000 {
123 compatible = "qcom,qcs8300-dpu", "qcom,sa8775p-dpu";
124 reg = <0x0ae01000 0x8f000>,
125 <0x0aeb0000 0x2008>;
126 reg-names = "mdp", "vbif";
127
128 clocks = <&gcc GCC_DISP_HF_AXI_CLK>,
129 <&dispcc0 MDSS_DISP_CC_MDSS_AHB_CLK>,
130 <&dispcc0 MDSS_DISP_CC_MDSS_MDP_LUT_CLK>,
131 <&dispcc0 MDSS_DISP_CC_MDSS_MDP_CLK>,
132 <&dispcc0 MDSS_DISP_CC_MDSS_VSYNC_CLK>;
133 clock-names = "nrt_bus",
134 "iface",
135 "lut",
136 "core",
137 "vsync";
138
139 assigned-clocks = <&dispcc0 MDSS_DISP_CC_MDSS_VSYNC_CLK>;
140 assigned-clock-rates = <19200000>;
141 operating-points-v2 = <&mdp_opp_table>;
142 power-domains = <&rpmhpd RPMHPD_MMCX>;
143
144 interrupt-parent = <&mdss>;
145 interrupts = <0>;
146 ports {
147 #address-cells = <1>;
148 #size-cells = <0>;
149 port@0 {
150 reg = <0>;
151
152 dpu_intf0_out: endpoint {
153 remote-endpoint = <&mdss_dp0_in>;
154 };
155 };
156
157 port@1 {
158 reg = <1>;
159 dpu_intf1_out: endpoint {
160 remote-endpoint = <&mdss_dsi0_in>;
161 };
162 };
163 };
164
165 mdp_opp_table: opp-table {
166 compatible = "operating-points-v2";
167
168 opp-375000000 {
169 opp-hz = /bits/ 64 <375000000>;
170 required-opps = <&rpmhpd_opp_svs_l1>;
171 };
172
173 opp-500000000 {
174 opp-hz = /bits/ 64 <500000000>;
175 required-opps = <&rpmhpd_opp_nom>;
176 };
177
178 opp-575000000 {
179 opp-hz = /bits/ 64 <575000000>;
180 required-opps = <&rpmhpd_opp_turbo>;
181 };
182
183 opp-650000000 {
184 opp-hz = /bits/ 64 <650000000>;
185 required-opps = <&rpmhpd_opp_turbo_l1>;
186 };
187 };
188 };
189
190 dsi@ae94000 {
191 compatible = "qcom,qcs8300-dsi-ctrl",
192 "qcom,sa8775p-dsi-ctrl",
193 "qcom,mdss-dsi-ctrl";
194 reg = <0x0ae94000 0x400>;
195 reg-names = "dsi_ctrl";
196
197 interrupt-parent = <&mdss>;
198 interrupts = <4>;
199
200 clocks = <&dispcc MDSS_DISP_CC_MDSS_BYTE0_CLK>,
201 <&dispcc MDSS_DISP_CC_MDSS_BYTE0_INTF_CLK>,
202 <&dispcc MDSS_DISP_CC_MDSS_PCLK0_CLK>,
203 <&dispcc MDSS_DISP_CC_MDSS_ESC0_CLK>,
204 <&dispcc MDSS_DISP_CC_MDSS_AHB_CLK>,
205 <&gcc GCC_DISP_HF_AXI_CLK>;
206 clock-names = "byte",
207 "byte_intf",
208 "pixel",
209 "core",
210 "iface",
211 "bus";
212 assigned-clocks = <&dispcc MDSS_DISP_CC_MDSS_BYTE0_CLK_SRC>,
213 <&dispcc MDSS_DISP_CC_MDSS_PCLK0_CLK_SRC>;
214 assigned-clock-parents = <&mdss_dsi0_phy 0>, <&mdss_dsi0_phy 1>;
215 phys = <&mdss_dsi0_phy>;
216
217 operating-points-v2 = <&dsi0_opp_table>;
218 power-domains = <&rpmhpd RPMHPD_MMCX>;
219
220 vdda-supply = <&vreg_l5a>;
221
222 #address-cells = <1>;
223 #size-cells = <0>;
224
225 ports {
226 #address-cells = <1>;
227 #size-cells = <0>;
228
229 port@0 {
230 reg = <0>;
231 mdss0_dsi0_in: endpoint {
232 remote-endpoint = <&dpu_intf1_out>;
233 };
234 };
235
236 port@1 {
237 reg = <1>;
238 mdss0_dsi0_out: endpoint { };
239 };
240 };
241
242 dsi0_opp_table: opp-table {
243 compatible = "operating-points-v2";
244
245 opp-358000000 {
246 opp-hz = /bits/ 64 <358000000>;
247 required-opps = <&rpmhpd_opp_svs_l1>;
248 };
249 };
250 };
251
252 mdss_dsi0_phy: phy@ae94400 {
253 compatible = "qcom,qcs8300-dsi-phy-5nm",
254 "qcom,sa8775p-dsi-phy-5nm";
255 reg = <0x0ae94400 0x200>,
256 <0x0ae94600 0x280>,
257 <0x0ae94900 0x27c>;
258 reg-names = "dsi_phy",
259 "dsi_phy_lane",
260 "dsi_pll";
261
262 #clock-cells = <1>;
263 #phy-cells = <0>;
264
265 clocks = <&dispcc MDSS_DISP_CC_MDSS_AHB_CLK>,
266 <&rpmhcc RPMH_CXO_CLK>;
267 clock-names = "iface", "ref";
268
269 vdds-supply = <&vreg_l4a>;
270 };
271
272 mdss_dp0_phy: phy@aec2a00 {
273 compatible = "qcom,qcs8300-edp-phy", "qcom,sa8775p-edp-phy";
274
275 reg = <0x0aec2a00 0x200>,
276 <0x0aec2200 0xd0>,
277 <0x0aec2600 0xd0>,
278 <0x0aec2000 0x1c8>;
279
280 clocks = <&dispcc MDSS_DISP_CC_MDSS_DPTX0_AUX_CLK>,
281 <&dispcc MDSS_DISP_CC_MDSS_AHB_CLK>;
282 clock-names = "aux",
283 "cfg_ahb";
284
285 #clock-cells = <1>;
286 #phy-cells = <0>;
287
288 vdda-phy-supply = <&vreg_l1c>;
289 vdda-pll-supply = <&vreg_l4a>;
290 };
291
292 displayport-controller@af54000 {
293 compatible = "qcom,qcs8300-dp", "qcom,sa8775p-dp";
294
295 pinctrl-0 = <&dp_hot_plug_det>;
296 pinctrl-names = "default";
297
298 reg = <0xaf54000 0x104>,
299 <0xaf54200 0x0c0>,
300 <0xaf55000 0x770>,
301 <0xaf56000 0x09c>,
302 <0xaf57000 0x09c>,
303 <0xaf58000 0x09c>,
304 <0xaf59000 0x09c>,
305 <0xaf5a000 0x23c>,
306 <0xaf5b000 0x23c>;
307
308 interrupt-parent = <&mdss>;
309 interrupts = <12>;
310 clocks = <&dispcc0 MDSS_DISP_CC_MDSS_AHB_CLK>,
311 <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_AUX_CLK>,
312 <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_LINK_CLK>,
313 <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_LINK_INTF_CLK>,
314 <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_PIXEL0_CLK>,
315 <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_PIXEL1_CLK>,
316 <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_PIXEL2_CLK>,
317 <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_PIXEL3_CLK>;
318 clock-names = "core_iface",
319 "core_aux",
320 "ctrl_link",
321 "ctrl_link_iface",
322 "stream_pixel",
323 "stream_1_pixel",
324 "stream_2_pixel",
325 "stream_3_pixel";
326 assigned-clocks = <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_LINK_CLK_SRC>,
327 <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_PIXEL0_CLK_SRC>,
328 <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_PIXEL1_CLK_SRC>,
329 <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_PIXEL2_CLK_SRC>,
330 <&dispcc0 MDSS_DISP_CC_MDSS_DPTX0_PIXEL3_CLK_SRC>;
331 assigned-clock-parents = <&mdss_dp0_phy 0>,
332 <&mdss_dp0_phy 1>,
333 <&mdss_dp0_phy 1>,
334 <&mdss_dp0_phy 1>;
335 phys = <&mdss_dp0_phy>;
336 phy-names = "dp";
337 operating-points-v2 = <&dp_opp_table>;
338 power-domains = <&rpmhpd RPMHPD_MMCX>;
339
340 #sound-dai-cells = <0>;
341
342 ports {
343 #address-cells = <1>;
344 #size-cells = <0>;
345
346 port@0 {
347 reg = <0>;
348
349 mdss_dp0_in: endpoint {
350 remote-endpoint = <&dpu_intf0_out>;
351 };
352 };
353
354 port@1 {
355 reg = <1>;
356
357 mdss_dp_out: endpoint { };
358 };
359 };
360
361 dp_opp_table: opp-table {
362 compatible = "operating-points-v2";
363
364 opp-160000000 {
365 opp-hz = /bits/ 64 <160000000>;
366 required-opps = <&rpmhpd_opp_low_svs>;
367 };
368
369 opp-270000000 {
370 opp-hz = /bits/ 64 <270000000>;
371 required-opps = <&rpmhpd_opp_svs>;
372 };
373
374 opp-540000000 {
375 opp-hz = /bits/ 64 <540000000>;
376 required-opps = <&rpmhpd_opp_svs_l1>;
377 };
378
379 opp-810000000 {
380 opp-hz = /bits/ 64 <810000000>;
381 required-opps = <&rpmhpd_opp_nom>;
382 };
383 };
384 };
385 };
386 ...