drm/bridge: tc358775: Add support for tc358765
authorTony Lindgren <tony@atomide.com>
Sun, 25 Feb 2024 06:19:38 +0000 (08:19 +0200)
committerRobert Foss <rfoss@kernel.org>
Tue, 23 Apr 2024 15:33:19 +0000 (17:33 +0200)
commitce2196dbba66a2a40020d6045a48eeab0091db01
treec127f6ed547f4dea6ff3651361a7e1305cbfc7b5
parente2ee8e82cf424ce70fcee2151f5d0eb1a5fdc311
drm/bridge: tc358775: Add support for tc358765

The tc358775 bridge is pin compatible with earlier tc358765 according to
the tc358774xbg_datasheet_en_20190118.pdf documentation. Compared to the
tc358765, the tc358775 supports a STBY GPIO and higher data rates.

The tc358765 has a register bit for video event mode vs video pulse mode.
We must set it to video event mode for the LCD output to work, and on the
tc358775, this bit no longer exists.

Looks like the registers seem to match otherwise based on a quick glance
comparing the defines to the earlier Android kernel tc358765 driver.

Reviewed-by: Michael Walle <mwalle@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240225062008.33191-10-tony@atomide.com
drivers/gpu/drm/bridge/tc358775.c