[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240830152132.8894-1-shimrrashai@gmail.com>
Date: Fri, 30 Aug 2024 10:21:24 -0500
From: Shimrra Shai <shimrrashai@...il.com>
To: andrzej.hajda@...el.com,
neil.armstrong@...aro.org,
rfoss@...nel.org,
Laurent.pinchart@...asonboard.com,
jonas@...boo.se,
jernej.skrabec@...il.com,
maarten.lankhorst@...ux.intel.com,
mripard@...nel.org,
tzimmermann@...e.de,
airlied@...il.com,
daniel@...ll.ch,
hjc@...k-chips.com,
heiko@...ech.de,
andy.yan@...k-chips.com,
robh@...nel.org,
krzk+dt@...nel.org,
conor+dt@...nel.org,
markyao0591@...il.com,
s.hauer@...gutronix.de
Cc: dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org,
devicetree@...r.kernel.org,
aarnoud@...com,
ldearquer@...il.com,
algea.cao@...k-chips.com,
cristian.ciocaltea@...labora.com,
Shimrra Shai <shimrrashai@...il.com>
Subject: [PATCH v5? 0/6] Tweaked basic Synopsys DW HDMI QP TX driver for Rockchip RK3588
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@...il.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(-)
Powered by blists - more mailing lists