Skip to content

drm/bridge: trilinear: add the Sky1 DisplayPort transmitter

Luo Liu dri-devel linux-devicetree 7 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest5 patches 0 repliesNew
  2. v65 patches 0 repliesSuperseded
  3. v55 patches 3 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v45 patches0 repliesSuperseded
v35 patches6 repliesSuperseded
v22 patches2 repliesSuperseded
v12 patches6 repliesSuperseded

Changes in v7 from the cover letter

- The link-rate downshift thresholds are compared against the real link rates, so a 1.62 or 2.7 Gbps link is not raised to 5.4 Gbps when training fails.
- The bridge adds a device link to the controller, so the transmitter resumes before the controller's resume commit and suspends after its disable commit. An atomic enable that arrives while the transmitter is suspended is refused instead of re-initializing the host behind the system sleep callbacks.
- The device link is created only while the transmitter is alive and is dropped from the platform remove callback, before the device is deleted, since device links cannot be released after device removal.
- Every patch updates MAINTAINERS for the files it adds.

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dt-bindings: display: add CIX Sky1 DisplayPort transmitterDocumentation/devicetree/bindings/display/cix,sky1-dp.yaml MAINTAINERS+141 -00 replies
2/5drm/bridge: trilinear: add the DPTX hardware layerMAINTAINERS drivers/gpu/drm/bridge/trilinear/dptx_hw.c drivers/gpu/drm/bridge/trilinear/dptx_hw.h+1484 -00 replies
3/5drm/bridge: trilinear: add the DPTX DRM bridgeMAINTAINERS drivers/gpu/drm/bridge/trilinear/dptx.h drivers/gpu/drm/bridge/trilinear/dptx_drm.c +2 more+939 -00 replies
4/5drm/bridge: trilinear: add the DPTX core and build gluedrivers/gpu/drm/bridge/Kconfig drivers/gpu/drm/bridge/Makefile drivers/gpu/drm/bridge/trilinear/Kconfig +3 more+1087 -00 replies
5/5drm/cix: add the Sky1 DisplayPort platform glueMAINTAINERS drivers/gpu/drm/Kconfig drivers/gpu/drm/Makefile +5 more+207 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.

Read the v7 thread

Cover letter [PATCH v7 0/5] drm/bridge: trilinear: add the Sky1 DisplayPort transmitter

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.

Changes in v7:
- The link-rate downshift thresholds are compared against the real link rates, so a 1.62 or 2.7 Gbps link is not raised to 5.4 Gbps when training fails.
- The bridge adds a device link to the controller, so the transmitter resumes before the controller's resume commit and suspends after its disable commit. An atomic enable that arrives while the transmitter is suspended is refused instead of re-initializing the host behind the system sleep callbacks.
- The device link is created only while the transmitter is alive and is dropped from the platform remove callback, before the device is deleted, since device links cannot be released after device removal.
- Every patch updates MAINTAINERS for the files it adds.

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       |  113 ++
 drivers/gpu/drm/bridge/trilinear/dptx_core.c  | 1061 +++++++++++++
 drivers/gpu/drm/bridge/trilinear/dptx_drm.c   |  734 +++++++++
 drivers/gpu/drm/bridge/trilinear/dptx_drm.h   |   17 +
 drivers/gpu/drm/bridge/trilinear/dptx_hw.c    | 1380 +++++++++++++++++
 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           |  179 +++
 include/drm/bridge/trilinear_dp.h             |   84 +
 20 files changed, 3858 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
Signature · 1 line
2.25.1