[PATCH v5? 0/6] Tweaked basic Synopsys DW HDMI QP TX driver for Rockchip RK3588
Shimrra Shai
shimrrashai at gmail.com
Fri Aug 30 08:21:24 PDT 2024
Hi,
I saw Cristian Ciocaltea's proposed basic driver for the Synopsys DW
HDMI QP transmit (TX) facility on the Rockchip RK3588 and noticed that
it had seen some critique and thought I'd help it along a little by
making some of the changes that others had suggested in the discussion
thread. This package is mostly like his(?) original but features the
following changes suggested by Conor Dooley and Heiko Stuebner:
* Documentation for the device tree bindings specifies the various
clocks explicitly in both the general (synopsys,dw-hdmi-qp.yaml)
and Rockchip-specific (rockchip,rk3588-dw-hdmi-qp.yaml) files.
* Changed the compatibles for the RK3588 VO0 and VO1 GRFs in the
Device Trees (rk3588-base.dtsi) to reflect their different natures.
and some of my own changes:
* Tweaked the driver code slightly - mostly organizational, but also
added a mutex around device access in the dw_hdmi_qp_... method
that was present in the downstream BSP driver which might have been
necessary to prevent thread bugs.
* Improved grammar & punctuation in some of the English on the
Kconfigs and output messages.
Let me know how you like it. I hope this is suitable enough for kernel
integration as I'd really like to be able to get some of the newest
kernels having video bringup out of the box. I'm testing and
developing on the Firefly ITX-3588J board; not sure if this will also
work on the Rock 5B too, as I don't have one, but since little was
done to the original driver I don't think it should break anything.
Moreover, I wanna get the device tree bindings nailed on this point
because I'd like to prepare a UEFI firmware package for this board
that would be capable of booting mainline kernels from this (or a
soon-to-be) version onward, without needing a separate device tree
file with the kernel, like a "proper" PC. That naturally implies
having at least all basic desktop functionality down, including video
output, before the DT is "baked" into the firmware.
- Shimrra Shai
Signed-off-by: Shimrra Shai <shimrrashai at gmail.com>
---
Link to Cristian's original w/previous versions' history: https://lore.kernel.org/linux-rockchip/20240819-b4-rk3588-bridge-upstream-v4-0-6417c72a2749@collabora.com/
Total changes:
Documentation/devicetree/bindings/display/bridge/synopsys,dw-hdmi-qp.yaml | 89 +++++++++++
Documentation/devicetree/bindings/display/rockchip/rockchip,rk3588-dw-hdmi-qp.yaml | 171 ++++++++++++++++++++
Documentation/devicetree/bindings/soc/rockchip/grf.yaml | 6 +-
arch/arm64/boot/dts/rockchip/rk3588-base.dtsi | 44 ++++-
drivers/gpu/drm/bridge/synopsys/Kconfig | 8 +
drivers/gpu/drm/bridge/synopsys/Makefile | 1 +
drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.c | 780 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
drivers/gpu/drm/bridge/synopsys/dw-hdmi-qp.h | 834 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
drivers/gpu/drm/rockchip/Kconfig | 9 ++
drivers/gpu/drm/rockchip/Makefile | 1 +
drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c | 431 +++++++++++++++++++++++++++++++++++++++++++++++++
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 2 +
drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 1 +
include/drm/bridge/dw_hdmi_qp.h | 36 +++++
14 files changed, 2409 insertions(+), 4 deletions(-)
More information about the linux-arm-kernel
mailing list