Skip to content

Commit 116ec2c

Browse files
faxe1008carlescufi
authored andcommitted
samples: subsys: display: lvgl: Use input-lvgl for touch input
Changes all board specific configurations to use the new zephyr,lvgl-pointer-input compatible. The kscan_input node in the boards remains to have downstream backwards compatibility. Signed-off-by: Fabian Blatz <[email protected]>
1 parent 170faaf commit 116ec2c

File tree

12 files changed

+33
-13
lines changed

12 files changed

+33
-13
lines changed

boards/arm/stm32f746g_disco/stm32f746g_disco.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
status = "okay";
9898
clock-frequency = <I2C_BITRATE_FAST>;
9999

100-
ft5336@38 {
100+
ft5336: ft5336@38 {
101101
compatible = "focaltech,ft5336";
102102
reg = <0x38>;
103103
int-gpios = <&gpioi 13 0>;

boards/arm/stm32h7b3i_dk/stm32h7b3i_dk.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
clock-frequency = <I2C_BITRATE_FAST>;
132132
status = "okay";
133133

134-
ft5336@38 {
134+
ft5336: ft5336@38 {
135135
compatible = "focaltech,ft5336";
136136
reg = <0x38>;
137137
int-gpios = <&gpioh 2 0>;
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
CONFIG_LV_COLOR_DEPTH_32=y
22
CONFIG_GPIO=y
3-
CONFIG_KSCAN=y
43
CONFIG_INPUT=y
5-
CONFIG_LV_Z_POINTER_KSCAN=y

samples/subsys/display/lvgl/boards/native_posix.overlay

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
zephyr,code = <INPUT_KEY_0>;
2020
};
2121
};
22+
23+
lvgl_pointer_input {
24+
status = "okay";
25+
compatible = "zephyr,lvgl-pointer-input";
26+
input = <&input_sdl_touch>;
27+
};
2228
};
2329

2430
&gpio0 {
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
CONFIG_LV_COLOR_DEPTH_32=y
22
CONFIG_GPIO=y
3-
CONFIG_KSCAN=y
43
CONFIG_INPUT=y
5-
CONFIG_LV_Z_POINTER_KSCAN=y
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
CONFIG_LV_COLOR_DEPTH_32=y
22
CONFIG_GPIO=y
3-
CONFIG_KSCAN=y
43
CONFIG_INPUT=y
5-
CONFIG_LV_Z_POINTER_KSCAN=y
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
CONFIG_LV_COLOR_DEPTH_32=y
22
CONFIG_GPIO=y
3-
CONFIG_KSCAN=y
43
CONFIG_INPUT=y
5-
CONFIG_LV_Z_POINTER_KSCAN=y

samples/subsys/display/lvgl/boards/stm32f746g_disco.conf

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Copyright (c) 2023, Fabian Blatz <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
lvgl_pointer_input {
9+
compatible = "zephyr,lvgl-pointer-input";
10+
input = <&ft5336>;
11+
};
12+
};

samples/subsys/display/lvgl/boards/stm32h7b3i_dk.conf

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)