diff --git a/boards/xtensa/m5stack_core2/Kconfig.defconfig b/boards/xtensa/m5stack_core2/Kconfig.defconfig index 278ef95cd88..2e68d5614d0 100644 --- a/boards/xtensa/m5stack_core2/Kconfig.defconfig +++ b/boards/xtensa/m5stack_core2/Kconfig.defconfig @@ -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 diff --git a/boards/xtensa/m5stack_core2/m5stack_core2.dts b/boards/xtensa/m5stack_core2/m5stack_core2.dts index 0f804d5926b..2e70e5b6405 100644 --- a/boards/xtensa/m5stack_core2/m5stack_core2.dts +++ b/boards/xtensa/m5stack_core2/m5stack_core2.dts @@ -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"; - }; }; }; diff --git a/samples/subsys/display/lvgl/boards/m5stack_core2.conf b/samples/subsys/display/lvgl/boards/m5stack_core2.conf new file mode 100644 index 00000000000..1ac2b1c55c9 --- /dev/null +++ b/samples/subsys/display/lvgl/boards/m5stack_core2.conf @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: Apache-2.0 + +CONFIG_MAIN_STACK_SIZE=4096