]> git.ipfire.org Git - thirdparty/linux.git/commit
drm: rz-du: Support panels connected directly to the DPAD output
authorhienhuynh <hien.huynh.px@renesas.com>
Thu, 8 May 2025 09:50:35 +0000 (10:50 +0100)
committerBiju Das <biju.das.jz@bp.renesas.com>
Wed, 14 May 2025 06:10:07 +0000 (07:10 +0100)
commit1f372c1fc6cff841e85913ad2b3b3680e94eabac
tree2bc7e75a11f5b72a3e3bc0339b13c88727a54625
parent64a8d0aa55e98bf2c9b7e1a3df3e8acbfecba619
drm: rz-du: Support panels connected directly to the DPAD output

This patch is based on the commit 73eb5476df72 ("drm: rcar-du: Support
panels connected directly to the DPAD outputs").

The RZ DU driver assumes that a bridge is always connected to the DU
output. This is valid for the HDMI output, but the DPAD output can be
connected directly to a panel, in which case no bridge is available.

To support this use case, detect whether the entities connected to the DU
DPAD output is encoders or panels based on the number of ports of their DT
node, and retrieve the corresponding type of DRM objects. For panels,
additionally create panel bridge instances.

Signed-off-by: hienhuynh <hien.huynh.px@renesas.com>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Tested-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Link: https://lore.kernel.org/r/20250508095042.25164-1-biju.das.jz@bp.renesas.com
drivers/gpu/drm/renesas/rz-du/rzg2l_du_encoder.c