Skip to content

drm/sun4i: Add H616 display pipeline support

Jernej Skrabec dri-devel linux-arm-kernel linux-devicetree linux-sunxi lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11dt-bindings: display: sun4i-tcon: Add R40 TCON LCDDocumentation/devicetree/bindings/display/allwinner,sun4i-a10-tcon.yaml+4 -00 replies
2/11dt-bindings: display: Add H616 display engine compatiblesDocumentation/devicetree/bindings/bus/allwinner,sun50i-a64-de2.yaml Documentation/devicetree/bindings/display/allwinner,sun4i-a10-display-engine.yaml Documentation/devicetree/bindings/display/allwinner,sun4i-a10-tcon.yaml +3 more+67 -20 replies
3/11drm/sun4i: Add support for H616 TCON TOPdrivers/gpu/drm/sun4i/sun8i_tcon_top.c drivers/gpu/drm/sun4i/sun8i_tcon_top.h+14 -20 replies
4/11drm/sun4i: tcon: Request LVDS reset as shareddrivers/gpu/drm/sun4i/sun4i_tcon.c+4 -10 replies
5/11drm/sun4i: tcon-top: Route LCD TCONs to the LCD pinsdrivers/gpu/drm/sun4i/sun8i_tcon_top.c+2 -00 replies
6/11drm/sun4i: tcon: Add support for R40 LCDdrivers/gpu/drm/sun4i/sun4i_tcon.c+43 -60 replies
7/11drm/sun4i: Add H616 TCON TV supportdrivers/gpu/drm/sun4i/sun4i_tcon.c drivers/gpu/drm/sun4i/sun4i_tcon.h+15 -00 replies
8/11drm/sun4i: Add support for H616 HDMI PHYdrivers/gpu/drm/sun4i/sun8i_hdmi_phy.c+170 -00 replies
9/11drm/sun4i: Add compatible for H616 display enginedrivers/gpu/drm/sun4i/sun4i_drv.c+1 -00 replies
10/11arm64: dts: allwinner: h616: Add display pipelinearch/arm64/boot/dts/allwinner/sun50i-h616.dtsi+420 -00 replies
11/11arm64: dts: allwinner: h616: Enable HDMI on several boardsarch/arm64/boot/dts/allwinner/sun50i-h313-tanix-tx1.dts arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero2.dts +4 more+155 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/11] drm/sun4i: Add H616 display pipeline support

This series adds the remaining bits for the H616 display pipeline:
TCON TOP, TCON LCD (R40 style) and TCON TV support, HDMI PHY, display engine compatible, DT nodes and HDMI enablement on several boards.

TCON LCD support also covers SoCs with the same die and full LCD outputs, like T507: both TCON LCDs share one LVDS reset, so it is now requested as shared, and TCON LCD1 programs the second LVDS PHY. TCON TOP now also routes LCD TCONs to the LCD pins explicitly. Dual link LVDS is not supported by the driver yet. As on R40, only two of the four TCONs can be enabled at the same time, since there are two mixers.

HDMI PHY tables follow the BSP: PLL settings per TMDS clock band, like on H6, and BSP specific values at CEA clocks, including their 1000/1001 variants.

The series is based on linux-next, since DT patches touch boards which were changed in sunxi dt-for-7.5.

Tested on T95 Max (X96 Mate DT) with a 4K monitor and with a HDMI capture device: picture captured and checked at 25.175, 27, 40, 65, 80.14, 88.75, 108, 119, 148.5, 178.2 and 297 MHz. 4K60 at 594 and 593.41 MHz shows a clean picture on the monitor, which reports scrambling, lock and no character errors over SCDC (channel 0, the only one it reports).
All capture device EDID modes set and checked twice, plus 15 hotplug cycles.
An earlier version of these patches was tested on MYD-YT507H (T507) with an LVDS panel on TCON LCD0 and HDMI working at the same time. Shared LVDS reset and TCON LCD1 (second LVDS PHY) changes are build tested only.

Best regards,
Jernej

Jernej Skrabec (11):
dt-bindings: display: sun4i-tcon: Add R40 TCON LCD
dt-bindings: display: Add H616 display engine compatibles drm/sun4i: Add support for H616 TCON TOP drm/sun4i: tcon: Request LVDS reset as shared drm/sun4i: tcon-top: Route LCD TCONs to the LCD pins drm/sun4i: tcon: Add support for R40 LCD drm/sun4i: Add H616 TCON TV support
drm/sun4i: Add support for H616 HDMI PHY drm/sun4i: Add compatible for H616 display engine
arm64: dts: allwinner: h616: Add display pipeline
arm64: dts: allwinner: h616: Enable HDMI on several boards

 .../bus/allwinner,sun50i-a64-de2.yaml         |  20 +-
 .../allwinner,sun4i-a10-display-engine.yaml   |   4 +-
 .../display/allwinner,sun4i-a10-tcon.yaml     |  11 +
 .../display/allwinner,sun8i-a83t-dw-hdmi.yaml |   4 +
 .../allwinner,sun8i-a83t-hdmi-phy.yaml        |   1 +
 .../display/allwinner,sun8i-r40-tcon-top.yaml |  33 ++
 .../dts/allwinner/sun50i-h313-tanix-tx1.dts   |  30 ++
 .../allwinner/sun50i-h616-orangepi-zero.dtsi  |  25 ++
 .../allwinner/sun50i-h616-orangepi-zero2.dts  |   5 +
 .../dts/allwinner/sun50i-h616-x96-mate.dts    |  30 ++
 .../arm64/boot/dts/allwinner/sun50i-h616.dtsi | 420 ++++++++++++++++++
 .../allwinner/sun50i-h618-orangepi-zero3.dts  |   5 +
 .../sun50i-h618-transpeed-8k618-t.dts         |  30 ++
 .../sun50i-h618-yuzukihd-chameleon.dts        |  30 ++
 drivers/gpu/drm/sun4i/sun4i_drv.c             |   1 +
 drivers/gpu/drm/sun4i/sun4i_tcon.c            |  67 ++-
 drivers/gpu/drm/sun4i/sun4i_tcon.h            |   2 +
 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c        | 170 +++++++
 drivers/gpu/drm/sun4i/sun8i_tcon_top.c        |  15 +-
 drivers/gpu/drm/sun4i/sun8i_tcon_top.h        |   3 +-
 20 files changed, 895 insertions(+), 11 deletions(-)

base-commit: 3dd8c790a7b7027abdd568e36db5e82ffaea7c77

Signature · 1 line
2.43.0