[PATCH v5 0/3] drm/bridge: ite-it66121: Switch to HDMI helpers and fix DVI output

Javier Martinez Canillas posted 3 patches 1 day, 8 hours ago
drivers/gpu/drm/bridge/Kconfig       |   2 +
drivers/gpu/drm/bridge/ite-it66121.c | 284 +++++++++++++++++++++++++----------
2 files changed, 207 insertions(+), 79 deletions(-)
[PATCH v5 0/3] drm/bridge: ite-it66121: Switch to HDMI helpers and fix DVI output
Posted by Javier Martinez Canillas 1 day, 8 hours ago
Display output does not work when connecting an AM625 BeaglePlay board
to a DVI monitor, because the DRM it66121 bridge driver assumes that
the sink type is always HDMI. This patch series fixes the issue.
    
Patch #1 reworks the driver to use the HDMI helpers instead of open
coding the AVI infoframes buffer management. It also implements the
needed callbacks to send HDMI Vendor Specific and Audio Infoframes.
    
Patch #2 moves the .mode_set logic to the .atomic_enable handler.
    
Patch #3 finally fixes the mentioned issue by using the display
information to determine whether HDMI or DVI mode should be set.
    
This is a v5 of the series, which addresses issues pointed out by
Maxime Ripard.
    
The patches were tested on both DVI and an HDMI monitors.

To: Andrzej Hajda <andrzej.hajda@intel.com>
To: Neil Armstrong <neil.armstrong@linaro.org>
To: Robert Foss <rfoss@kernel.org>
To: Laurent Pinchart <Laurent.pinchart@ideasonboard.com>
To: Jonas Karlman <jonas@kwiboo.se>
To: Jernej Skrabec <jernej.skrabec@gmail.com>
To: Luca Ceresoli <luca.ceresoli@bootlin.com>
To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
To: Maxime Ripard <mripard@kernel.org>
To: Thomas Zimmermann <tzimmermann@suse.de>
To: David Airlie <airlied@gmail.com>
To: Simona Vetter <simona@ffwll.ch>
To: Phong LE <ple@baylibre.com>
To: Sen Wang <sen@ti.com>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-kernel@vger.kernel.org

Changes in v5:
- Implement Audio InfoFrame packet support.
- Implement HDMI VSIF via Null Packet registers (Maxime Ripard).
- Use tmds_rate instead of mode->clock (Maxime Ripard).
- Drop ctx->connector, pass connector as argument (Maxime Ripard).
- Add WARN_ON for NULL connector and state checks (Maxime Ripard).
- Use ternary operator for TX mode in regmap_write (Maxime Ripard).
    
Changes in v4:
- Convert the driver to use the HDMI helpers (Maxime Ripard).
- Move .mode_set logic to .atomic_enable (Maxime Ripard).
    
Changes in v3:
- Move the HDMI/DVI mode set to .atomic_enable (Maxime Ripard).
    
Changes in v2:
- Don't store the sink type in a bridge state (Maxime Ripard).

---
Javier Martinez Canillas (3):
      drm/bridge: ite-it66121: Switch to the HDMI connector helpers
      drm/bridge: ite-it66121: Move .mode_set logic to .atomic_enable
      drm/bridge: ite-it66121: Select HDMI or DVI mode based on sink type

 drivers/gpu/drm/bridge/Kconfig       |   2 +
 drivers/gpu/drm/bridge/ite-it66121.c | 284 +++++++++++++++++++++++++----------
 2 files changed, 207 insertions(+), 79 deletions(-)
---
base-commit: 213c92ac9717e4951f052a499f91c89302889813
change-id: 20260523-it66121-fix-dvi-mode-v5-ed42429761ab

Best regards,
-- 
Javier Martinez Canillas <javierm@redhat.com>