Skip to content

Add support for the mt8167 display pipeline

Luca Leonardo Scorcia dri-devel linux-arm-kernel linux-devicetree linux-mediatek lkml 2 versions – Applied

Status from this message: Applied to mediatek-drm-next [1], thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 16 repliesApplied
  2. v14 patches 4 repliesApplied

Changes in v2 from the cover letter

- Fixed some copy-and-paste error in MMSYS routes spotted by Sashiko [2].

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4dt-bindings: display: mediatek: dpi: Add compatible for mt8167Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml+1 -07 replies
2/4drm/mediatek: Add support for mt8167 Digital Parallel Interfacedrivers/gpu/drm/mediatek/mtk_dpi.c drivers/gpu/drm/mediatek/mtk_drm_drv.c+25 -01 reply
3/4soc: mediatek: mt8167-mmsys: add routes for all display pathsdrivers/soc/mediatek/mt8167-mmsys.h+184 -90 replies
4/4arm64: dts: mediatek: mt8167: Add DRM nodesarch/arm64/boot/dts/mediatek/mt8167.dtsi+369 -08 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchAngeloGioacchino Del RegnoKrzysztof Kozlowski
1/4R-b A-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] Add support for the mt8167 display pipeline

This series adds support for (almost) all display blocks of mt8167. This SoC supports a DSI or DPI display and has HDMI output via a second DPI block wired to the HDMI phy.

All the hard work was already upstreamed in the past, now all that's left is some glue. In the first two patches we add support for the DPI output blocks. In the third one we describe all the possible combinations of the SoC display pipeline and in the last one we add the required nodes to the SoC dtsi.

The final outputs of the display pipeline in the SoC dtsi are intentionally left not connected to allow board dts to specify their own output node.

I said almost all display blocks because HDMI output is not included in this patch. I have it tested and working at all supported resolutions, but since it needs some fixes in clocks and a new phy driver, I will send it in a separate series.

The series has been tested on a Lenovo Smart Clock 2 (DSI), a Xiaomi Mi Smart Clock 2 (DSI), and a Sony Playstation Classic Mini (HDMI via DPI). Unfortunately I couldn't find an actual device using a DPI display, but since DPI1-HDMI works, I feel confident saying that the clocks divisors are correct.

Changes in v2:
- Fixed some copy-and-paste error in MMSYS routes spotted by Sashiko [2].

Initial version: [1]

[1] https://lore.kernel.org/linux-mediatek/[email protected]/
[2] https://sashiko.dev/#/message/20260918180358.81A1D1F000FF%40smtp.kernel.org

Luca Leonardo Scorcia (4):
dt-bindings: display: mediatek: dpi: Add compatible for mt8167 drm/mediatek: Add support for mt8167 Digital Parallel Interface
soc: mediatek: mt8167-mmsys: add routes for all display paths
arm64: dts: mediatek: mt8167: Add DRM nodes

 .../display/mediatek/mediatek,dpi.yaml        |   1 +
 arch/arm64/boot/dts/mediatek/mt8167.dtsi      | 369 ++++++++++++++++++
 drivers/gpu/drm/mediatek/mtk_dpi.c            |  23 ++
 drivers/gpu/drm/mediatek/mtk_drm_drv.c        |   2 +
 drivers/soc/mediatek/mt8167-mmsys.h           | 193 ++++++++-
 5 files changed, 579 insertions(+), 9 deletions(-)
Signature · 1 line
2.43.0