[PATCH 0/2] drm/bridge: tc358762: fix reset handling
Andreas Kemnade
andreas at kemnade.info
Tue Nov 24 06:23:49 PST 2026
On Tue, 24 Nov 2026 15:44:40 +0200
Tomi Valkeinen <tomi.valkeinen at ideasonboard.com> wrote:
> Hi,
>
> On 24/11/2026 13:54, Andreas Kemnade wrote:
> > The bridge driver desserts reset after disable and asserts that
> > upon enbale. That requires users to workaround that by declaring
> > the reset gpio wrongfully active high. As an interim solution,
> > ignore polarity, until things have settled to fix it afterwards.
> > That will break setups with an additional inverter in the signal
> > patch but those should be uncommon, at least not seen in in-tree
> > devicetrees. Fix polarity in the one device tree actually declaring
> > a reset line. That patch has to go in after the bridge fix.
> >
> > The issue came to sight during experiments with reset lines on the
> > Epson Moverio BT-200.
> Indeed, the driver has it the wrong way... But what is the way to fix
> this? Fixing it will always break the backward compatibility with dtbs.
>
> Is it worth it? Or is it easier to just adjust the bindings doc to
> mention about it, and add a note to the driver that the gpio is set the
> wrong way "on purpose".
>
I am a bit wondering whether to use the reset-gpio driver as aux device,
and then we would need correct dts. There are two chips sharing a single
reset line, so I have to deal with shared gpios. It seems not to work
that well directly. But first I try to have things working with well-defined
boot state.
That reset-gpio stuff was invented exactly for that case, see commit
cee544a40e4426040946e685988b1489f13e6600.
> Or, if this is to be merged, I think the code around the
> gpiod_set_raw_value_cansleep calls should have a comment to highlight
> why it's calling raw funcs and what the plan is.
>
Yes, the comment should be there.
Sashiko suggested to add an entry to
of_gpio_try_fixup_polarity()
to have fixups.
Regards,
Andreas
More information about the linux-arm-kernel
mailing list