video: sunxi_display: Convert to DM_VIDEO
authorJagan Teki <jagan@amarulasolutions.com>
Mon, 22 Feb 2021 00:12:34 +0000 (00:12 +0000)
committerAnatolij Gustschin <agust@denx.de>
Wed, 3 Mar 2021 09:03:15 +0000 (10:03 +0100)
commit5d235324ae7a5b04b37c63a3445020fbd89ac7b2
treed30c8213f37cbb8daee6a709b25882231a17594f
parentc5219c4a18f2b27547ecd799914f94e48b0fa86f
video: sunxi_display: Convert to DM_VIDEO

DM_VIDEO migration deadline is already expired, but around
80 Allwinner boards are still using video in a legacy way:

===================== WARNING ======================
This board does not use CONFIG_DM_VIDEO Please update
the board to use CONFIG_DM_VIDEO before the v2019.07 release.
Failure to update by the deadline may result in board removal.
See doc/driver-model/migration.rst for more info.
====================================================

Convert the legacy video driver over to the DM_VIDEO framework. This is
a minimal conversion: it doesn't use the DT for finding its resources,
nor does it use DM clocks or DM devices for the outputs (LCD, HDMI, CVBS).

Tested in Bananapi M1+ Plus 1920x1200 HDMI out. (Jagan)

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
[Andre: rebase and smaller fixes]
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Reviewed-by: Jernej Skrabec <jernej.skrabec@siol.net>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-sunxi/Kconfig
drivers/video/sunxi/sunxi_display.c
include/configs/sunxi-common.h
scripts/config_whitelist.txt