]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/bridge: it6505: Fix inverted reset polarity
authorChen-Yu Tsai <wenst@chromium.org>
Tue, 29 Oct 2024 09:54:10 +0000 (17:54 +0800)
committerChen-Yu Tsai <wenst@chromium.org>
Mon, 4 Nov 2024 12:46:43 +0000 (20:46 +0800)
commitc5f3f21728b069412e8072b8b1d0a3d9d3ab0265
treeb180416f033a73efab2f04e542f32bf85d123b42
parent1d26c846f3ff82faa847becb9bb4b105a0c69439
drm/bridge: it6505: Fix inverted reset polarity

The IT6505 bridge chip has a active low reset line. Since it is a
"reset" and not an "enable" line, the GPIO should be asserted to
put it in reset and deasserted to bring it out of reset during
the power on sequence.

The polarity was inverted when the driver was first introduced, likely
because the device family that was targeted had an inverting level
shifter on the reset line.

The MT8186 Corsola devices already have the IT6505 in their device tree,
but the whole display pipeline is actually disabled and won't be enabled
until some remaining issues are sorted out. The other known user is
the MT8183 Kukui / Jacuzzi family; their device trees currently do not
have the IT6505 included.

Fix the polarity in the driver while there are no actual users.

Fixes: b5c84a9edcd4 ("drm/bridge: add it6505 driver")
Cc: stable@vger.kernel.org
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241029095411.657616-1-wenst@chromium.org
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
drivers/gpu/drm/bridge/ite-it6505.c