[U-Boot] [PATCH 0/4] arm: zynq: migrate to DM I2C driver

Michal Simek michal.simek at xilinx.com
Thu Jul 19 07:28:23 UTC 2018


On 9.7.2018 07:00, Luis Araneda wrote:
> This series migrate most zynq boards to using the
> Cadence DM I2C driver
> 
> The first patch adds kconfig options to generalize the concept
> of reading the MAC address from an I2C EEPROM. Then the zynq and
> zynqmp boards were migrated with patches two and three to use
> the options
> 
> Finally, the last patch migrates the boards to the Cadence I2C driver.
> The boards ZC702 and ZC706 were not migrated because they have
> I2C multiplexers and I don't have a board with a multiplexer to
> perform testing and validation
> 
> I ran a round of reproducible builds on master and another one
> after the third patch for all zynq and zynqmp boards, and the same
> binaries where generated for all boards
> 
> All commits were tested on a Digilent Zybo board
> 
> Luis Araneda (4):
>   drivers/misc: add options to read MAC address from EEPROM
>   arm: zynq: migrate EEPROM MAC address options to kconfig
>   arm64: zynqmp: migrate EEPROM MAC address options to kconfig
>   arm: zynq: use i2c cadence DM driver
> 
>  arch/arm/dts/zynq-syzygy-hub.dts              |  1 +
>  arch/arm/dts/zynq-zybo.dts                    | 10 ++++++
>  board/xilinx/zynq/board.c                     | 27 ++++++++++++----
>  board/xilinx/zynqmp/zynqmp.c                  | 10 +++---
>  configs/syzygy_hub_defconfig                  |  9 +++---
>  configs/topic_miami_defconfig                 |  5 ++-
>  configs/topic_miamilite_defconfig             |  5 ++-
>  configs/topic_miamiplus_defconfig             |  5 ++-
>  configs/xilinx_zynqmp_zcu102_rev1_0_defconfig |  5 ++-
>  configs/xilinx_zynqmp_zcu102_revA_defconfig   |  5 ++-
>  configs/xilinx_zynqmp_zcu102_revB_defconfig   |  5 ++-
>  configs/xilinx_zynqmp_zcu106_revA_defconfig   |  5 ++-
>  configs/xilinx_zynqmp_zcu111_revA_defconfig   |  5 ++-
>  configs/zynq_zybo_defconfig                   | 10 +++---
>  drivers/misc/Kconfig                          | 32 +++++++++++++++----
>  include/configs/syzygy_hub.h                  |  3 --
>  include/configs/xilinx_zynqmp_zcu102.h        |  2 --
>  include/configs/xilinx_zynqmp_zcu106.h        |  2 --
>  include/configs/xilinx_zynqmp_zcu111.h        |  2 --
>  include/configs/zynq_zybo.h                   |  2 --
>  20 files changed, 98 insertions(+), 52 deletions(-)
> 

Please take a look at
https://lists.denx.de/pipermail/u-boot/2016-November/274068.html which
was the series which should replace all these boards setting in a
generic way. Unfortunately I don't know why it didn't go through.

And then regarding DM i2c. Driver is in the driver for a while but for
i2c muxes support it requires all subbusses to be listed in DTS file
which is not what it is common in Linux dt binding. That's why some work
needs to be done in this area to convert all platforms.

Thanks,
Michal


More information about the U-Boot mailing list