drm/bridge: lt9211: Do not generate HFP/HBP/HSA and EOT packet
authorMarek Vasut <marex@denx.de>
Mon, 3 Apr 2023 22:12:32 +0000 (00:12 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 6 May 2023 15:21:57 +0000 (17:21 +0200)
Do not generate the HS front and back porch gaps, the HSA gap and
EOT packet, as these packets are not required. This makes the bridge
work with Samsung DSIM on i.MX8MM and i.MX8MP.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230403221233.500485-1-marex@denx.de
drivers/gpu/drm/bridge/lontium-lt9211.c

index 3e19fff6547a29fcfdcd697651b9fe8cb1b214b2..00db681512385b6d239c3c6d4e430ded70194ea6 100644 (file)
@@ -709,7 +709,9 @@ static int lt9211_host_attach(struct lt9211 *ctx)
        dsi->lanes = dsi_lanes;
        dsi->format = MIPI_DSI_FMT_RGB888;
        dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
-                         MIPI_DSI_MODE_VIDEO_HSE;
+                         MIPI_DSI_MODE_VIDEO_HSE | MIPI_DSI_MODE_VIDEO_NO_HSA |
+                         MIPI_DSI_MODE_VIDEO_NO_HFP | MIPI_DSI_MODE_VIDEO_NO_HBP |
+                         MIPI_DSI_MODE_NO_EOT_PACKET;
 
        ret = devm_mipi_dsi_attach(dev, dsi);
        if (ret < 0) {