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,sm6375-mdss.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm SM6375 Display MDSS
8
9maintainers:
10  - Konrad Dybcio <konrad.dybcio@linaro.org>
11
12description:
13  SM6375 MSM Mobile Display Subsystem (MDSS), which encapsulates sub-blocks
14  like DPU display controller, DSI and DP interfaces etc.
15
16$ref: /schemas/display/msm/mdss-common.yaml#
17
18properties:
19  compatible:
20    const: qcom,sm6375-mdss
21
22  clocks:
23    items:
24      - description: Display AHB clock from gcc
25      - description: Display AHB clock
26      - description: Display core clock
27
28  clock-names:
29    items:
30      - const: iface
31      - const: ahb
32      - const: core
33
34  iommus:
35    maxItems: 1
36
37  interconnects:
38    maxItems: 2
39
40  interconnect-names:
41    maxItems: 2
42
43patternProperties:
44  "^display-controller@[0-9a-f]+$":
45    type: object
46    properties:
47      compatible:
48        const: qcom,sm6375-dpu
49
50  "^dsi@[0-9a-f]+$":
51    type: object
52    properties:
53      compatible:
54        items:
55          - const: qcom,sm6375-dsi-ctrl
56          - const: qcom,mdss-dsi-ctrl
57
58  "^phy@[0-9a-f]+$":
59    type: object
60    properties:
61      compatible:
62        const: qcom,sm6375-dsi-phy-7nm
63
64unevaluatedProperties: false
65
66examples:
67  - |
68    #include <dt-bindings/clock/qcom,rpmcc.h>
69    #include <dt-bindings/clock/qcom,sm6375-gcc.h>
70    #include <dt-bindings/clock/qcom,sm6375-dispcc.h>
71    #include <dt-bindings/interrupt-controller/arm-gic.h>
72    #include <dt-bindings/power/qcom-rpmpd.h>
73
74    display-subsystem@5e00000 {
75        compatible = "qcom,sm6375-mdss";
76        reg = <0x05e00000 0x1000>;
77        reg-names = "mdss";
78
79        power-domains = <&dispcc MDSS_GDSC>;
80
81        clocks = <&gcc GCC_DISP_AHB_CLK>,
82                 <&dispcc DISP_CC_MDSS_AHB_CLK>,
83                 <&dispcc DISP_CC_MDSS_MDP_CLK>;
84        clock-names = "iface", "ahb", "core";
85
86        interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
87        interrupt-controller;
88        #interrupt-cells = <1>;
89
90        iommus = <&apps_smmu 0x820 0x2>;
91        #address-cells = <1>;
92        #size-cells = <1>;
93        ranges;
94
95        display-controller@5e01000 {
96            compatible = "qcom,sm6375-dpu";
97            reg = <0x05e01000 0x8e030>,
98                  <0x05eb0000 0x2008>;
99            reg-names = "mdp", "vbif";
100
101            clocks = <&gcc GCC_DISP_HF_AXI_CLK>,
102                     <&dispcc DISP_CC_MDSS_AHB_CLK>,
103                     <&dispcc DISP_CC_MDSS_ROT_CLK>,
104                     <&dispcc DISP_CC_MDSS_MDP_LUT_CLK>,
105                     <&dispcc DISP_CC_MDSS_MDP_CLK>,
106                     <&dispcc DISP_CC_MDSS_VSYNC_CLK>,
107                     <&gcc GCC_DISP_THROTTLE_CORE_CLK>;
108            clock-names = "bus",
109                          "iface",
110                          "rot",
111                          "lut",
112                          "core",
113                          "vsync",
114                          "throttle";
115
116            assigned-clocks = <&dispcc DISP_CC_MDSS_VSYNC_CLK>;
117            assigned-clock-rates = <19200000>;
118
119            operating-points-v2 = <&mdp_opp_table>;
120            power-domains = <&rpmpd SM6375_VDDCX>;
121
122            interrupt-parent = <&mdss>;
123            interrupts = <0>;
124
125            ports {
126                #address-cells = <1>;
127                #size-cells = <0>;
128
129                port@0 {
130                    reg = <0>;
131                    dpu_intf1_out: endpoint {
132                        remote-endpoint = <&dsi0_in>;
133                    };
134                };
135            };
136        };
137
138        dsi@5e94000 {
139            compatible = "qcom,sm6375-dsi-ctrl", "qcom,mdss-dsi-ctrl";
140            reg = <0x05e94000 0x400>;
141            reg-names = "dsi_ctrl";
142
143            interrupt-parent = <&mdss>;
144            interrupts = <4>;
145
146            clocks = <&dispcc DISP_CC_MDSS_BYTE0_CLK>,
147                     <&dispcc DISP_CC_MDSS_BYTE0_INTF_CLK>,
148                     <&dispcc DISP_CC_MDSS_PCLK0_CLK>,
149                     <&dispcc DISP_CC_MDSS_ESC0_CLK>,
150                     <&dispcc DISP_CC_MDSS_AHB_CLK>,
151                     <&gcc GCC_DISP_HF_AXI_CLK>;
152            clock-names = "byte",
153                          "byte_intf",
154                          "pixel",
155                          "core",
156                          "iface",
157                          "bus";
158
159            assigned-clocks = <&dispcc DISP_CC_MDSS_BYTE0_CLK_SRC>,
160                              <&dispcc DISP_CC_MDSS_PCLK0_CLK_SRC>;
161            assigned-clock-parents = <&mdss_dsi0_phy 0>, <&mdss_dsi0_phy 1>;
162
163            operating-points-v2 = <&dsi_opp_table>;
164            power-domains = <&rpmpd SM6375_VDDMX>;
165
166            phys = <&mdss_dsi0_phy>;
167            phy-names = "dsi";
168
169            #address-cells = <1>;
170            #size-cells = <0>;
171
172            ports {
173                #address-cells = <1>;
174                #size-cells = <0>;
175
176                port@0 {
177                    reg = <0>;
178                    dsi0_in: endpoint {
179                        remote-endpoint = <&dpu_intf1_out>;
180                    };
181                };
182
183                port@1 {
184                    reg = <1>;
185                    dsi0_out: endpoint {
186                    };
187                };
188            };
189        };
190
191        mdss_dsi0_phy: phy@5e94400 {
192            compatible = "qcom,sm6375-dsi-phy-7nm";
193            reg = <0x05e94400 0x200>,
194                  <0x05e94600 0x280>,
195                  <0x05e94900 0x264>;
196            reg-names = "dsi_phy",
197                        "dsi_phy_lane",
198                        "dsi_pll";
199
200            #clock-cells = <1>;
201            #phy-cells = <0>;
202
203            clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>,
204                     <&rpmcc RPM_SMD_XO_CLK_SRC>;
205            clock-names = "iface", "ref";
206        };
207    };
208...
209