Devicetree
 help / color / mirror / Atom feed
From: Luo Liu <Luo.Liu@cixtech.com>
To: maarten.lankhorst@linux.intel.com, mripard@kernel.org,
	tzimmermann@suse.de, andrzej.hajda@intel.com,
	neil.armstrong@linaro.org, rfoss@kernel.org, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org
Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
	laurent.pinchart@ideasonboard.com, jonas@kwiboo.se,
	jernej.skrabec@gmail.com, luca.ceresoli@bootlin.com,
	wuyi.shen@cixtech.com, cix-kernel-upstream@cixtech.com
Subject: [PATCH v5 0/5] drm/bridge: trilinear: add the Sky1 DisplayPort transmitter
Date: Thu, 26 Nov 2026 13:59:58 +0800	[thread overview]
Message-ID: <20261126060003.3979478-1-Luo.Liu@cixtech.com> (raw)

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 v5:
- The bridge no longer outlives the platform device: the release action
  runs after devm_drm_bridge_add(), struct dp_hw is freed from the
  bridge .destroy callback, and a released flag makes detect and prepare
  fail with -ENODEV after unbind.
- The AUX channel is initialized in dptx_hw_init() before the host sets
  its power state, its name is allocated once with the bridge, and it is
  powered down together with the host.
- HPD reported by the platform is only accepted when the SoC reports it
  out of band, notifications generated by the driver are marked so they
  are not fed back into the state machine, and dp->status is updated in
  the same locked section as the connection state.
- dptx_pm_complete() replays the deferred hotplug, dptx_pm_prepare()
  clears the forced HPD state, and dptx_host_reset() disables the host
  again when the PHY fails to enter DP mode.
- dptx_bridge_mode_valid() no longer takes the 4:2:0 or 4:2:2 bpp
  fallback for sinks that report less than 8 bpc.
- The core owns the struct phy and drives it through the generic PHY
  API, the exported API carries the trilinear_dptx_ prefix, and the lock
  helpers are replaced by guard() and scoped_guard(). dptx.h and
  include/drm/bridge/trilinear_dp.h are added by the bridge patch, so no
  patch includes a header that appears later in the series.

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         |  102 ++
 MAINTAINERS                                   |   12 +
 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       |  112 ++
 drivers/gpu/drm/bridge/trilinear/dptx_core.c  | 1080 +++++++++++++
 drivers/gpu/drm/bridge/trilinear/dptx_drm.c   |  713 +++++++++
 drivers/gpu/drm/bridge/trilinear/dptx_drm.h   |   17 +
 drivers/gpu/drm/bridge/trilinear/dptx_hw.c    | 1379 +++++++++++++++++
 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           |  173 +++
 include/drm/bridge/trilinear_dp.h             |   74 +
 20 files changed, 3808 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


             reply	other threads:[~2026-11-26  6:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  5:59 Luo Liu [this message]
2026-11-26  5:59 ` [PATCH v5 1/5] dt-bindings: display: add CIX Sky1 DisplayPort transmitter Luo Liu
2026-11-26  6:13   ` sashiko-bot
2026-11-26  6:27     ` 回复: " Luo Liu
2026-11-26 11:41       ` Sebastian Reichel
2026-11-26  6:00 ` [PATCH v5 2/5] drm/bridge: trilinear: add the DPTX hardware layer Luo Liu
2026-11-26  6:00 ` [PATCH v5 3/5] drm/bridge: trilinear: add the DPTX DRM bridge Luo Liu
2026-11-26  6:00 ` [PATCH v5 4/5] drm/bridge: trilinear: add the DPTX core and build glue Luo Liu
2026-11-26  6:20   ` sashiko-bot
2026-11-26  6:00 ` [PATCH v5 5/5] drm/cix: add the Sky1 DisplayPort platform glue Luo Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261126060003.3979478-1-Luo.Liu@cixtech.com \
    --to=luo.liu@cixtech.com \
    --cc=andrzej.hajda@intel.com \
    --cc=cix-kernel-upstream@cixtech.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jernej.skrabec@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=krzk+dt@kernel.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=luca.ceresoli@bootlin.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=rfoss@kernel.org \
    --cc=robh@kernel.org \
    --cc=tzimmermann@suse.de \
    --cc=wuyi.shen@cixtech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox