Skip to content

Commit 5f10bbf

Browse files
Marek Vasutgeertu
authored andcommitted
arm64: dts: renesas: Simplify AA1024XD12 display DTO
Move all differences into panel-aa104xd12.dtsi, rename OF_GRAPH links to generic lvds_panel_out and lvds_panel_in names, and parametrize the LVDS output in use using RENESAS_LVDS_OUTPUT macro. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/20260504143751.42753-1-marek.vasut+renesas@mailbox.org Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 62169c1 commit 5f10bbf

3 files changed

Lines changed: 47 additions & 83 deletions

File tree

arch/arm64/boot/dts/renesas/draak-ebisu-panel-aa104xd12.dtso

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,5 @@
66
* Copyright 2021 Ideas on Board Oy
77
*/
88

9-
/dts-v1/;
10-
/plugin/;
11-
12-
&{/} {
9+
#define RENESAS_LVDS_OUTPUT lvds1
1310
#include "panel-aa104xd12.dtsi"
14-
};
15-
16-
&{/panel} {
17-
backlight = <&backlight>;
18-
19-
port {
20-
panel_in: endpoint {
21-
remote-endpoint = <&lvds1_out>;
22-
};
23-
};
24-
};
25-
26-
&lvds1 {
27-
status = "okay";
28-
29-
ports {
30-
#address-cells = <1>;
31-
#size-cells = <0>;
32-
33-
port@1 {
34-
reg = <1>;
35-
36-
lvds1_out: endpoint {
37-
remote-endpoint = <&panel_in>;
38-
};
39-
};
40-
};
41-
};

arch/arm64/boot/dts/renesas/panel-aa104xd12.dtsi

Lines changed: 45 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,52 @@
55
* Copyright (C) 2014 Renesas Electronics Corp.
66
*/
77

8-
panel {
9-
compatible = "mitsubishi,aa104xd12", "panel-lvds";
10-
11-
width-mm = <210>;
12-
height-mm = <158>;
13-
data-mapping = "jeida-18";
14-
15-
panel-timing {
16-
/* 1024x768 @65Hz */
17-
clock-frequency = <65000000>;
18-
hactive = <1024>;
19-
vactive = <768>;
20-
hsync-len = <136>;
21-
hfront-porch = <20>;
22-
hback-porch = <160>;
23-
vfront-porch = <3>;
24-
vback-porch = <29>;
25-
vsync-len = <6>;
8+
/dts-v1/;
9+
/plugin/;
10+
11+
&{/} {
12+
panel {
13+
compatible = "mitsubishi,aa104xd12", "panel-lvds";
14+
backlight = <&backlight>;
15+
16+
width-mm = <210>;
17+
height-mm = <158>;
18+
data-mapping = "jeida-18";
19+
20+
panel-timing {
21+
/* 1024x768 @65Hz */
22+
clock-frequency = <65000000>;
23+
hactive = <1024>;
24+
vactive = <768>;
25+
hsync-len = <136>;
26+
hfront-porch = <20>;
27+
hback-porch = <160>;
28+
vfront-porch = <3>;
29+
vback-porch = <29>;
30+
vsync-len = <6>;
31+
};
32+
33+
port {
34+
lvds_panel_in: endpoint {
35+
remote-endpoint = <&lvds_panel_out>;
36+
};
37+
};
2638
};
39+
};
40+
41+
&RENESAS_LVDS_OUTPUT {
42+
status = "okay";
43+
44+
ports {
45+
#address-cells = <1>;
46+
#size-cells = <0>;
47+
48+
port@1 {
49+
reg = <1>;
2750

28-
port {
51+
lvds_panel_out: endpoint {
52+
remote-endpoint = <&lvds_panel_in>;
53+
};
54+
};
2955
};
3056
};

arch/arm64/boot/dts/renesas/salvator-panel-aa104xd12.dtso

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,5 @@
66
* Copyright 2021 Ideas on Board Oy
77
*/
88

9-
/dts-v1/;
10-
/plugin/;
11-
12-
&{/} {
9+
#define RENESAS_LVDS_OUTPUT lvds0
1310
#include "panel-aa104xd12.dtsi"
14-
};
15-
16-
&{/panel} {
17-
backlight = <&backlight>;
18-
19-
port {
20-
panel_in: endpoint {
21-
remote-endpoint = <&lvds0_out>;
22-
};
23-
};
24-
};
25-
26-
&lvds0 {
27-
status = "okay";
28-
29-
ports {
30-
#address-cells = <1>;
31-
#size-cells = <0>;
32-
33-
port@1 {
34-
reg = <1>;
35-
36-
lvds0_out: endpoint {
37-
remote-endpoint = <&panel_in>;
38-
};
39-
};
40-
};
41-
};

0 commit comments

Comments
 (0)