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,sc7180-dpu.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Display DPU on SC7180
8
9maintainers:
10  - Krishna Manikandan <quic_mkrishn@quicinc.com>
11
12$ref: /schemas/display/msm/dpu-common.yaml#
13
14properties:
15  compatible:
16    const: qcom,sc7180-dpu
17
18  reg:
19    items:
20      - description: Address offset and size for mdp register set
21      - description: Address offset and size for vbif register set
22
23  reg-names:
24    items:
25      - const: mdp
26      - const: vbif
27
28  clocks:
29    items:
30      - description: Display hf axi clock
31      - description: Display ahb clock
32      - description: Display rotator clock
33      - description: Display lut clock
34      - description: Display core clock
35      - description: Display vsync clock
36
37  clock-names:
38    items:
39      - const: bus
40      - const: iface
41      - const: rot
42      - const: lut
43      - const: core
44      - const: vsync
45
46required:
47  - compatible
48  - reg
49  - reg-names
50  - clocks
51  - clock-names
52
53unevaluatedProperties: false
54
55examples:
56  - |
57    #include <dt-bindings/clock/qcom,dispcc-sc7180.h>
58    #include <dt-bindings/clock/qcom,gcc-sc7180.h>
59    #include <dt-bindings/power/qcom-rpmpd.h>
60
61    display-controller@ae01000 {
62        compatible = "qcom,sc7180-dpu";
63        reg = <0x0ae01000 0x8f000>,
64              <0x0aeb0000 0x2008>;
65
66        reg-names = "mdp", "vbif";
67
68        clocks = <&gcc GCC_DISP_HF_AXI_CLK>,
69                 <&dispcc DISP_CC_MDSS_AHB_CLK>,
70                 <&dispcc DISP_CC_MDSS_ROT_CLK>,
71                 <&dispcc DISP_CC_MDSS_MDP_LUT_CLK>,
72                 <&dispcc DISP_CC_MDSS_MDP_CLK>,
73                 <&dispcc DISP_CC_MDSS_VSYNC_CLK>;
74        clock-names = "bus", "iface", "rot", "lut", "core",
75                      "vsync";
76
77        interrupt-parent = <&mdss>;
78        interrupts = <0>;
79        power-domains = <&rpmhpd SC7180_CX>;
80        operating-points-v2 = <&mdp_opp_table>;
81
82        ports {
83            #address-cells = <1>;
84            #size-cells = <0>;
85
86            port@0 {
87                reg = <0>;
88                endpoint {
89                    remote-endpoint = <&dsi0_in>;
90                };
91            };
92
93            port@2 {
94                reg = <2>;
95                endpoint {
96                    remote-endpoint = <&dp_in>;
97                };
98            };
99        };
100    };
101...
102