[U-Boot] [PATCH 0/7] i2c: lpc32xx: add DM support

Sylvain Lemieux slemieux.tyco at gmail.com
Tue Mar 14 15:24:38 UTC 2017


From: Sylvain Lemieux <slemieux at tycoint.com>

This patchset add DM support to the I2C LPC32xx platform.
All I2C drivers should be converted, to DM, by the end of June 2017.

The I2C driver is supporting the DM and non-DM setup.

Since the mainline LPC32xx boards are not supporting the devicetree
bindings, patch #6 and #7 are required to ensure the LPC32xx I2C driver
is working properly in DM in a non-device tree environment.
Refer to the individual patch for details.

A separate patch will update the LPC32xx USB driver to support
the DM i2C API (depend on this patchset).

Another patch will add the support to the LPC32xx platform
for I2C DM in a non-device tree environment
(depend on this patchset and the LPC32xx USB patch).

This patchset, and the other 2 patch (USB & platform) were tested
on a two different custom LPC32xx board.

To enable the mainline LPC32xx board (devkit3250 & work_92105),
the following should be done:
* Remove "#define CONFIG_SYS_I2C" from board header file and
  add "CONFIG_DM_I2C=y" to the board defconfig file.

Liam Beguin (6):
  i2c: lpc32xx: Rename probe function
  i2c: lpc32xx: Prepare compatibility functions
  i2c: lpc32xx: Factor out i2c_adapter parameter
  i2c: lpc32xx: Add DM for lpc32xx I2C
  i2c: lpc32xx: Move definitions to header file
  i2c: lpc32xx: Force consistent bus numbering

Sylvain Lemieux (1):
  i2c: lpc32xx: Remove note for DM conversation

 arch/arm/include/asm/arch-lpc32xx/i2c.h |  37 +++++
 drivers/i2c/lpc32xx_i2c.c               | 237 ++++++++++++++++++++++----------
 2 files changed, 201 insertions(+), 73 deletions(-)
 create mode 100644 arch/arm/include/asm/arch-lpc32xx/i2c.h

-- 
2.11.0



More information about the U-Boot mailing list