[U-Boot] [PATCH 0/8] drivers: i2c: davinci_i2c: Convert driver to DM

Franklin S Cooper Jr fcooper at ti.com
Tue Apr 11 18:37:17 UTC 2017


This patch series converts the davinci i2c driver to use device model.
This updated driver has been verified on both Keystone K2G and Keystone
K2L evms by performing several i2c operations in U-boot prompt.

Some additional work was required to get things working on K2G due to
the code that reads the on board EEPROM. DM I2C sets the default address
length to a default value of 1 when the on EEPROM requires an address
length of 2. Therefore, an additional function and minor changes were
required to get things working properly.

Franklin S Cooper Jr (8):
  i2c: davinci: Split functions into two parts for future DM support
  drivers: i2c: davinci_i2c: Update davinci i2c driver to driver model
  ti: common: board_detect: Introduce function to set the address
    length.
  ti: common: board_detect: Set alen to expected value before i2c read
  ARM: dts: k2g: Add I2C nodes to 66AK2Gx
  ARM: dts: keystone2: add I2C aliases for davinci I2C nodes
  ARM: dts: keystone-k2g-evm: Enable I2C0 and I2C1
  defconfig: keystone: Enable DM I2C

 arch/arm/dts/keystone-k2g-evm.dts |   8 ++
 arch/arm/dts/keystone-k2g.dtsi    |  32 +++++
 arch/arm/dts/keystone.dtsi        |   3 +
 board/ti/common/board_detect.c    |  61 ++++++++-
 configs/k2e_evm_defconfig         |   1 +
 configs/k2g_evm_defconfig         |   1 +
 configs/k2hk_evm_defconfig        |   1 +
 configs/k2l_evm_defconfig         |   1 +
 drivers/i2c/davinci_i2c.c         | 277 +++++++++++++++++++++++++++-----------
 9 files changed, 306 insertions(+), 79 deletions(-)

-- 
2.10.0



More information about the U-Boot mailing list