Skip to content

Commit 970e8ba

Browse files
committed
boards: m5stack: cores3: Add FT6336 configuration
Adding FT6336 touchpanel controller configuration. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 73bc30a commit 970e8ba

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

boards/m5stack/m5stack_cores3/Kconfig.m5stack_cores3

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ config BOARD_M5STACK_CORES3
77
select SOC_ESP32S3
88
select SOC_ESP32S3_PROCPU if BOARD_M5STACK_CORES3_ESP32S3_PROCPU
99
select SOC_ESP32S3_APPCPU if BOARD_M5STACK_CORES3_ESP32S3_APPCPU
10+
11+
if SOC_ESP32S3_PROCPU
12+
13+
config INPUT_FT5336_INTERRUPT
14+
default y if INPUT
15+
16+
endif # SOC_ESP32S3_PROCPU

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu.dts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
zephyr,code-partition = &slot0_partition;
2121
zephyr,rtc = &pfc8563_rtc;
2222
zephyr,bt-hci = &esp32_bt_hci;
23+
zephyr,touch = &ft6336_touch;
2324
};
2425

2526
aliases {
@@ -30,6 +31,11 @@
3031
sdhc0 = &sd0;
3132
led0 = &axp2101_led;
3233
};
34+
35+
lvgl_pointer {
36+
compatible = "zephyr,lvgl-pointer-input";
37+
input = <&ft6336_touch>;
38+
};
3339
};
3440

3541
&usb_serial {
@@ -75,6 +81,14 @@
7581
};
7682
};
7783

84+
ft6336_touch: ft5336@38 {
85+
compatible = "focaltech,ft5336";
86+
reg = <0x38>;
87+
status = "okay";
88+
int-gpios = <&aw9523b_gpio 10 GPIO_ACTIVE_LOW>;
89+
reset-gpios = <&aw9523b_gpio 0 GPIO_ACTIVE_LOW>;
90+
};
91+
7892
pfc8563_rtc: pfc8563@51 {
7993
compatible = "nxp,pcf8563";
8094
reg = <0x51>;

0 commit comments

Comments
 (0)