Skip to content

Automatically register i2c devices from the device tree

Grant Likely linux-devicetree linux-i2c lkml 1 version New

Get series with b4
b4 am 20100624200509.10527.513.stgit@angua

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3of/i2c: Generalize OF supportdrivers/i2c/busses/i2c-cpm.c drivers/i2c/busses/i2c-ibm_iic.c drivers/i2c/busses/i2c-mpc.c +3 more+46 -280 replies
2/3i2c: Add OF-style registration and bindingdrivers/i2c/busses/i2c-cpm.c drivers/i2c/busses/i2c-ibm_iic.c drivers/i2c/busses/i2c-mpc.c +1 more+9 -90 replies
3/3of: refactor of_modalias_node() and remove explicit match table.arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c drivers/mmc/host/mmc_spi.c drivers/of/base.c+23 -550 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Automatically register i2c devices from the device tree

The following series adds automatic registration of i2c devices from OF device tree data. If the i2c bus has the of_node pointer set, then it will use that node pointer as the parent for a set of i2c devices and automatically register the child nodes as new i2c devices.

When CONFIG_OF is not set, the of i2c hooks become empty stubs.

---

Grant Likely (3):
of/i2c: Generalize OF support
i2c: Add OF-style registration and binding
of: refactor of_modalias_node() and remove explicit match table.

 arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c |    6 ++
 drivers/i2c/busses/i2c-cpm.c                   |    6 --
 drivers/i2c/busses/i2c-ibm_iic.c               |    4 --
 drivers/i2c/busses/i2c-mpc.c                   |    2 -
 drivers/i2c/i2c-core.c                         |    9 +++
 drivers/mmc/host/mmc_spi.c                     |    8 +++
 drivers/of/Kconfig                             |    2 -
 drivers/of/base.c                              |   64 +++---------------------
 drivers/of/of_i2c.c                            |   50 +++++++++++--------
 include/linux/of_i2c.h                         |   13 ++++-
 10 files changed, 75 insertions(+), 89 deletions(-)