Skip to content

Commit d10a3f0

Browse files
kun_liupelwell
authored andcommitted
ARM: dts: overlays: add vc4-kms-dsi-tdo-panel
__overrides__ parameter can be add in config.txt for customers. README describe the dts config info. Signed-off-by: kun_liu <kun_liu@shtdo.com>
1 parent 50afa0b commit d10a3f0

3 files changed

Lines changed: 92 additions & 0 deletions

File tree

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
343343
vc4-kms-dsi-ili9881-7inch.dtbo \
344344
vc4-kms-dsi-lt070me05000.dtbo \
345345
vc4-kms-dsi-lt070me05000-v2.dtbo \
346+
vc4-kms-dsi-tdo-panel.dtbo \
346347
vc4-kms-dsi-waveshare-800x480.dtbo \
347348
vc4-kms-dsi-waveshare-panel.dtbo \
348349
vc4-kms-dsi-waveshare-panel-v2.dtbo \

arch/arm/boot/dts/overlays/README

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5887,6 +5887,20 @@ Load: dtoverlay=vc4-kms-dsi-lt070me05000-v2
58875887
Params: <None>
58885888

58895889

5890+
Name: vc4-kms-dsi-tdo-panel
5891+
Info: Enable the Tdo DSI screen,keep adding.
5892+
Requires vc4-kms-v3d to be loaded.
5893+
Load: dtoverlay=vc4-kms-dsi-tdo-panel,<param>=<val>
5894+
Params: tl034wvs03 4.0" 480x480 2lane
5895+
tl040wvs17 4.0" 480x480 2lane
5896+
tl040hds31 4.0" 720x720 2lane
5897+
rotation Display rotation {0,90,180,270}
5898+
dsi0 Use DSI0 and i2c_csi_dsi0 (rather than
5899+
the default DSI1 and i2c_csi_dsi).
5900+
reset_pin GPIO pin for RESET (required if reset
5901+
functionality is needed)
5902+
5903+
58905904
Name: vc4-kms-dsi-waveshare-800x480
58915905
Info: Enable the Waveshare 4.3" 800x480 DSI screen.
58925906
It tries to look like the Pi 7" display, but won't accept some of the
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
/*
2+
* Device Tree overlay for TDO DSI Touchscreens
3+
*
4+
*/
5+
6+
/dts-v1/;
7+
/plugin/;
8+
9+
/ {
10+
compatible = "brcm,bcm2835";
11+
12+
dsi_frag: fragment@0 {
13+
target = <&dsi1>;
14+
__overlay__ {
15+
#address-cells = <1>;
16+
#size-cells = <0>;
17+
status = "okay";
18+
port {
19+
dsi_out: endpoint {
20+
remote-endpoint = <&panel_in>;
21+
};
22+
};
23+
24+
panel: panel_dsi1@0 {
25+
compatible = "tdo,4.0-dsi-tl040wvs17";
26+
status = "okay";
27+
reg = <0>;
28+
port {
29+
panel_in: endpoint {
30+
remote-endpoint = <&dsi_out>;
31+
};
32+
};
33+
};
34+
};
35+
};
36+
37+
i2c_frag: fragment@1 {
38+
target = <&i2c_csi_dsi>;
39+
i2cbus: __overlay__ {
40+
#address-cells = <1>;
41+
#size-cells = <0>;
42+
status = "okay";
43+
};
44+
};
45+
46+
fragment@2 {
47+
target = <&i2c0if>;
48+
__overlay__ {
49+
status = "okay";
50+
};
51+
};
52+
53+
fragment@3 {
54+
target = <&i2c0mux>;
55+
__overlay__ {
56+
status = "okay";
57+
};
58+
};
59+
60+
fragment@4 {
61+
target = <&panel>;
62+
reset_gpio_frag: __dormant__ {
63+
reset-gpios = <&gpio 25 1>;
64+
};
65+
};
66+
67+
__overrides__ {
68+
tl034wvs03 = <&panel>, "compatible=tdo,4.0-dsi-tl034wvs03";
69+
tl040wvs17 = <&panel>, "compatible=tdo,4.0-dsi-tl040wvs17";
70+
tl040hds31 = <&panel>, "compatible=tdo,4.0-dsi-tl040hds31";
71+
rotation = <&panel>, "rotation:0";
72+
dsi0 = <&dsi_frag>, "target:0=",<&dsi0>,
73+
<&i2c_frag>, "target:0=",<&i2c_csi_dsi0>;
74+
reset_pin = <0>, "+4",
75+
<&reset_gpio_frag>, "reset-gpios:4";
76+
};
77+
};

0 commit comments

Comments
 (0)