Skip to content

Commit

Permalink
boards: m5stack: cores3: Add FT6336 configuration
Browse files Browse the repository at this point in the history
Adding FT6336 touchpanel controller configuration.

Signed-off-by: TOKITA Hiroshi <[email protected]>
  • Loading branch information
soburi committed Nov 14, 2024
1 parent 73bc30a commit 26c02e3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions boards/m5stack/m5stack_cores3/Kconfig.m5stack_cores3
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 14 in boards/m5stack/m5stack_cores3/Kconfig.m5stack_cores3

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

boards/m5stack/m5stack_cores3/Kconfig.m5stack_cores3:14 please, no spaces at the start of a line

endif # SOC_ESP32S3_PROCPU
14 changes: 14 additions & 0 deletions boards/m5stack/m5stack_cores3/m5stack_cores3_procpu.dts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
zephyr,code-partition = &slot0_partition;
zephyr,rtc = &pfc8563_rtc;
zephyr,bt-hci = &esp32_bt_hci;
zephyr,touch = &ft6336_toucn;
};

aliases {
Expand All @@ -30,6 +31,11 @@
sdhc0 = &sd0;
led0 = &axp2101_led;
};

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

&usb_serial {
Expand Down Expand Up @@ -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>;
Expand Down

0 comments on commit 26c02e3

Please sign in to comment.