drm/rockchip: vop2: Add NV20 and NV30 support
authorJonas Karlman <jonas@kwiboo.se>
Wed, 25 Oct 2023 21:32:46 +0000 (21:32 +0000)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 20 Nov 2023 17:00:46 +0000 (18:00 +0100)
commit5fc6aa7db080fd90ef00846aac04e8a211088132
tree8cb9359e2af046a35acbb0aad483f013ec97cc18
parenta32324280474b8279ac28aee672f45de6ab755a5
drm/rockchip: vop2: Add NV20 and NV30 support

Add support for the 10-bit 4:2:2 and 4:4:4 formats NV20 and NV30.

These formats can be tested using modetest [1]:

  modetest -P <plane_id>@<crtc_id>:1920x1080@<format>

e.g. on a ROCK 3 Model A (rk3568):

  modetest -P 43@67:1920x1080@NV20 -F tiles,tiles
  modetest -P 43@67:1920x1080@NV30 -F smpte,smpte

[1] https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/329

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Christopher Obbard <chris.obbard@collabora.com>
Tested-by: Christopher Obbard <chris.obbard@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20231025213248.2641962-1-jonas@kwiboo.se
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
drivers/gpu/drm/rockchip/rockchip_vop2_reg.c