From: Emanuele Ghidoli <[email protected]>

The component datasheet recommends, to reduce power consumption,
transitioning to LP mode on every video line.

Enable the MIPI_DSI_MODE_VIDEO_NO_HFP and MIPI_DSI_MODE_VIDEO_NO_HBP
flags so that the bridge can enter LP mode during the horizontal front
porch and back porch periods.

Signed-off-by: Emanuele Ghidoli <[email protected]>
---
Cc: Douglas Anderson <[email protected]>
Cc: Andrzej Hajda <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Robert Foss <[email protected]>
Cc: Laurent Pinchart <[email protected]>
Cc: Jonas Karlman <[email protected]>
Cc: Jernej Skrabec <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Thomas Zimmermann <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Simona Vetter <[email protected]>
Cc: Jayesh Choudhary <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
---
 drivers/gpu/drm/bridge/ti-sn65dsi86.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c 
b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
index ae0d08e5e960..957e9abd46c3 100644
--- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c
+++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
@@ -689,7 +689,8 @@ static int ti_sn_attach_host(struct auxiliary_device *adev, 
struct ti_sn65dsi86
        /* TODO: setting to 4 MIPI lanes always for now */
        dsi->lanes = 4;
        dsi->format = MIPI_DSI_FMT_RGB888;
-       dsi->mode_flags = MIPI_DSI_MODE_VIDEO;
+       dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_NO_HFP |
+                         MIPI_DSI_MODE_VIDEO_NO_HBP;
 
        /* check if continuous dsi clock is required or not */
        pm_runtime_get_sync(dev);
-- 
2.43.0

Reply via email to