shields: adafruit_2_8_tft_touch_v2: enable touch input support

Enable FT6x06 controller driver and touch input support.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
This commit is contained in:
Johann Fischer 2020-07-23 14:37:57 +02:00 committed by Carles Cufí
parent ca9dce0d7d
commit eacffdb511
3 changed files with 34 additions and 1 deletions

View File

@ -11,6 +11,22 @@ config SPI
config ILI9340
default y
if KSCAN
config I2C
default y
config KSCAN_FT5336
default y
config KSCAN_FT5336_INTERRUPT
default n
config KSCAN_INIT_PRIORITY
default 60
endif # KSCAN
if LVGL
config LVGL_DISPLAY_DEV_NAME
@ -28,6 +44,15 @@ config LVGL_VDB_SIZE
config LVGL_BITS_PER_PIXEL
default 24
config KSCAN
default y
config LVGL_POINTER_KSCAN
default y
config LVGL_POINTER_KSCAN_DEV_NAME
default "FT5336"
endif # LVGL
endif # DISPLAY

View File

@ -17,3 +17,11 @@
cmd-data-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */
};
};
&arduino_i2c {
touch_controller: ft5336@38 {
compatible = "focaltech,ft5336";
reg = <0x38>;
label = "FT5336";
};
};

View File

@ -11,7 +11,7 @@ resolution of 320x240 pixels, is based on the ILI9341 controller.
This shield comes with a resistive (STMPE610 controller)
or capacitive (FT6206 controller) touchscreen. While the
Zephyr RTOS supports display output to these screens,
it currently does not support touchscreen input.
touchscreen input is supported only on Capacitive Touch version.
More information about the shield can be found
at the `Adafruit 2.8" TFT Touch Shield v2 website`_.