lkml.org 
[lkml]   [2021]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.10 521/663] drm/panel: kd35t133: allow using non-continuous dsi clock
    Date
    From: Heiko Stuebner <heiko@sntech.de>

    commit d922d58fedcd98ba625e89b625a98e222b090b10 upstream.

    The panel is able to work when dsi clock is non-continuous, thus
    the system power consumption can be reduced using such feature.

    Add MIPI_DSI_CLOCK_NON_CONTINUOUS to panel's mode_flags.

    Also the flag actually becomes necessary after
    commit c6d94e37bdbb ("drm/bridge/synopsys: dsi: add support for non-continuous HS clock")
    and without it the panel only emits stripes instead of output.

    Fixes: c6d94e37bdbb ("drm/bridge/synopsys: dsi: add support for non-continuous HS clock")
    Cc: stable@vger.kernel.org # 5.10+
    Signed-off-by: Heiko Stuebner <heiko@sntech.de>
    Tested-by: Ezequiel Garcia <ezequiel@collabora.com>
    Reviewed-by: Christopher Morgan <macromorgan@hotmail.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210206135020.1991820-1-heiko@sntech.de
    Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/gpu/drm/panel/panel-elida-kd35t133.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    --- a/drivers/gpu/drm/panel/panel-elida-kd35t133.c
    +++ b/drivers/gpu/drm/panel/panel-elida-kd35t133.c
    @@ -265,7 +265,8 @@ static int kd35t133_probe(struct mipi_ds
    dsi->lanes = 1;
    dsi->format = MIPI_DSI_FMT_RGB888;
    dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
    - MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET;
    + MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET |
    + MIPI_DSI_CLOCK_NON_CONTINUOUS;

    drm_panel_init(&ctx->panel, &dsi->dev, &kd35t133_funcs,
    DRM_MODE_CONNECTOR_DSI);

    \
     
     \ /
      Last update: 2021-03-02 04:10    [W:4.697 / U:0.712 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site