Skip to content

Commit a231354

Browse files
Waveshare_Teampelwell
authored andcommitted
arch/arm/boot/dts/overlays : Extend existing Waveshare DSI-TOUCH panel device tree support
Added support for: A) 3.4-DSI-TOUCH-C B) 4-DSI-TOUCH-C C) 8-DSI-TOUCH-A D) 9-DSI-TOUCH-B E) 10.1-DSI-TOUCH-B F) 12.3-DSI-TOUCH-A Signed-off-by: Waveshare_Team <support@waveshare.com>
1 parent eca54cb commit a231354

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5691,14 +5691,22 @@ Name: vc4-kms-dsi-waveshare-panel-v2
56915691
Info: Enable the Waveshare DSI-TOUCH series screen
56925692
Requires vc4-kms-v3d to be loaded.
56935693
Load: dtoverlay=vc4-kms-dsi-waveshare-panel-v2,<param>
5694-
Params: 5_0_inch_a 5.0" 720x1280 2lane
5694+
Params: 3_4_inch_c 3.4" 800x800 2lane
5695+
4_0_inch_c 4.0" 720x720 2lane
5696+
5_0_inch_a 5.0" 720x1280 2lane
56955697
5_5_inch_a 5.5" 720x1280 2lane
56965698
7_0_inch_a 7.0" A 720x1280 2lane
56975699
7_0_inch_b 7.0" B 720x1280 2lane
56985700
8_0_inch_a 8.0" 800x1280 2lane
56995701
8_0_inch_a_4lane 8.0" 800x1280 4lane
5702+
8_8_inch_a 8.8" 480x1920 2lane
5703+
9_0_inch_b 9.0" 720x1280 2lane
5704+
9_0_inch_b_4lane 9.0" 720x1280 4lane
57005705
10_1_inch_a 10.1" 800x1280 2lane
57015706
10_1_inch_a_4lane 10.1" 800x1280 4lane
5707+
10_1_inch_b 10.1" 720x1280 2lane
5708+
10_1_inch_b_4lane 10.1" 720x1280 4lane
5709+
12_3_inch_a_4lane 12.3" 720x1920 4lane
57025710
disable_touch Disable the touch controller
57035711
invx Touchscreen inverted x axis
57045712
invy Touchscreen inverted y axis

arch/arm/boot/dts/overlays/vc4-kms-dsi-waveshare-panel-v2-overlay.dts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
reg = <0>;
5151
compatible = "waveshare,10.1-dsi-touch-a";
5252
reset-gpio = <&display_mcu 1 GPIO_ACTIVE_HIGH>;
53+
iovcc-gpio = <&display_mcu 4 GPIO_ACTIVE_HIGH>;
54+
avdd-gpio = <&display_mcu 0 GPIO_ACTIVE_HIGH>;
5355
backlight = <&display_mcu>;
5456

5557
port {
@@ -76,14 +78,28 @@
7678
};
7779

7880
__overrides__ {
81+
3_4_inch_c = <&dsi_panel>, "compatible=waveshare,3.4-dsi-touch-c";
82+
4_0_inch_c = <&dsi_panel>, "compatible=waveshare,4.0-dsi-touch-c";
7983
5_0_inch_a = <&dsi_panel>, "compatible=waveshare,5.0-dsi-touch-a";
8084
5_5_inch_a = <&dsi_panel>, "compatible=waveshare,5.5-dsi-touch-a";
8185
7_0_inch_a = <&dsi_panel>, "compatible=waveshare,7.0-dsi-touch-a";
8286
7_0_inch_b = <&dsi_panel>, "compatible=waveshare,7.0-dsi-touch-b";
8387
8_0_inch_a = <&dsi_panel>, "compatible=waveshare,8.0-dsi-touch-a";
8488
8_0_inch_a_4lane = <&dsi_panel>, "compatible=waveshare,8.0-dsi-touch-a-4lane";
89+
8_8_inch_a = <&dsi_panel>, "compatible=waveshare,8.8-dsi-touch-a";
90+
9_0_inch_b = <&dsi_panel>, "compatible=waveshare,9.0-dsi-touch-b",
91+
<&touch>, "touchscreen-inverted-x";
92+
9_0_inch_b_4lane = <&dsi_panel>, "compatible=waveshare,9.0-dsi-touch-b,4lane",
93+
<&touch>, "touchscreen-inverted-x";
8594
10_1_inch_a = <&dsi_panel>, "compatible=waveshare,10.1-dsi-touch-a";
8695
10_1_inch_a_4lane = <&dsi_panel>, "compatible=waveshare,10.1-dsi-touch-a-4lane";
96+
10_1_inch_b = <&dsi_panel>, "compatible=waveshare,10.1-dsi-touch-b",
97+
<&touch>, "touchscreen-inverted-y";
98+
10_1_inch_b_4lane = <&dsi_panel>, "compatible=waveshare,10.1-dsi-touch-b,4lane",
99+
<&touch>, "touchscreen-inverted-y";
100+
12_3_inch_a_4lane = <&dsi_panel>, "compatible=waveshare,12.3-dsi-touch-a,4lane",
101+
<&touch>, "touchscreen-swapped-x-y",
102+
<&touch>, "touchscreen-inverted-y";
87103
disable_touch = <&touch>, "status=disabled";
88104
invx = <&touch>,"touchscreen-inverted-x?";
89105
invy = <&touch>,"touchscreen-inverted-y?";

0 commit comments

Comments
 (0)