Skip to content

Add HDMI support for RK3128

Alex Bee dri-devel linux-arm-kernel linux-devicetree linux-rockchip lkml 4 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest29 patches 10 repliesApplied
  2. v329 patches 0 repliesSuperseded
  3. v227 patches 14 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v111 patches19 repliesSuperseded

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/29dt-bindings: display: rockchip,inno-hdmi: Document RK3128 compatibleDocumentation/devicetree/bindings/display/rockchip/rockchip,inno-hdmi.yaml+38 -22 replies
2/29drm/rockchip: vop: Add output selection registers for RK312xdrivers/gpu/drm/rockchip/rockchip_vop_reg.c drivers/gpu/drm/rockchip/rockchip_vop_reg.h+15 -10 replies
3/29drm/rockchip: inno_hdmi: Fix video timingdrivers/gpu/drm/rockchip/inno_hdmi.c+2 -20 replies
4/29drm/rockchip: inno_hdmi: Remove useless mode_fixupdrivers/gpu/drm/rockchip/inno_hdmi.c+0 -80 replies
5/29drm/rockchip: inno_hdmi: Remove useless copy of drm_display_modedrivers/gpu/drm/rockchip/inno_hdmi.c+0 -40 replies
6/29drm/rockchip: inno_hdmi: Switch encoder hooks to atomicdrivers/gpu/drm/rockchip/inno_hdmi.c+11 -80 replies
7/29drm/rockchip: inno_hdmi: Get rid of mode_setdrivers/gpu/drm/rockchip/inno_hdmi.c+11 -110 replies
8/29drm/rockchip: inno_hdmi: no need to store vicdrivers/gpu/drm/rockchip/inno_hdmi.c+5 -70 replies
9/29drm/rockchip: inno_hdmi: Remove unneeded has audio flagdrivers/gpu/drm/rockchip/inno_hdmi.c+0 -20 replies
10/29drm/rockchip: inno_hdmi: Remove useless input formatdrivers/gpu/drm/rockchip/inno_hdmi.c+11 -300 replies
11/29drm/rockchip: inno_hdmi: Remove YUV-based csc coefficentsdrivers/gpu/drm/rockchip/inno_hdmi.c+0 -370 replies
12/29drm/rockchip: inno_hdmi: Remove tmds rate from structuredrivers/gpu/drm/rockchip/inno_hdmi.c+5 -90 replies
13/29drm/rockchip: inno_hdmi: Drop HDMI Vendor Infoframe supportdrivers/gpu/drm/rockchip/inno_hdmi.c+10 -250 replies
14/29drm/rockchip: inno_hdmi: Move infoframe disable to separate functiondrivers/gpu/drm/rockchip/inno_hdmi.c+30 -160 replies
15/29drm/rockchip: inno_hdmi: Switch to infoframe typedrivers/gpu/drm/rockchip/inno_hdmi.c+11 -100 replies
16/29drm/rockchip: inno_hdmi: Remove unused drm device pointerdrivers/gpu/drm/rockchip/inno_hdmi.c+0 -20 replies
17/29drm/rockchip: inno_hdmi: Drop irq struct memberdrivers/gpu/drm/rockchip/inno_hdmi.c+0 -10 replies
18/29drm/rockchip: inno_hdmi: Remove useless includedrivers/gpu/drm/rockchip/inno_hdmi.c+0 -10 replies
19/29drm/rockchip: inno_hdmi: Subclass connector statedrivers/gpu/drm/rockchip/inno_hdmi.c+89 -270 replies
20/29drm/rockchip: inno_hdmi: Correctly setup HDMI quantization rangedrivers/gpu/drm/rockchip/inno_hdmi.c+42 -180 replies
21/29drm/rockchip: inno_hdmi: Don't power up the phy after resettingdrivers/gpu/drm/rockchip/inno_hdmi.c+1 -10 replies
22/29drm/rockchip: inno_hdmi: Split power mode settingdrivers/gpu/drm/rockchip/inno_hdmi.c drivers/gpu/drm/rockchip/inno_hdmi.h+24 -350 replies
23/29drm/rockchip: inno_hdmi: Add variant supportdrivers/gpu/drm/rockchip/inno_hdmi.c+69 -50 replies
24/29drm/rockchip: inno_hdmi: Add RK3128 supportdrivers/gpu/drm/rockchip/inno_hdmi.c+41 -50 replies
25/29drm/rockchip: inno_hdmi: Add basic mode validationdrivers/gpu/drm/rockchip/inno_hdmi.c+40 -20 replies
26/29drm/rockchip: inno_hdmi: Drop custom fill_modes hookdrivers/gpu/drm/rockchip/inno_hdmi.c+1 -80 replies
27/29ARM: dts: rockchip: Add display subsystem for RK3128arch/arm/boot/dts/rockchip/rk3128.dtsi+27 -00 replies
28/29ARM: dts: rockchip: Add HDMI node for RK3128arch/arm/boot/dts/rockchip/rk3128.dtsi+33 -00 replies
29/29ARM: dts: rockchip: Enable HDMI output for XPI-3128arch/arm/boot/dts/rockchip/rk3128-xpi-3128.dts+29 -00 replies

Reviews trailers per patch

5 of 29 patches have a Reviewed-by or Acked-by.

PatchConor DooleyAlex BeeMaxime Ripard
1/29R-b
2/29
3/29
4/29T-b
5/29T-b
6/29T-b
7/29T-b
8/29T-b
9/29T-b
10/29T-b
11/29
12/29T-b
13/29T-b
14/29T-b
15/29T-b
16/29T-b
17/29R-b
18/29R-b
19/29
20/29
21/29
22/29
23/29
24/29
25/29R-b
26/29R-b
27/29
28/29
29/29

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 00/29] Add HDMI support for RK3128

This is version 4 of my series that aims to add support for the display controller (VOP) and the HDMI controller block of RK3128 (which is very similar to the one found in RK3036). The original intention of this series was to add support for this slightly different integration but is by now, driven by maintainer's feedback, exploded to be a rework of inno-hdmi driver in large parts. It is, however, a change for the better.

The VOP part is very simple - everything we need for HDMI support is already there. I only needed to split the output selection registers from RK3036. The VOP has an IOMMU attached, but it has a serious silicon bug:
Registers can only be written, but not be read. As it's not possible to use it with the IOMMU driver in it's current state I'm not adding it here and we have to live with CMA for now - which works fine also. I got response from the vendor, that there is no possibility to read the registers and an workaround must be implemented in software in order to use it.

The inno-hdmi driver currently gets a lot of attention [0-2] and I'm hooking in now also. As requested I incorporated some of Maxime's series
[0] (and tested them).
I have intentionally not removed any code dealing with output format conversion in this series. In contrast to the input format, which is always RGB on this platform and certainly can be dropped, that can be implemented later. And secondly I need the conversion for RGB full range to RGB limited range for this series.

I did also some smaller driver cleanups from my side and implemented a custom connector state which now holds the data that belongs there and it is not longer in the device structure and, of course, addressed the feedback from v1 [3] and v2 [4].
There hasn't been any feedback to v3[5] so far, but I fixed an issue with the new custom connector reset hook: If there is a connector state already it needs to be destroyed in there as well.

Please see individual patches for detailed changelog.

Note: Patches are based and tested on next-20231213.

[0] https://lore.kernel.org/all/[email protected]
[1] https://lore.kernel.org/all/[email protected]
[2] https://lore.kernel.org/all/[email protected]
[3] https://lore.kernel.org/all/[email protected]/
[4] https://lore.kernel.org/all/[email protected]/
[5] https://lore.kernel.org/all/[email protected]/

Alex Bee (17):
dt-bindings: display: rockchip,inno-hdmi: Document RK3128 compatible drm/rockchip: vop: Add output selection registers for RK312x drm/rockchip: inno_hdmi: Fix video timing
drm/rockchip: inno_hdmi: Remove YUV-based csc coefficents drm/rockchip: inno_hdmi: Drop irq struct member drm/rockchip: inno_hdmi: Remove useless include drm/rockchip: inno_hdmi: Subclass connector state drm/rockchip: inno_hdmi: Correctly setup HDMI quantization range drm/rockchip: inno_hdmi: Don't power up the phy after resetting drm/rockchip: inno_hdmi: Split power mode setting drm/rockchip: inno_hdmi: Add variant support drm/rockchip: inno_hdmi: Add RK3128 support
drm/rockchip: inno_hdmi: Add basic mode validation drm/rockchip: inno_hdmi: Drop custom fill_modes hook
ARM: dts: rockchip: Add display subsystem for RK3128
ARM: dts: rockchip: Add HDMI node for RK3128
ARM: dts: rockchip: Enable HDMI output for XPI-3128

Maxime Ripard (12):
drm/rockchip: inno_hdmi: Remove useless mode_fixup drm/rockchip: inno_hdmi: Remove useless copy of drm_display_mode drm/rockchip: inno_hdmi: Switch encoder hooks to atomic drm/rockchip: inno_hdmi: Get rid of mode_set drm/rockchip: inno_hdmi: no need to store vic drm/rockchip: inno_hdmi: Remove unneeded has audio flag drm/rockchip: inno_hdmi: Remove useless input format drm/rockchip: inno_hdmi: Remove tmds rate from structure drm/rockchip: inno_hdmi: Drop HDMI Vendor Infoframe support drm/rockchip: inno_hdmi: Move infoframe disable to separate function drm/rockchip: inno_hdmi: Switch to infoframe type drm/rockchip: inno_hdmi: Remove unused drm device pointer

 .../display/rockchip/rockchip,inno-hdmi.yaml  |  40 +-
 .../arm/boot/dts/rockchip/rk3128-xpi-3128.dts |  29 +
 arch/arm/boot/dts/rockchip/rk3128.dtsi        |  60 ++
 drivers/gpu/drm/rockchip/inno_hdmi.c          | 549 +++++++++++-------
 drivers/gpu/drm/rockchip/inno_hdmi.h          |   5 -
 drivers/gpu/drm/rockchip/rockchip_vop_reg.c   |  13 +-
 drivers/gpu/drm/rockchip/rockchip_vop_reg.h   |   3 +
 7 files changed, 484 insertions(+), 215 deletions(-)

base-commit: 48e8992e33abf054bcc0bb2e77b2d43bb899212e

Signature · 1 line
2.43.0