]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/rockchip: vop2: Support setting custom background color
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Tue, 3 Mar 2026 19:24:20 +0000 (21:24 +0200)
committerDaniel Stone <daniels@collabora.com>
Wed, 18 Mar 2026 09:59:57 +0000 (09:59 +0000)
commitbec7cbfa7d4f57797ac5a17f6a543a550eccbd47
treee73a090507041c17a835e45bc7a2ea7318769572
parent0b9eff726d5636a1638786d2f659b8897950533b
drm/rockchip: vop2: Support setting custom background color

The Rockchip VOP2 display controller allows configuring the background
color of each video output port.

Since a previous patch introduced the BACKGROUND_COLOR CRTC property,
which defaults to solid black, make use of it when programming the
hardware.

Note the maximum precision allowed by the display controller is 10bpc,
while the alpha component is not supported, hence ignored.

Tested-by: Diederik de Haas <diederik@cknow-tech.com>
Reviewed-by: Andy Yan <andyshrk@163.com>
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Link: https://patch.msgid.link/20260303-rk3588-bgcolor-v8-4-fee377037ad1@collabora.com
Signed-off-by: Daniel Stone <daniels@collabora.com>
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
drivers/gpu/drm/rockchip/rockchip_drm_vop2.h