tests: drivers: display: display_read_write: add support for ILI9340
Add support for ILI9340 to display_read_write test. This support was verified with the adafruit_2_8_tft_touch_v2 shield. Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
parent
f59156356d
commit
c37e46c906
3 changed files with 28 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
|||
invert-y;
|
||||
};
|
||||
|
||||
adafruit_2_8_tft_touch_v2_mipi_dbi {
|
||||
adafruit_2_8_tft_touch_v2_mipi_dbi: adafruit_2_8_tft_touch_v2_mipi_dbi {
|
||||
compatible = "zephyr,mipi-dbi-spi";
|
||||
spi-dev = <&arduino_spi>;
|
||||
dc-gpios = <&arduino_header 15 GPIO_ACTIVE_HIGH>; /* D9 */
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright 2024 NXP
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/dt-bindings/display/ili9xxx.h>
|
||||
|
||||
&adafruit_2_8_tft_touch_v2_ili9340 {
|
||||
pixel-format = <ILI9XXX_PIXEL_FORMAT_RGB565>;
|
||||
};
|
||||
|
||||
&adafruit_2_8_tft_touch_v2_mipi_dbi {
|
||||
/delete-property/ write-only;
|
||||
};
|
|
@ -50,3 +50,15 @@ tests:
|
|||
extra_configs:
|
||||
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_BGR_565=y
|
||||
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
|
||||
drivers.display.read_write.ili9340:
|
||||
tags:
|
||||
- shield
|
||||
extra_args:
|
||||
- SHIELD=adafruit_2_8_tft_touch_v2
|
||||
- EXTRA_DTC_OVERLAY_FILE=adafruit_2_8_tft_touch_rgb565.overlay
|
||||
extra_configs:
|
||||
- CONFIG_ILI9XXX_READ=y
|
||||
# Use platform_allow, because we cannot filter the test based on the
|
||||
# presence of the arduino_spi DT nodelabel
|
||||
platform_allow:
|
||||
- mimxrt685_evk/mimxrt685s/cm33
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue