Skip to content

Commit 90f536e

Browse files
author
Waveshare_Team
committed
arch/arm/boot/dts/overlays : Add Waveshare DSI-TOUCH series panels Device Tree support.
Add the device tree for the Waveshare DSI-TOUCH series panels. Signed-off-by: Waveshare_Team <[email protected]>
1 parent b70b5e8 commit 90f536e

File tree

3 files changed

+112
-0
lines changed

3 files changed

+112
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
326326
vc4-kms-dsi-lt070me05000-v2.dtbo \
327327
vc4-kms-dsi-waveshare-800x480.dtbo \
328328
vc4-kms-dsi-waveshare-panel.dtbo \
329+
vc4-kms-dsi-waveshare-panel-v2.dtbo \
329330
vc4-kms-kippah-7inch.dtbo \
330331
vc4-kms-v3d.dtbo \
331332
vc4-kms-v3d-pi4.dtbo \

arch/arm/boot/dts/overlays/README

+19
Original file line numberDiff line numberDiff line change
@@ -5411,6 +5411,25 @@ Params: 2_8_inch 2.8" 480x640
54115411
the default DSI1 and i2c_csi_dsi).
54125412

54135413

5414+
Name: vc4-kms-dsi-waveshare-panel-v2
5415+
Info: Enable the Waveshare DSI-TOUCH series screen
5416+
Requires vc4-kms-v3d to be loaded.
5417+
Load: dtoverlay=vc4-kms-dsi-waveshare-panel-v2,<param>
5418+
Params: 5_0_inch_a 5.0" 720x1280 2lane
5419+
5_5_inch_a 5.5" 720x1280 2lane
5420+
7_0_inch_b 7.0" B 720x1280 2lane
5421+
8_0_inch_a 8.0" 800x1280 2lane
5422+
8_0_inch_a_4lane 8.0" 800x1280 4lane
5423+
10_1_inch_a 10.1" 800x1280 2lane
5424+
10_1_inch_a_4lane 10.1" 800x1280 4lane
5425+
disable_touch Disable the touch controller
5426+
invx Touchscreen inverted x axis
5427+
invy Touchscreen inverted y axis
5428+
swapxy Touchscreen swapped x y axis
5429+
dsi0 Use DSI0 and i2c_csi_dsi0 (rather than
5430+
the default DSI1 and i2c_csi_dsi).
5431+
5432+
54145433
Name: vc4-kms-kippah-7inch
54155434
Info: This overlay is now deprecated - see vc4-kms-dpi-panel,kippah-7inch
54165435
Load: <Deprecated>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
/*
2+
* vc4-kms-dsi-ili9881-5inch-overlay.dts
3+
*/
4+
5+
/dts-v1/;
6+
/plugin/;
7+
8+
#include <dt-bindings/gpio/gpio.h>
9+
10+
/ {
11+
compatible = "brcm,bcm2835";
12+
13+
i2c_frag: fragment@0 {
14+
target = <&i2c_csi_dsi>;
15+
__overlay__ {
16+
#address-cells = <1>;
17+
#size-cells = <0>;
18+
status = "okay";
19+
20+
display_mcu: display_mcu@45 {
21+
compatible = "waveshare,touchscreen-panel-regulator";
22+
reg = <0x45>;
23+
gpio-controller;
24+
#gpio-cells = <2>;
25+
};
26+
27+
touch: goodix@5d {
28+
compatible = "goodix,gt9271";
29+
reg = <0x5d>;
30+
reset-gpio = <&display_mcu 9 GPIO_ACTIVE_HIGH>;
31+
};
32+
};
33+
};
34+
35+
dsi_frag: fragment@1 {
36+
target = <&dsi1>;
37+
__overlay__ {
38+
#address-cells = <1>;
39+
#size-cells = <0>;
40+
status = "okay";
41+
42+
port {
43+
dsi_out: endpoint {
44+
remote-endpoint = <&panel_in>;
45+
};
46+
};
47+
48+
dsi_panel: dsi_panel@0 {
49+
reg = <0>;
50+
compatible = "waveshare,10.1-dsi-touch-a";
51+
reset-gpio = <&display_mcu 1 GPIO_ACTIVE_HIGH>;
52+
backlight = <&display_mcu>;
53+
54+
port {
55+
panel_in: endpoint {
56+
remote-endpoint = <&dsi_out>;
57+
};
58+
};
59+
};
60+
};
61+
};
62+
63+
fragment@2 {
64+
target = <&i2c0if>;
65+
__overlay__ {
66+
status = "okay";
67+
};
68+
};
69+
70+
fragment@3 {
71+
target = <&i2c0mux>;
72+
__overlay__ {
73+
status = "okay";
74+
};
75+
};
76+
77+
__overrides__ {
78+
5_0_inch_a = <&dsi_panel>, "compatible=waveshare,5.0-dsi-touch-a";
79+
5_5_inch_a = <&dsi_panel>, "compatible=waveshare,5.5-dsi-touch-a";
80+
7_0_inch_b = <&dsi_panel>, "compatible=waveshare,7.0-dsi-touch-b";
81+
8_0_inch_a = <&dsi_panel>, "compatible=waveshare,8.0-dsi-touch-a";
82+
8_0_inch_a_4lane = <&dsi_panel>, "compatible=waveshare,8.0-dsi-touch-a,4lane";
83+
10_1_inch_a = <&dsi_panel>, "compatible=waveshare,10.1-dsi-touch-a";
84+
10_1_inch_a_4lane = <&dsi_panel>, "compatible=waveshare,10.1-dsi-touch-a,4lane";
85+
disable_touch = <&touch>, "status=disabled";
86+
invx = <&touch>,"touchscreen-inverted-x?";
87+
invy = <&touch>,"touchscreen-inverted-y?";
88+
swapxy = <&touch>,"touchscreen-swapped-x-y?";
89+
dsi0 = <&dsi_frag>, "target:0=",<&dsi0>,
90+
<&i2c_frag>, "target:0=",<&i2c_csi_dsi0>;
91+
};
92+
};

0 commit comments

Comments
 (0)