mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/3] I2C: assign bus numbers from device tree
@ 2024-10-25  7:30 Sascha Hauer
  2024-10-25  7:30 ` [PATCH 1/3] i2c: set adapter.nr explicitly to -1 Sascha Hauer
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Sascha Hauer @ 2024-10-25  7:30 UTC (permalink / raw)
  To: open list:BAREBOX

Like done with SPI controllers already let's assign the I2C bus numbers
from device tree as well. This avoids confusing bus numbers when the
probe order doesn't match the intended bus number ordering or when
other I2C busses with dynamically assigned numbers are probed in
between.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
Sascha Hauer (3):
      i2c: set adapter.nr explicitly to -1
      i2c: get adapter.nr from device tree
      i2c: start dynamic I2C bus numbers at 32

 drivers/i2c/busses/i2c-at91.c       | 2 +-
 drivers/i2c/busses/i2c-bcm283x.c    | 2 +-
 drivers/i2c/busses/i2c-cadence.c    | 2 +-
 drivers/i2c/busses/i2c-designware.c | 2 +-
 drivers/i2c/busses/i2c-imx.c        | 2 +-
 drivers/i2c/busses/i2c-mv64xxx.c    | 2 +-
 drivers/i2c/busses/i2c-rockchip.c   | 2 +-
 drivers/i2c/busses/i2c-stm32.c      | 2 +-
 drivers/i2c/busses/i2c-tegra.c      | 2 +-
 drivers/i2c/i2c.c                   | 5 ++++-
 10 files changed, 13 insertions(+), 10 deletions(-)
---
base-commit: e55e492573e33823f25935ee00fe7fa7bf2c5c90
change-id: 20241025-i2c-busnum-bd3bdee6c0c3

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-28 12:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-25  7:30 [PATCH 0/3] I2C: assign bus numbers from device tree Sascha Hauer
2024-10-25  7:30 ` [PATCH 1/3] i2c: set adapter.nr explicitly to -1 Sascha Hauer
2024-10-25 13:43   ` Alexander Shiyan
2024-10-28 12:11     ` Sascha Hauer
2024-10-25  7:30 ` [PATCH 2/3] i2c: get adapter.nr from device tree Sascha Hauer
2024-10-25  7:30 ` [PATCH 3/3] i2c: start dynamic I2C bus numbers at 32 Sascha Hauer
2024-10-28 12:11 ` [PATCH 0/3] I2C: assign bus numbers from device tree Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox