Skip to content

Commit

Permalink
boards: Add lvgl pointer support on m5stack_core2
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit 147109a)

Original-Signed-off-by: Martin Kiepfer <m.kiepfer@teleschirm.org>
GitOrigin-RevId: 147109a
Change-Id: I39eca60c7543df835e947a51e6e2f65767067160
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5407196
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Commit-Queue: Fabio Baltieri <fabiobaltieri@google.com>
  • Loading branch information
Martin Kiepfer authored and Chromeos LUCI committed Mar 29, 2024
1 parent e2375d2 commit b699229
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
5 changes: 1 addition & 4 deletions boards/xtensa/m5stack_core2/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions boards/xtensa/m5stack_core2/m5stack_core2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand All @@ -42,6 +41,11 @@
label = "Power LED";
};
};

lvgl_pointer {
compatible = "zephyr,lvgl-pointer-input";
input = <&ft5336_touch>;
};
};

&cpu0 {
Expand Down Expand Up @@ -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";
};
};
};

Expand Down

0 comments on commit b699229

Please sign in to comment.