From: Alexander Stein Date: Tue, 25 Feb 2025 13:51:13 +0000 (+0100) Subject: drm/bridge: ti-sn65dsi83: Support negative DE polarity X-Git-Tag: v6.15-rc1~120^2~13^2~76 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=735ffae0c906307034314357814391a36e637b45;p=thirdparty%2Flinux.git drm/bridge: ti-sn65dsi83: Support negative DE polarity Polarity for DE is stored in bridge state. Use this flag for setting the DE polarity in the bridge. Signed-off-by: Alexander Stein Tested-by: Herve Codina Reviewed-by: Dmitry Baryshkov Signed-off-by: Robert Foss Link: https://patchwork.freedesktop.org/patch/msgid/20250225135114.801884-1-alexander.stein@ew.tq-group.com --- diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi83.c b/drivers/gpu/drm/bridge/ti-sn65dsi83.c index 54ad462d17ef7..95563aa1b450d 100644 --- a/drivers/gpu/drm/bridge/ti-sn65dsi83.c +++ b/drivers/gpu/drm/bridge/ti-sn65dsi83.c @@ -561,6 +561,8 @@ static void sn65dsi83_atomic_pre_enable(struct drm_bridge *bridge, REG_LVDS_FMT_HS_NEG_POLARITY : 0) | (mode->flags & DRM_MODE_FLAG_NVSYNC ? REG_LVDS_FMT_VS_NEG_POLARITY : 0); + val |= bridge_state->output_bus_cfg.flags & DRM_BUS_FLAG_DE_LOW ? + REG_LVDS_FMT_DE_NEG_POLARITY : 0; /* Set up bits-per-pixel, 18bpp or 24bpp. */ if (lvds_format_24bpp) {