boards: renesas: smartbond: Update display settings

This commit should fix configuration conflicts that
came up upon merging both MIPI DBI and display panel
drivers.

1. Board's display/LVGL Kconfigs should be enabled when
   needed based on the selected display interface.
2. Overwrite the touch controller's I2C pins to avoid
   conflicts with the display panel signals.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
This commit is contained in:
Ioannis Karachalios 2024-03-13 20:09:50 +02:00 committed by Fabio Baltieri
parent 13deb0365c
commit 5cf6133dae
2 changed files with 13 additions and 3 deletions

View file

@ -12,15 +12,15 @@ config LV_Z_BITS_PER_PIXEL
# LCDC imposes display buffer's stride be word aligned
config LV_Z_AREA_X_ALIGNMENT_WIDTH
default 2
default 2 if MIPI_DBI_SMARTBOND
config LV_Z_FLUSH_THREAD
default y
default y if DISPLAY_RENESAS_LCDC
# Use double buffering to avoid visual artifacts as long as
# the DMA is copying data into driver's frame buffer.
config LV_Z_DOUBLE_VDB
default y
default y if DISPLAY_RENESAS_LCDC
endif # LVGL

View file

@ -23,6 +23,16 @@
status = "okay";
};
&pinctrl {
i2c2_default: i2c2_default {
group1 {
pinmux = <SMARTBOND_PINMUX(I2C2_SDA, 0, 19)>,
<SMARTBOND_PINMUX(I2C2_SCL, 0, 18)>;
bias-pull-up;
};
};
};
&i2c2 {
clock-frequency = <400000>;