drm/vc4: Separate VEC compatible variants
authorMateusz Kwiatkowski <kfyatek+publicgit@gmail.com>
Thu, 20 May 2021 15:03:43 +0000 (17:03 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 24 May 2021 11:52:33 +0000 (13:52 +0200)
commita122d70bb81f1429e2ce472907c358adfa3ebe5f
treeabe9d8992eb2936e8b6ed8e40f7e2ad099dbc685
parent082152aacd04069fe050be4706e57263fee64336
drm/vc4: Separate VEC compatible variants

The VEC's DAC on BCM2711 is slightly different compared to the one on
BCM283x and needs different configuration. In particular, bit 3
(mask 0x8) switches the BCM2711 DAC input to "self-test input data",
which makes the output unusable. Separating two compatible variants in
devicetrees and the DRM driver was therefore necessary.

The configurations used for both variants have been borrowed from
Raspberry Pi (model 3B for BCM283x, 4B for BCM2711) firmware defaults.

Signed-off-by: Mateusz Kwiatkowski <kfyatek+publicgit@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210520150344.273900-4-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_vec.c