Skip to content

Commit 9410872

Browse files
committed
dt-bindings: display/msm: split dpu-msm8998 into DPU and MDSS parts
In order to make the schema more readable, split dpu-msm8998 into the DPU and MDSS parts, each one describing just a single device binding. Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/508388/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 2abfd6a commit 9410872

File tree

2 files changed

+101
-41
lines changed

2 files changed

+101
-41
lines changed
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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+
7+
title: Qualcomm Display DPU dt properties for MSM8998 target
8+
9+
maintainers:
10+
- AngeloGioacchino Del Regno <[email protected]>
11+
12+
$ref: /schemas/display/msm/dpu-common.yaml#
13+
14+
properties:
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+
49+
unevaluatedProperties: false
50+
51+
examples:
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+
...

Documentation/devicetree/bindings/display/msm/dpu-msm8998.yaml renamed to Documentation/devicetree/bindings/display/msm/qcom,msm8998-mdss.yaml

Lines changed: 6 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
22
%YAML 1.2
33
---
4-
$id: http://devicetree.org/schemas/display/msm/dpu-msm8998.yaml#
4+
$id: http://devicetree.org/schemas/display/msm/qcom,msm8998-mdss.yaml#
55
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

7-
title: Qualcomm Display DPU dt properties for MSM8998 target
7+
title: Qualcomm MSM8998 Display MDSS
88

99
maintainers:
1010
- AngeloGioacchino Del Regno <[email protected]>
1111

12-
description: |
12+
description:
1313
Device tree bindings for MSM Mobile Display Subsystem(MDSS) that encapsulates
1414
sub-blocks like DPU display controller, DSI and DP interfaces etc. Device tree
15-
bindings of MDSS and DPU are mentioned for MSM8998 target.
15+
bindings of MDSS are mentioned for MSM8998 target.
1616

1717
$ref: /schemas/display/msm/mdss-common.yaml#
1818

@@ -39,44 +39,9 @@ properties:
3939
patternProperties:
4040
"^display-controller@[0-9a-f]+$":
4141
type: object
42-
$ref: /schemas/display/msm/dpu-common.yaml#
43-
description: Node containing the properties of DPU.
44-
unevaluatedProperties: false
45-
4642
properties:
4743
compatible:
48-
items:
49-
- const: qcom,msm8998-dpu
50-
51-
reg:
52-
items:
53-
- description: Address offset and size for mdp register set
54-
- description: Address offset and size for regdma register set
55-
- description: Address offset and size for vbif register set
56-
- description: Address offset and size for non-realtime vbif register set
57-
58-
reg-names:
59-
items:
60-
- const: mdp
61-
- const: regdma
62-
- const: vbif
63-
- const: vbif_nrt
64-
65-
clocks:
66-
items:
67-
- description: Display ahb clock
68-
- description: Display axi clock
69-
- description: Display mem-noc clock
70-
- description: Display core clock
71-
- description: Display vsync clock
72-
73-
clock-names:
74-
items:
75-
- const: iface
76-
- const: bus
77-
- const: mnoc
78-
- const: core
79-
- const: vsync
44+
const: qcom,msm8998-dpu
8045

8146
unevaluatedProperties: false
8247

@@ -86,7 +51,7 @@ examples:
8651
#include <dt-bindings/interrupt-controller/arm-gic.h>
8752
#include <dt-bindings/power/qcom-rpmpd.h>
8853
89-
mdss: display-subsystem@c900000 {
54+
display-subsystem@c900000 {
9055
compatible = "qcom,msm8998-mdss";
9156
reg = <0x0c900000 0x1000>;
9257
reg-names = "mdss";

0 commit comments

Comments
 (0)