diff --git a/boards/m5stack/m5stack_cores3/Kconfig.m5stack_cores3 b/boards/m5stack/m5stack_cores3/Kconfig.m5stack_cores3 index 990925a96bb900..ed0ae9d6ad52d4 100644 --- a/boards/m5stack/m5stack_cores3/Kconfig.m5stack_cores3 +++ b/boards/m5stack/m5stack_cores3/Kconfig.m5stack_cores3 @@ -7,3 +7,10 @@ config BOARD_M5STACK_CORES3 select SOC_ESP32S3 select SOC_ESP32S3_PROCPU if BOARD_M5STACK_CORES3_ESP32S3_PROCPU select SOC_ESP32S3_APPCPU if BOARD_M5STACK_CORES3_ESP32S3_APPCPU + +if SOC_ESP32S3_PROCPU + +config INPUT_FT5336_INTERRUPT + default y if INPUT + +endif # SOC_ESP32S3_PROCPU diff --git a/boards/m5stack/m5stack_cores3/m5stack_cores3_procpu.dts b/boards/m5stack/m5stack_cores3/m5stack_cores3_procpu.dts index 3efd81c939ee02..8d0029ee89f914 100644 --- a/boards/m5stack/m5stack_cores3/m5stack_cores3_procpu.dts +++ b/boards/m5stack/m5stack_cores3/m5stack_cores3_procpu.dts @@ -20,6 +20,7 @@ zephyr,code-partition = &slot0_partition; zephyr,rtc = &pfc8563_rtc; zephyr,bt-hci = &esp32_bt_hci; + zephyr,touch = &ft6336_toucn; }; aliases { @@ -30,6 +31,11 @@ sdhc0 = &sd0; led0 = &axp2101_led; }; + + lvgl_pointer { + compatible = "zephyr,lvgl-pointer-input"; + input = <&ft6336_touch>; + }; }; &usb_serial { @@ -75,6 +81,14 @@ }; }; + ft6336_touch: ft5336@38 { + compatible = "focaltech,ft5336"; + reg = <0x38>; + status = "okay"; + int-gpios = <&aw9523b_gpio 10 GPIO_ACTIVE_LOW>; + reset-gpios = <&aw9523b_gpio 0 GPIO_ACTIVE_LOW>; + }; + pfc8563_rtc: pfc8563@51 { compatible = "nxp,pcf8563"; reg = <0x51>;