On Do, 2026-11-26 at 22:44 +0100, Jernej Skrabec wrote:
> H616, and other SoCs with the same die like T507, have one LVDS reset
> line for both TCON LCDs. The TCON driver requests it exclusively, so the
> second TCON LCD fails to get it with -EBUSY and the display pipeline
> doesn't come up when both TCON LCDs are enabled.
> 
> Request the LVDS reset as shared. The driver only pulses it once in bind
> with reset_control_reset(), which is fine for shared resets, since the
> reset core triggers it only once.

Is there no ordering dependency, e.g. between TCON and LVDS resets, or
between LVDS reset and enabling clocks?

> Signed-off-by: Jernej Skrabec <[email protected]>
> ---
>  drivers/gpu/drm/sun4i/sun4i_tcon.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c 
> b/drivers/gpu/drm/sun4i/sun4i_tcon.c
> index 20740fa10ce8..77b6026bc895 100644
> --- a/drivers/gpu/drm/sun4i/sun4i_tcon.c
> +++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c
> @@ -1170,8 +1170,11 @@ static int sun4i_tcon_bind(struct device *dev, struct 
> device *master,
>                *
>                * If the property is missing, just disable LVDS, and
>                * print a warning.
> +              *
> +              * The reset is shared, since some SoCs have one LVDS reset
> +              * line for multiple TCONs.
>                */
> -             tcon->lvds_rst = devm_reset_control_get_optional(dev, "lvds");
> +             tcon->lvds_rst = devm_reset_control_get_optional_shared(dev, 
> "lvds");

It looks like lvds_rst could be a local variable.

regards
Philipp

Reply via email to