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

Lokesh Vutla lokeshvutla at ti.com
Thu Jun 8 05:13:36 UTC 2017



On Thursday 20 April 2017 08:55 PM, Franklin S Cooper Jr wrote:
> 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.

This series breaks boot in K2HK evm. Below is the log.

U-Boot 2017.05-00088-g1743d040b1 (Jun 08 2017 - 10:38:00 +0530)

CPU: 66AK2Hx SR1.1
Model: Texas Instruments Keystone 2 Kepler/Hawking EVM
DRAM:  Cannot read DIMM params
Sorry, I don't know how to configure DDR3A.
Bye :(


Can you please look at it.

Thanks and regards,
Lokesh

> 
> 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
>   ARM: keystone: Enable DM_I2C by default
> 
>  arch/arm/dts/keystone-k2g-evm.dts |   8 ++
>  arch/arm/dts/keystone-k2g.dtsi    |  32 +++++
>  arch/arm/dts/keystone.dtsi        |   3 +
>  arch/arm/mach-keystone/Kconfig    |   4 +
>  board/ti/common/board_detect.c    |  61 ++++++++-
>  drivers/i2c/davinci_i2c.c         | 277 +++++++++++++++++++++++++++-----------
>  6 files changed, 306 insertions(+), 79 deletions(-)
> 


More information about the U-Boot mailing list