Skip to content

Commit c37e46c

Browse files
danieldegrassehenrikbrixandersen
authored andcommitted
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 <[email protected]>
1 parent f591563 commit c37e46c

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

boards/shields/adafruit_2_8_tft_touch_v2/dts/adafruit_2_8_tft_touch_v2.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
invert-y;
2020
};
2121

22-
adafruit_2_8_tft_touch_v2_mipi_dbi {
22+
adafruit_2_8_tft_touch_v2_mipi_dbi: adafruit_2_8_tft_touch_v2_mipi_dbi {
2323
compatible = "zephyr,mipi-dbi-spi";
2424
spi-dev = <&arduino_spi>;
2525
dc-gpios = <&arduino_header 15 GPIO_ACTIVE_HIGH>; /* D9 */
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright 2024 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/display/ili9xxx.h>
8+
9+
&adafruit_2_8_tft_touch_v2_ili9340 {
10+
pixel-format = <ILI9XXX_PIXEL_FORMAT_RGB565>;
11+
};
12+
13+
&adafruit_2_8_tft_touch_v2_mipi_dbi {
14+
/delete-property/ write-only;
15+
};

tests/drivers/display/display_read_write/testcase.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,15 @@ tests:
5050
extra_configs:
5151
- CONFIG_SDL_DISPLAY_DEFAULT_PIXEL_FORMAT_BGR_565=y
5252
- CONFIG_SDL_DISPLAY_USE_HARDWARE_ACCELERATOR=n
53+
drivers.display.read_write.ili9340:
54+
tags:
55+
- shield
56+
extra_args:
57+
- SHIELD=adafruit_2_8_tft_touch_v2
58+
- EXTRA_DTC_OVERLAY_FILE=adafruit_2_8_tft_touch_rgb565.overlay
59+
extra_configs:
60+
- CONFIG_ILI9XXX_READ=y
61+
# Use platform_allow, because we cannot filter the test based on the
62+
# presence of the arduino_spi DT nodelabel
63+
platform_allow:
64+
- mimxrt685_evk/mimxrt685s/cm33

0 commit comments

Comments
 (0)