Skip to content

Commit ac88160

Browse files
stglooriousmmahadevan108
authored andcommitted
drivers: display: ili9xxx: read mipi-mode, only use SPI mode as fallback
Instead of always using the SPI MIPI DBI mode (type C), look up the mipi-mode from the device tree and only set the mode to MIPI_DBI_MODE_SPI_4WIRE as a fallback in case the property is not given. Signed-off-by: Stefan Gloor <[email protected]>
1 parent 8915bad commit ac88160

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/display/display_ili9xxx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,8 @@ static const struct ili9xxx_quirks ili9488_quirks = {
520520
.quirks = &ili##t##_quirks, \
521521
.mipi_dev = DEVICE_DT_GET(DT_PARENT(INST_DT_ILI9XXX(n, t))), \
522522
.dbi_config = { \
523-
.mode = MIPI_DBI_MODE_SPI_4WIRE, \
523+
.mode = DT_PROP_OR(INST_DT_ILI9XXX(n, t), \
524+
mipi_mode, MIPI_DBI_MODE_SPI_4WIRE), \
524525
.config = MIPI_DBI_SPI_CONFIG_DT( \
525526
INST_DT_ILI9XXX(n, t), \
526527
SPI_OP_MODE_MASTER | \

0 commit comments

Comments
 (0)