Re: [PATCH v6 3/3] drm/rockchip: Add basic RK3588 HDMI output support

From: Cristian Ciocaltea
Date: Tue Sep 10 2024 - 08:06:39 EST


On 9/10/24 2:27 PM, Heiko Stübner wrote:
> Am Freitag, 6. September 2024, 03:17:42 CEST schrieb Cristian Ciocaltea:
>> The RK3588 SoC family integrates the newer Synopsys DesignWare HDMI 2.1
>> Quad-Pixel (QP) TX controller IP and a HDMI/eDP TX Combo PHY based on a
>> Samsung IP block.
>>
>> Add just the basic support for now, i.e. RGB output up to 4K@60Hz,
>> without audio, CEC or any of the HDMI 2.1 specific features.
>>
>> Co-developed-by: Algea Cao <algea.cao@xxxxxxxxxxxxxx>
>> Signed-off-by: Algea Cao <algea.cao@xxxxxxxxxxxxxx>
>> Tested-by: Heiko Stuebner <heiko@xxxxxxxxx>
>> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@xxxxxxxxxxxxx>
>> ---
>> drivers/gpu/drm/rockchip/Kconfig | 8 +
>> drivers/gpu/drm/rockchip/Makefile | 1 +
>> drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c | 437 +++++++++++++++++++++++++
>> drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 2 +
>> drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 1 +
>> 5 files changed, 449 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/rockchip/Kconfig b/drivers/gpu/drm/rockchip/Kconfig
>> index 7df875e38517..4da7cef24f57 100644
>> --- a/drivers/gpu/drm/rockchip/Kconfig
>> +++ b/drivers/gpu/drm/rockchip/Kconfig
>> @@ -8,6 +8,7 @@ config DRM_ROCKCHIP
>> select VIDEOMODE_HELPERS
>> select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP
>> select DRM_DW_HDMI if ROCKCHIP_DW_HDMI
>> + select DRM_DW_HDMI_QP if ROCKCHIP_DW_HDMI_QP
>> select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI
>> select GENERIC_PHY if ROCKCHIP_DW_MIPI_DSI
>> select GENERIC_PHY_MIPI_DPHY if ROCKCHIP_DW_MIPI_DSI
>> @@ -63,6 +64,13 @@ config ROCKCHIP_DW_HDMI
>> enable HDMI on RK3288 or RK3399 based SoC, you should select
>> this option.
>>
>> +config ROCKCHIP_DW_HDMI_QP
>> + bool "Rockchip specific extensions for Synopsys DW HDMI QP"
>
> this needs a
> + select DRM_BRIDGE_CONNECTOR
>
> now, otherwise it can't link the drm_bridge_connector_init function

That's because of a recent change [1] which I was aware of, but didn't
actually follow when that got merged. This series is still based on
v6.11-rc1, hence we should probably switch to linux-next starting with the
next revision.

Thanks,
Cristian

[1] https://lore.kernel.org/dri-devel/20240715-drm-bridge-connector-fix-hdmi-reset-v4-4-61e6417cfd99@xxxxxxxxxx/