
Hello Samuel,
On 22.08.21 01:05, Samuel Holland wrote:
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.
Signed-off-by: Samuel Holland samuel@sholland.org
arch/arm/mach-sunxi/Kconfig | 22 ++---- board/sunxi/board.c | 44 +----------- configs/Colombus_defconfig | 6 -- configs/UTOO_P66_defconfig | 3 - drivers/video/anx9804.c | 107 ++++++++++++++-------------- drivers/video/anx9804.h | 5 +- drivers/video/sunxi/sunxi_display.c | 55 +++++++++----- include/configs/sunxi-common.h | 17 ----- 8 files changed, 102 insertions(+), 157 deletions(-)
Reviewed-by: Heiko Schocher hs@denx.de
bye, Heiko