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,mdss.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Mobile Display SubSystem (MDSS)
8
9maintainers:
10  - Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
11  - Rob Clark <robdclark@gmail.com>
12
13description:
14  This is the bindings documentation for the Mobile Display Subsytem(MDSS) that
15  encapsulates sub-blocks like MDP5, DSI, HDMI, eDP, etc.
16
17properties:
18  $nodename:
19    pattern: "^display-subsystem@[0-9a-f]+$"
20
21  compatible:
22    enum:
23      - qcom,mdss
24
25  reg:
26    minItems: 2
27    maxItems: 3
28
29  reg-names:
30    minItems: 2
31    items:
32      - const: mdss_phys
33      - const: vbif_phys
34      - const: vbif_nrt_phys
35
36  interrupts:
37    maxItems: 1
38
39  interrupt-controller: true
40
41  "#interrupt-cells":
42    const: 1
43
44  power-domains:
45    maxItems: 1
46    description: |
47      The MDSS power domain provided by GCC
48
49  clocks:
50    oneOf:
51      - minItems: 3
52        items:
53          - description: Display abh clock
54          - description: Display axi clock
55          - description: Display vsync clock
56          - description: Display core clock
57      - minItems: 1
58        items:
59          - description: Display abh clock
60          - description: Display core clock
61
62  clock-names:
63    oneOf:
64      - minItems: 3
65        items:
66          - const: iface
67          - const: bus
68          - const: vsync
69          - const: core
70      - minItems: 1
71        items:
72          - const: iface
73          - const: core
74
75  "#address-cells":
76    const: 1
77
78  "#size-cells":
79    const: 1
80
81  ranges: true
82
83  resets:
84    items:
85      - description: MDSS_CORE reset
86
87required:
88  - compatible
89  - reg
90  - reg-names
91  - interrupts
92  - interrupt-controller
93  - "#interrupt-cells"
94  - power-domains
95  - clocks
96  - clock-names
97  - "#address-cells"
98  - "#size-cells"
99  - ranges
100
101patternProperties:
102  "^display-controller@[1-9a-f][0-9a-f]*$":
103    type: object
104    additionalProperties: true
105    properties:
106      compatible:
107        contains:
108          const: qcom,mdp5
109
110  "^dsi@[1-9a-f][0-9a-f]*$":
111    type: object
112    additionalProperties: true
113    properties:
114      compatible:
115        contains:
116          const: qcom,mdss-dsi-ctrl
117
118  "^phy@[1-9a-f][0-9a-f]*$":
119    type: object
120    additionalProperties: true
121    properties:
122      compatible:
123        enum:
124          - qcom,dsi-phy-14nm
125          - qcom,dsi-phy-14nm-660
126          - qcom,dsi-phy-14nm-8953
127          - qcom,dsi-phy-20nm
128          - qcom,dsi-phy-28nm-hpm
129          - qcom,dsi-phy-28nm-lp
130          - qcom,hdmi-phy-8084
131          - qcom,hdmi-phy-8660
132          - qcom,hdmi-phy-8960
133          - qcom,hdmi-phy-8974
134          - qcom,hdmi-phy-8996
135
136  "^hdmi-tx@[1-9a-f][0-9a-f]*$":
137    type: object
138    additionalProperties: true
139    properties:
140      compatible:
141        enum:
142          - qcom,hdmi-tx-8084
143          - qcom,hdmi-tx-8660
144          - qcom,hdmi-tx-8960
145          - qcom,hdmi-tx-8974
146          - qcom,hdmi-tx-8994
147          - qcom,hdmi-tx-8996
148
149additionalProperties: false
150
151examples:
152  - |
153    #include <dt-bindings/clock/qcom,gcc-msm8916.h>
154    #include <dt-bindings/interrupt-controller/arm-gic.h>
155    display-subsystem@1a00000 {
156        compatible = "qcom,mdss";
157        reg = <0x1a00000 0x1000>,
158              <0x1ac8000 0x3000>;
159        reg-names = "mdss_phys", "vbif_phys";
160
161        power-domains = <&gcc MDSS_GDSC>;
162
163        clocks = <&gcc GCC_MDSS_AHB_CLK>,
164                 <&gcc GCC_MDSS_AXI_CLK>,
165                 <&gcc GCC_MDSS_VSYNC_CLK>;
166        clock-names = "iface",
167                      "bus",
168                      "vsync";
169
170        interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
171
172        interrupt-controller;
173        #interrupt-cells = <1>;
174
175        #address-cells = <1>;
176        #size-cells = <1>;
177        ranges;
178
179        display-controller@1a01000 {
180            compatible = "qcom,msm8916-mdp5", "qcom,mdp5";
181            reg = <0x01a01000 0x89000>;
182            reg-names = "mdp_phys";
183
184            interrupt-parent = <&mdss>;
185            interrupts = <0>;
186
187            clocks = <&gcc GCC_MDSS_AHB_CLK>,
188                     <&gcc GCC_MDSS_AXI_CLK>,
189                     <&gcc GCC_MDSS_MDP_CLK>,
190                     <&gcc GCC_MDSS_VSYNC_CLK>;
191            clock-names = "iface",
192                      "bus",
193                      "core",
194                      "vsync";
195
196            iommus = <&apps_iommu 4>;
197
198            ports {
199                #address-cells = <1>;
200                #size-cells = <0>;
201
202                port@0 {
203                    reg = <0>;
204                    mdp5_intf1_out: endpoint {
205                        remote-endpoint = <&dsi0_in>;
206                    };
207                };
208            };
209        };
210    };
211...
212