OSDN Git Service

drm: bridge: icn6211: Add and use hs_rate and lp_rate
authorMarek Vasut <marex@denx.de>
Mon, 1 Aug 2022 13:15:55 +0000 (15:15 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 26 Aug 2022 11:54:52 +0000 (13:54 +0200)
commit4d054ca9ad01004901f3ba988d77f7d298819c12
tree669b8daefa3fdbbba5e020d8a9ba04ad962e7890
parenteb7de496451bd969e203f02f66585131228ba4ae
drm: bridge: icn6211: Add and use hs_rate and lp_rate

Fill in hs_rate and lp_rate to struct mipi_dsi_device for this bridge and
adjust DSI input frequency calculations such that they expect the DSI host
to configure HS clock according to hs_rate.

This is an optimization for the DSI burst mode case. In case the DSI device
supports DSI burst mode, it is recommended to operate the DSI interface at
the highest possible HS clock frequency which the DSI device supports. This
permits the DSI host to send as short as possible bursts of data on the DSI
link and keep the DSI data lanes in LP mode otherwise, which reduces power
consumption.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Jagan Teki <jagan@amarulasolutions.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Robert Foss <robert.foss@linaro.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220801131555.182969-1-marex@denx.de
drivers/gpu/drm/bridge/chipone-icn6211.c