Skip to content

Commit 8cb7974

Browse files
author
kun_liu
committed
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 264f771 commit 8cb7974

File tree

3 files changed

+82
-0
lines changed

3 files changed

+82
-0
lines changed

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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5887,6 +5887,18 @@ 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+
5901+
58905902
Name: vc4-kms-dsi-waveshare-800x480
58915903
Info: Enable the Waveshare 4.3" 800x480 DSI screen.
58925904
It tries to look like the Pi 7" display, but won't accept some of the
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*
2+
* Device Tree overlay for Waveshare 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+
reset-gpios = <&gpio 47 1>; // Dummy GPIO , Unused or change
29+
port {
30+
panel_in: endpoint {
31+
remote-endpoint = <&dsi_out>;
32+
};
33+
};
34+
};
35+
};
36+
};
37+
38+
i2c_frag: fragment@1 {
39+
target = <&i2c_csi_dsi>;
40+
i2cbus: __overlay__ {
41+
#address-cells = <1>;
42+
#size-cells = <0>;
43+
status = "okay";
44+
};
45+
};
46+
47+
fragment@2 {
48+
target = <&i2c0if>;
49+
__overlay__ {
50+
status = "okay";
51+
};
52+
};
53+
54+
fragment@3 {
55+
target = <&i2c0mux>;
56+
__overlay__ {
57+
status = "okay";
58+
};
59+
};
60+
61+
__overrides__ {
62+
tl034wvs03 = <&panel>, "compatible=tdo,4.0-dsi-tl034wvs03";
63+
tl040wvs17 = <&panel>, "compatible=tdo,4.0-dsi-tl040wvs17";
64+
tl040hds31 = <&panel>, "compatible=tdo,4.0-dsi-tl040hds31";
65+
rotation = <&panel>, "rotation:0";
66+
dsi0 = <&dsi_frag>, "target:0=",<&dsi0>,
67+
<&i2c_frag>, "target:0=",<&i2c_csi_dsi0>;
68+
};
69+
};

0 commit comments

Comments
 (0)