[PATCH 10/11] sunxi: video: Convert panel I2C to use DM_I2C

Heiko Schocher hs at denx.de
Sun Aug 22 10:41:43 CEST 2021


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 at 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 at denx.de>

bye,
Heiko

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list