Skip to content

Commit 85da246

Browse files
soburikartben
authored andcommitted
boards: m5stack: cores3: Add FT6336 configuration
Adding FT6336 touchpanel controller configuration. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent b0baeee commit 85da246

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# M5Stack CoreS3 board defconfig
2+
3+
# Copyright (c) 2024 TOKITA Hiroshi
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
if BOARD_M5STACK_CORES3_ESP32S3_PROCPU || BOARD_M5STACK_CORES3_ESP32S3_PROCPU_SE
7+
8+
config INPUT_FT5336_INTERRUPT
9+
default y if INPUT
10+
11+
config INPUT
12+
default y
13+
14+
endif # BOARD_M5STACK_CORES3_ESP32S3_PROCPU || BOARD_M5STACK_CORES3_ESP32S3_PROCPU_SE

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
zephyr,code-partition = &slot0_partition;
2020
zephyr,rtc = &bm8563_rtc;
2121
zephyr,bt-hci = &esp32_bt_hci;
22+
zephyr,touch = &ft6336_touch;
2223
};
2324

2425
aliases {
@@ -31,6 +32,11 @@
3132
rtc = &bm8563_rtc;
3233
sdhc0 = &sd0;
3334
};
35+
36+
lvgl_pointer {
37+
compatible = "zephyr,lvgl-pointer-input";
38+
input = <&ft6336_touch>;
39+
};
3440
};
3541

3642
&usb_serial {
@@ -91,6 +97,14 @@
9197
int-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
9298
};
9399
};
100+
101+
ft6336_touch: ft5336@38 {
102+
status = "okay";
103+
compatible = "focaltech,ft5336";
104+
reg = <0x38>;
105+
int-gpios = <&aw9523b_gpio 10 GPIO_ACTIVE_LOW>;
106+
reset-gpios = <&aw9523b_gpio 0 GPIO_ACTIVE_LOW>;
107+
};
94108
};
95109

96110
&i2c1 {

0 commit comments

Comments
 (0)