Devicetree
 help / color / mirror / Atom feed
* [PATCH v10 0/5] drm/bridge: trilinear: add the Sky1 DisplayPort transmitter
@ 2026-12-04 11:43 Luo Liu
  2026-12-04 11:43 ` [PATCH v10 1/5] dt-bindings: display: add CIX " Luo Liu
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Luo Liu @ 2026-12-04 11:43 UTC (permalink / raw)
  To: maarten.lankhorst, mripard, tzimmermann, andrzej.hajda,
	neil.armstrong, rfoss, robh, krzk+dt, conor+dt
  Cc: dri-devel, devicetree, laurent.pinchart, jonas, jernej.skrabec,
	luca.ceresoli, wuyi.shen, cix-kernel-upstream

Add the Trilinear DisplayPort transmitter as a DRM bridge, with the CIX
Sky1 platform glue behind a platform data structure.

The hardware layer, the DRM bridge and the core state machine live in
drivers/gpu/drm/bridge/trilinear/, so other SoCs using the same
transmitter can share them; the platform registers its own dptx_plat_data
through include/drm/bridge/trilinear_dp.h. The transmitter drives up to
four lanes at HBR3 and has two SST sources. MST is not implemented and
stays disabled.

The USB-C transmitters and the native DP/eDP transmitter use different
RCSU video-adapter register offsets and bit layouts, so the binding has
one compatible for each. The Sky1 devicetree nodes are not included in
this posting.

Scope: DPTX hardware, bridge and bindings only. Komeda (the Sky1 display
controller that feeds these bridges) and the board DTS are separate
series. Nothing in this posting wires a full display stack.

Tested on a Radxa Orion O6 board; the USB-C DisplayPort output works
with the connector created by drm_bridge_connector_init().

Connector handling in this driver:

  The bridge is meant to be attached with DRM_BRIDGE_ATTACH_NO_CONNECTOR
  and drm_bridge_connector_init() creates the connector from the bridge
  operations. The driver implements the bridge side only and never
  registers a connector of its own. A bridge wired in front of the
  connector is chained from port@1.

Changes in v10:
- port@1 is resolved at probe: a remote endpoint means a converter
  bridge ahead of the connector, which the bridge chains and releases on
  destroy; without one the port feeds the native DP PHY.
- Link training gives up when HPD drops, propagates failures other than
  -EIO, programs the PHY swing and pre-emphasis before the DPCD request,
  and clamps the pre-emphasis so swing plus pre-emphasis stays within
  3.5 dB.
- The PHY is configured with the lane count being trained, and the
  enhanced-frame flag no longer leaks into the caller's lane count.
- The hotplug replay waits for the common PHY from the event work with a
  bounded retry instead of polling in interrupt context, and only the
  HPD interrupt sources are left unmasked.
- The stream clock is divided by the pixel-per-cycle factor.
- RGB tries 10 bpc first when BT.2020 or a deeper mode is requested, and
  the bpc is rounded down to a supported value.
- VSC is refused for 4:2:0 when the sink lacks support, its dynamic
  range follows the pixel format, and BT.709/XVYCC/DCI-P3 colorspaces
  are mapped.
- The secondary data window is computed in 64-bit arithmetic.
- atomic_check returns early when the CRTC is off.
- The platform glue stores the dptx_dev in drvdata.

Luo Liu (5):
  dt-bindings: display: add CIX Sky1 DisplayPort transmitter
  drm/bridge: trilinear: add the DPTX hardware layer
  drm/bridge: trilinear: add the DPTX DRM bridge
  drm/bridge: trilinear: add the DPTX core and build glue
  drm/cix: add the Sky1 DisplayPort platform glue

 .../bindings/display/cix,sky1-dp.yaml         |  133 ++
 MAINTAINERS                                   |   11 +
 drivers/gpu/drm/Kconfig                       |    1 +
 drivers/gpu/drm/Makefile                      |    1 +
 drivers/gpu/drm/bridge/Kconfig                |    2 +
 drivers/gpu/drm/bridge/Makefile               |    1 +
 drivers/gpu/drm/bridge/trilinear/Kconfig      |    9 +
 drivers/gpu/drm/bridge/trilinear/Makefile     |    4 +
 drivers/gpu/drm/bridge/trilinear/dptx.h       |  114 ++
 drivers/gpu/drm/bridge/trilinear/dptx_core.c  | 1077 +++++++++++++
 drivers/gpu/drm/bridge/trilinear/dptx_drm.c   |  769 +++++++++
 drivers/gpu/drm/bridge/trilinear/dptx_drm.h   |   17 +
 drivers/gpu/drm/bridge/trilinear/dptx_hw.c    | 1418 +++++++++++++++++
 drivers/gpu/drm/bridge/trilinear/dptx_hw.h    |  103 ++
 drivers/gpu/drm/cix/Kconfig                   |    3 +
 drivers/gpu/drm/cix/Makefile                  |    3 +
 drivers/gpu/drm/cix/dptx/Kconfig              |   15 +
 drivers/gpu/drm/cix/dptx/Makefile             |    4 +
 drivers/gpu/drm/cix/dptx/cix_dptx.c           |  181 +++
 include/drm/bridge/trilinear_dp.h             |   84 +
 20 files changed, 3950 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/cix,sky1-dp.yaml
 create mode 100644 drivers/gpu/drm/bridge/trilinear/Kconfig
 create mode 100644 drivers/gpu/drm/bridge/trilinear/Makefile
 create mode 100644 drivers/gpu/drm/bridge/trilinear/dptx.h
 create mode 100644 drivers/gpu/drm/bridge/trilinear/dptx_core.c
 create mode 100644 drivers/gpu/drm/bridge/trilinear/dptx_drm.c
 create mode 100644 drivers/gpu/drm/bridge/trilinear/dptx_drm.h
 create mode 100644 drivers/gpu/drm/bridge/trilinear/dptx_hw.c
 create mode 100644 drivers/gpu/drm/bridge/trilinear/dptx_hw.h
 create mode 100644 drivers/gpu/drm/cix/Kconfig
 create mode 100644 drivers/gpu/drm/cix/Makefile
 create mode 100644 drivers/gpu/drm/cix/dptx/Kconfig
 create mode 100644 drivers/gpu/drm/cix/dptx/Makefile
 create mode 100644 drivers/gpu/drm/cix/dptx/cix_dptx.c
 create mode 100644 include/drm/bridge/trilinear_dp.h

-- 
2.25.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-12-04 12:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 11:43 [PATCH v10 0/5] drm/bridge: trilinear: add the Sky1 DisplayPort transmitter Luo Liu
2026-12-04 11:43 ` [PATCH v10 1/5] dt-bindings: display: add CIX " Luo Liu
2026-12-04 11:43 ` [PATCH v10 2/5] drm/bridge: trilinear: add the DPTX hardware layer Luo Liu
2026-12-04 12:06   ` sashiko-bot
2026-12-04 11:43 ` [PATCH v10 3/5] drm/bridge: trilinear: add the DPTX DRM bridge Luo Liu
2026-12-04 12:16   ` sashiko-bot
2026-12-04 11:43 ` [PATCH v10 4/5] drm/bridge: trilinear: add the DPTX core and build glue Luo Liu
2026-12-04 12:15   ` sashiko-bot
2026-12-04 11:43 ` [PATCH v10 5/5] drm/cix: add the Sky1 DisplayPort platform glue Luo Liu
2026-12-04 12:01   ` sashiko-bot
2026-12-04 12:11     ` 回复: " Luo Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox