Skip to content

DM_I2C_COMPAT removal for all ti platforms

Tom Rini u-boot 2 versions – New

Get series with b4
b4 am 20181207142320.GS14374@bill-the-cat

Versions newest first · linked by author and title

  1. v3 Latest posting 2/214 of 19 patches 0 repliesNew
  2. v3 posting 1/215 of 19 patches 0 repliesSuperseded

14 of 19 patches are in this archive. The cover letter announces 19.

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT+0 -00 replies
4/19configs: am335x: am57x: dra7x: Enable CONFIG_SPL_DM_SEQ_ALIAS+0 -00 replies
5/19i2c: omap24xx_i2c: Move away from SoC specific headers for reg offset+0 -00 replies
6/19i2c: omap24xx_i2c: Use platdata to probe the device+0 -00 replies
7/19am335x: Register the I2C controllers if DM_I2C is used.+0 -00 replies
8/19dts: am43x: omap5: Add node for I2C in SPL+0 -00 replies
9/19omap: detect the board after DM is available+0 -00 replies
10/19power: make most tps drivers and the twl4030 driver compatible with DM_I2C+0 -00 replies
11/19ti: common: board_detect: Allow DM I2C without CONFIG_DM_I2C_COMPAT+0 -00 replies
13/19ti: remove usage of DM_I2C_COMPAT and don't disable DM_I2C in SPL+0 -00 replies
14/19am57xx: remove non-DM I2C code+0 -00 replies
15/19configs: dra7xx-evm: increase the size of the malloc's pool before relocation+0 -00 replies
17/19drivers: core: Add the option SPL_DM_DEVICE_REMOVE to the Kconfig+0 -00 replies
19/19dra7: Allow selecting a new dtb after board detection.+0 -00 replies

Reviews trailers per patch

All 14 patches have a Reviewed-by or Acked-by.

PatchTom Rini
1/19R-b
4/19R-b
5/19R-b
6/19R-b
7/19R-b
8/19R-b
9/19R-b
10/19R-b
11/19R-b
13/19R-b
14/19R-b
15/19R-b
17/19R-b
19/19R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [U-Boot] [RESEND PATCH v3 00/19] DM_I2C_COMPAT removal for all ti platforms
Quoted 35 lines · Jean-Jacques Hiblot

This series remove the usage of the DM_I2C_COMPAT option for all the ti platforms. It also takes this opportunity to not disable DM_I2C in the SPL.

There are a couples of issues to fix:
- CMD_EEPROM does not support the DM API. Fixed by removing this option when DM_I2C is used without DM_I2C_COMPAT
- i2c_get_chip_for_busnum() does not work when OF_CONTROL is not used (as is the case with am33xx SPL).
- The I2C driver do not support DM_I2C without OF_CONTROL.
- Most of the PMIC drivers do not support the I2C DM API.
- Board detection is done prior DM initialization. Fixed by moving it after DM is initialized. That move breaks the DRA7 platforms (The fixes for that are at the last 5 patches this series)

When all this is taken care of DM_I2C_COMPAT can be removed and DM_I2C enabled in the SPL.

This has been tested with the following boards:
- am437x SK
- am335x SK
- am335x beaglebone (both DM and non-DM config)
- dra76 evm
- am572 evm
- k2g evm

The following targets may be impacted by the changes related to SPL_OF_CONTROL and SPL_OF_PLATDATA:
- am3517_evm_defconfig
- omap3_logic_defconfig
- chromebit_mickey_defconfig
- chromebook_jerry_defconfig
- chromebook_minnie_defconfig
- evb-rk3399_defconfig
- rock_defconfig

Quoted 1 line

It would be nice it some of you could try to boot them.

So I've just reviewed-by all of the TI parts. Heiko, do you want this via the I2C tree? Simon, do you want this via the DM tree? Do both of you just want me to grab it instead? The window on applying this for this release is closing quickly but this has been around for long enough that I'd like to see it go in. Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181207/2fd6b741/attachment.sig>