]> git.baikalelectronics.ru Git - uboot.git/commit
sunxi: video: Convert panel I2C to use DM_I2C
authorSamuel Holland <samuel@sholland.org>
Fri, 8 Oct 2021 05:17:24 +0000 (00:17 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Tue, 12 Oct 2021 10:01:17 +0000 (11:01 +0100)
commit62beffb54878800785500d5f42ae0945876e2aed
treee83a736271f7f6ad91a93fdb5cb4a132232da72c
parent2333ae24ba3825cabbb8573a6f65e26ac45a3e44
sunxi: video: Convert panel I2C to use DM_I2C

Two displays supported by the sunxi display driver (each one used by a
single board) require initialization over I2C. Both previously used
i2c_soft; replace this with the i2c-gpio instance that already exists in
those boards' device trees (sun5i-a13-utoo-p66 and sun6i-a31-colombus).

Since the i2c-gpio nodes are not referenced by any other node in the
device trees (the device trees have no panel node), the I2C bus is
selected by its node name.

This panel initialization code was the only i2c_soft user, so the
i2c_soft GPIO setup code can be removed now as well.

Reviewed-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/mach-sunxi/Kconfig
board/sunxi/board.c
configs/Colombus_defconfig
configs/UTOO_P66_defconfig
drivers/video/anx9804.c
drivers/video/anx9804.h
drivers/video/sunxi/sunxi_display.c
include/configs/sunxi-common.h