This series adds Device Tree binding documentation and a DRM bridge driver
for the Lontium LT9721 HDMI 1.4 to 1/2/4-lane eDP 1.4 bridge chip.

The LT9721 accepts an HDMI 1.4 TMDS video stream (up to 3.4 Gbps/lane) and
drives a 1-, 2-, or 4-lane eDP 1.4 output at RBR (1.62 Gbps) or HBR
(2.7 Gbps) per lane, controlled over a paged I2C register interface.

Patch 1 documents the "lontium,lt9721" binding, including power supplies,
reset GPIO, OF graph input/output endpoints with lane/polarity remapping,
and the DisplayPort AUX bus.

Patch 2 implements the atomic DRM bridge driver, registering the DP AUX
channel (supporting both Native AUX for DPCD and I2C-over-AUX for EDID)
and populating downstream eDP panels via devm_of_dp_aux_populate_bus().

Hardware-tested on an NXP i.MX8MP-based platform on a v5.10 kernel
(driving a 2-lane 1080p eDP panel with dynamic EDID mode discovery over
DP AUX), and forward-ported and build-/schema-tested against linux-next.

Changes in v2:
- Use of_drm_get_bridge_by_endpoint() instead of deprecated
  devm_drm_of_get_bridge() so bridge.next_bridge holds an owned reference
- Fix off-by-one byte count on partial I2C-over-AUX writes in
  lt9721_aux_transfer_i2c()
- Set DRM_BRIDGE_OP_DETECT unconditionally so fixed panel detection
  overrides upstream HDMI bridge detect ops
- Use designated initializer in lt9721_i2c_ids[], switch to
  devm_mutex_init(), and drop unused client field and headers
- Link to v1: 
https://lore.kernel.org/r/[email protected]

Gianfranco Mariotti (2):
  dt-bindings: display: bridge: Add Lontium LT9721 HDMI to eDP bridge
  drm/bridge: Add Lontium LT9721 HDMI to eDP bridge driver

 .../display/bridge/lontium,lt9721.yaml        |  169 ++
 MAINTAINERS                                   |    8 +
 drivers/gpu/drm/bridge/Kconfig                |   16 +
 drivers/gpu/drm/bridge/Makefile               |    1 +
 drivers/gpu/drm/bridge/lontium-lt9721.c       | 1637 +++++++++++++++++
 5 files changed, 1831 insertions(+)
 create mode 100644 
Documentation/devicetree/bindings/display/bridge/lontium,lt9721.yaml
 create mode 100644 drivers/gpu/drm/bridge/lontium-lt9721.c

-- 
2.25.1

Reply via email to