From 20b7b6e1d46af2a5f02f9f3e1d7708f30871c0e6 Mon Sep 17 00:00:00 2001 From: Daniel DeGrasse Date: Thu, 22 Feb 2024 16:35:57 -0600 Subject: [PATCH] boards: shield: adafruit_2_8_tft_touch_v2: add support for RD_RW612_BGA Add support for the RD RW612 BGA board for the adafruit_2_8_tft_touch_v2 shield. This board uses a custom LCDIC MIPI DBI controller, which requires a specific board overlay to enable the shield. Signed-off-by: Daniel DeGrasse --- .../boards/rd_rw612_bga.overlay | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 boards/shields/adafruit_2_8_tft_touch_v2/boards/rd_rw612_bga.overlay diff --git a/boards/shields/adafruit_2_8_tft_touch_v2/boards/rd_rw612_bga.overlay b/boards/shields/adafruit_2_8_tft_touch_v2/boards/rd_rw612_bga.overlay new file mode 100644 index 00000000000..59136c9b45b --- /dev/null +++ b/boards/shields/adafruit_2_8_tft_touch_v2/boards/rd_rw612_bga.overlay @@ -0,0 +1,54 @@ +/* + * Copyright 2024 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include + +/ { + chosen { + zephyr,display = &ili9340; + }; + + /* + * RW612 uses LCDIC controller, which implements the MIPI DBI API + * directly and does not require the MIPI DBI SPI node + */ + /delete-node/ mipi_dbi; +}; + +&lcdic { + /* Byte swapping not supported for this display */ + /delete-property/ nxp,swap-bytes; + + /* + * Settings to connect this display: + * Populate the following resistors: + * - R125, R123, R12, R124, R15, R243, R239, R236, R233, R286, R246 + * Remove the following resistors: + * - R9, R11, R20, R19, R242, R241, R237, R235, R245 + * Short the following pins: + * - J5 1-2 + * Remove JP30 to disconnect Flexcomm SPI CS + * Display can be connected to Arduino header + */ + + ili9340: ili9340@0 { + compatible = "ilitek,ili9340"; + mipi-max-frequency = <15151515>; + duplex = ; + reg = <0>; + width = <320>; + height = <240>; + pixel-format = ; + rotation = <90>; + frmctr1 = [00 18]; + pwctrl1 = [23 00]; + vmctrl1 = [3e 28]; + vmctrl2 = [86]; + pgamctrl = [0f 31 2b 0c 0e 08 4e f1 37 07 10 03 0e 09 00]; + ngamctrl = [00 0e 14 03 11 07 31 c1 48 08 0f 0c 31 36 0f]; + }; + +};