boards: m5stack: cores3: Add FT6336 configuration

Adding FT6336 touchpanel controller configuration.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
TOKITA Hiroshi 2024-11-05 07:05:56 +09:00 committed by Benjamin Cabé
parent b0baeee03e
commit 85da246b1c
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,14 @@
# M5Stack CoreS3 board defconfig
# Copyright (c) 2024 TOKITA Hiroshi
# SPDX-License-Identifier: Apache-2.0
if BOARD_M5STACK_CORES3_ESP32S3_PROCPU || BOARD_M5STACK_CORES3_ESP32S3_PROCPU_SE
config INPUT_FT5336_INTERRUPT
default y if INPUT
config INPUT
default y
endif # BOARD_M5STACK_CORES3_ESP32S3_PROCPU || BOARD_M5STACK_CORES3_ESP32S3_PROCPU_SE

View File

@ -19,6 +19,7 @@
zephyr,code-partition = &slot0_partition;
zephyr,rtc = &bm8563_rtc;
zephyr,bt-hci = &esp32_bt_hci;
zephyr,touch = &ft6336_touch;
};
aliases {
@ -31,6 +32,11 @@
rtc = &bm8563_rtc;
sdhc0 = &sd0;
};
lvgl_pointer {
compatible = "zephyr,lvgl-pointer-input";
input = <&ft6336_touch>;
};
};
&usb_serial {
@ -91,6 +97,14 @@
int-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
};
};
ft6336_touch: ft5336@38 {
status = "okay";
compatible = "focaltech,ft5336";
reg = <0x38>;
int-gpios = <&aw9523b_gpio 10 GPIO_ACTIVE_LOW>;
reset-gpios = <&aw9523b_gpio 0 GPIO_ACTIVE_LOW>;
};
};
&i2c1 {