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,msm8998-dpu.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Display DPU dt properties for MSM8998 target
8
9maintainers:
10  - AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
11
12$ref: /schemas/display/msm/dpu-common.yaml#
13
14properties:
15  compatible:
16    items:
17      - const: qcom,msm8998-dpu
18
19  reg:
20    items:
21      - description: Address offset and size for mdp register set
22      - description: Address offset and size for regdma register set
23      - description: Address offset and size for vbif register set
24      - description: Address offset and size for non-realtime vbif register set
25
26  reg-names:
27    items:
28      - const: mdp
29      - const: regdma
30      - const: vbif
31      - const: vbif_nrt
32
33  clocks:
34    items:
35      - description: Display ahb clock
36      - description: Display axi clock
37      - description: Display mem-noc clock
38      - description: Display core clock
39      - description: Display vsync clock
40
41  clock-names:
42    items:
43      - const: iface
44      - const: bus
45      - const: mnoc
46      - const: core
47      - const: vsync
48
49unevaluatedProperties: false
50
51examples:
52  - |
53    #include <dt-bindings/clock/qcom,mmcc-msm8998.h>
54    #include <dt-bindings/power/qcom-rpmpd.h>
55
56    display-controller@c901000 {
57        compatible = "qcom,msm8998-dpu";
58        reg = <0x0c901000 0x8f000>,
59              <0x0c9a8e00 0xf0>,
60              <0x0c9b0000 0x2008>,
61              <0x0c9b8000 0x1040>;
62        reg-names = "mdp", "regdma", "vbif", "vbif_nrt";
63
64        clocks = <&mmcc MDSS_AHB_CLK>,
65                 <&mmcc MDSS_AXI_CLK>,
66                 <&mmcc MNOC_AHB_CLK>,
67                 <&mmcc MDSS_MDP_CLK>,
68                 <&mmcc MDSS_VSYNC_CLK>;
69        clock-names = "iface", "bus", "mnoc", "core", "vsync";
70
71        interrupt-parent = <&mdss>;
72        interrupts = <0>;
73        operating-points-v2 = <&mdp_opp_table>;
74        power-domains = <&rpmpd MSM8998_VDDMX>;
75
76        ports {
77            #address-cells = <1>;
78            #size-cells = <0>;
79
80            port@0 {
81                reg = <0>;
82                endpoint {
83                    remote-endpoint = <&dsi0_in>;
84                };
85            };
86
87            port@1 {
88                reg = <1>;
89                endpoint {
90                    remote-endpoint = <&dsi1_in>;
91                };
92            };
93        };
94    };
95...
96