Add HDMI support for RK3128
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest29 patches 10 repliesApplied
- v329 patches 0 repliesSuperseded
- v227 patches 14 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 11 patches | 19 replies | Superseded |
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/29 | dt-bindings: display: rockchip,inno-hdmi: Document RK3128 compatibleDocumentation/ | +38 | 2 replies | |
| 2/29 | drm/rockchip: vop: Add output selection registers for RK312xdrivers/ drivers/ | +15 | 0 replies | |
| 3/29 | drm/rockchip: inno_hdmi: Fix video timingdrivers/ | +2 | 0 replies | |
| 4/29 | drm/rockchip: inno_hdmi: Remove useless mode_fixupdrivers/ | +0 | 0 replies | |
| 5/29 | drm/rockchip: inno_hdmi: Remove useless copy of drm_display_modedrivers/ | +0 | 0 replies | |
| 6/29 | drm/rockchip: inno_hdmi: Switch encoder hooks to atomicdrivers/ | +11 | 0 replies | |
| 7/29 | drm/rockchip: inno_hdmi: Get rid of mode_setdrivers/ | +11 | 0 replies | |
| 8/29 | drm/rockchip: inno_hdmi: no need to store vicdrivers/ | +5 | 0 replies | |
| 9/29 | drm/rockchip: inno_hdmi: Remove unneeded has audio flagdrivers/ | +0 | 0 replies | |
| 10/29 | drm/rockchip: inno_hdmi: Remove useless input formatdrivers/ | +11 | 0 replies | |
| 11/29 | drm/rockchip: inno_hdmi: Remove YUV-based csc coefficentsdrivers/ | +0 | 0 replies | |
| 12/29 | drm/rockchip: inno_hdmi: Remove tmds rate from structuredrivers/ | +5 | 0 replies | |
| 13/29 | drm/rockchip: inno_hdmi: Drop HDMI Vendor Infoframe supportdrivers/ | +10 | 0 replies | |
| 14/29 | drm/rockchip: inno_hdmi: Move infoframe disable to separate functiondrivers/ | +30 | 0 replies | |
| 15/29 | drm/rockchip: inno_hdmi: Switch to infoframe typedrivers/ | +11 | 0 replies | |
| 16/29 | drm/rockchip: inno_hdmi: Remove unused drm device pointerdrivers/ | +0 | 0 replies | |
| 17/29 | drm/rockchip: inno_hdmi: Drop irq struct memberdrivers/ | +0 | 0 replies | |
| 18/29 | drm/rockchip: inno_hdmi: Remove useless includedrivers/ | +0 | 0 replies | |
| 19/29 | drm/rockchip: inno_hdmi: Subclass connector statedrivers/ | +89 | 0 replies | |
| 20/29 | drm/rockchip: inno_hdmi: Correctly setup HDMI quantization rangedrivers/ | +42 | 0 replies | |
| 21/29 | drm/rockchip: inno_hdmi: Don't power up the phy after resettingdrivers/ | +1 | 0 replies | |
| 22/29 | drm/rockchip: inno_hdmi: Split power mode settingdrivers/ drivers/ | +24 | 0 replies | |
| 23/29 | drm/rockchip: inno_hdmi: Add variant supportdrivers/ | +69 | 0 replies | |
| 24/29 | drm/rockchip: inno_hdmi: Add RK3128 supportdrivers/ | +41 | 0 replies | |
| 25/29 | drm/rockchip: inno_hdmi: Add basic mode validationdrivers/ | +40 | 0 replies | |
| 26/29 | drm/rockchip: inno_hdmi: Drop custom fill_modes hookdrivers/ | +1 | 0 replies | |
| 27/29 | ARM: dts: rockchip: Add display subsystem for RK3128arch/ | +27 | 0 replies | |
| 28/29 | ARM: dts: rockchip: Add HDMI node for RK3128arch/ | +33 | 0 replies | |
| 29/29 | ARM: dts: rockchip: Enable HDMI output for XPI-3128arch/ | +29 | 0 replies |
Reviews trailers per patch
5 of 29 patches have a Reviewed-by or Acked-by.
| Patch | Conor Dooley | Alex Bee | Maxime Ripard |
|---|---|---|---|
| 1/29 | R-b | ||
| 2/29 | |||
| 3/29 | |||
| 4/29 | T-b | ||
| 5/29 | T-b | ||
| 6/29 | T-b | ||
| 7/29 | T-b | ||
| 8/29 | T-b | ||
| 9/29 | T-b | ||
| 10/29 | T-b | ||
| 11/29 | |||
| 12/29 | T-b | ||
| 13/29 | T-b | ||
| 14/29 | T-b | ||
| 15/29 | T-b | ||
| 16/29 | T-b | ||
| 17/29 | R-b | ||
| 18/29 | R-b | ||
| 19/29 | |||
| 20/29 | |||
| 21/29 | |||
| 22/29 | |||
| 23/29 | |||
| 24/29 | |||
| 25/29 | R-b | ||
| 26/29 | R-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.
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