[PATCH V6 5/6] drm: bridge: samsung-dsim: Dynamically configure DPHY timing

Jagan Teki jagan at amarulasolutions.com
Thu May 18 12:05:46 UTC 2023


On Tue, May 16, 2023 at 5:27 AM Adam Ford <aford173 at gmail.com> wrote:
>
> The DPHY timings are currently hard coded. Since the input
> clock can be variable, the phy timings need to be variable
> too.  To facilitate this, we need to cache the hs_clock
> based on what is generated from the PLL.
>
> The phy_mipi_dphy_get_default_config_for_hsclk function
> configures the DPHY timings in pico-seconds, and a small macro
> converts those timings into clock cycles based on the hs_clk.
>
> Signed-off-by: Adam Ford <aford173 at gmail.com>
> Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
> Tested-by: Chen-Yu Tsai <wenst at chromium.org>
> Tested-by: Frieder Schrempf <frieder.schrempf at kontron.de>
> Reviewed-by: Frieder Schrempf <frieder.schrempf at kontron.de>
> Tested-by: Michael Walle <michael at walle.cc>
> ---

Tested-by: Jagan Teki <jagan at amarulasolutions.com> # imx8mm-icore


More information about the dri-devel mailing list