boards: Add lvgl pointer support on m5stack_core2

Added lvgl-pointer definition in devicetree, to enable
touch-support in lvgl applications.
Kscan support has been removed from m5stack_core2 as this was just a
temporary thing.
Has been tested with lvgl hello world sample.

Signed-off-by: Martin Kiepfer <m.kiepfer@teleschirm.org>
This commit is contained in:
Martin Kiepfer 2023-09-09 08:00:30 +02:00 committed by Carles Cufí
commit 147109adb0
3 changed files with 10 additions and 10 deletions

View file

@ -39,11 +39,8 @@ config GPIO_HOGS_INIT_PRIORITY
config INPUT_FT5336_INTERRUPT
default y if INPUT
config KSCAN
default y if DISPLAY
config INPUT
default y if KSCAN
default y
config LV_COLOR_16_SWAP
default y if LVGL

View file

@ -30,7 +30,6 @@
zephyr,shell-uart = &uart0;
zephyr,flash = &flash0;
zephyr,display = &ili9342c;
zephyr,keyboard-scan = &kscan_input;
zephyr,code-partition = &slot0_partition;
zephyr,rtc = &pfc8563_rtc;
};
@ -42,6 +41,11 @@
label = "Power LED";
};
};
lvgl_pointer {
compatible = "zephyr,lvgl-pointer-input";
input = <&ft5336_touch>;
};
};
&cpu0 {
@ -154,14 +158,10 @@
};
};
ft5336@38 {
ft5336_touch: ft5336@38 {
compatible = "focaltech,ft5336";
reg = <0x38>;
int-gpios = <&gpio1 7 0>;
kscan_input: kscan-input {
compatible = "zephyr,kscan-input";
};
};
};

View file

@ -0,0 +1,3 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_MAIN_STACK_SIZE=4096