video: imx: Add LDB driver
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 3 Apr 2025 07:39:11 +0000 (09:39 +0200)
committerFabio Estevam <festevam@gmail.com>
Fri, 11 Apr 2025 01:32:56 +0000 (22:32 -0300)
commitdce8222eead9e76fd17a419205de9e6f3a1673f7
treeef87c524c2567cfb1b0794f727fb88befda678e3
parent95654e671792eef4ddd3e078d501f6112c7bf187
video: imx: Add LDB driver

Add support for the LVDS Display Bridge (LDB) found on i.MX8MP.

When attached, the bridge driver looks for panels connected to one of
its two outputs and adapts its own configuration to use them. There is
currently no support for merged/split displays.

Note regarding the clock configuration:
The LDB output clock should be absolutely identical to the LCDIF output
clock so both blocks can talk to each other synchronously. However, the
LDB clock has an internal divisor of 7 (respectively 3.5 in dual
configuration) which means the LDB input clock must be explicitly set
once we know the configuration.

This driver was tested on i.MX8MP using a single panel connected to the
LVDS2 interface.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/video/imx/Kconfig
drivers/video/imx/Makefile
drivers/video/imx/ldb.c [new file with mode: 0644]