Hello Peng Fan,

Am 14.08.2017 um 12:00 schrieb Peng Fan:
Add an i2c mux driver providing access to i2c bus segments using a
hardware MUX sitting on a master bus and controlled through gpio pins.

E.G. something like:

          ----------              ----------  Bus segment 1   - - - - -
         |          | SCL/SDA    |          |-------------- |           |
         |          |------------|          |
         |          |            |          | Bus segment 2 |           |
         |  Linux   | GPIO 1..N  |   MUX    |---------------   Devices
         |          |------------|          |               |           |
         |          |            |          | Bus segment M
         |          |            |          |---------------|           |
          ----------              ----------                  - - - - -

SCL/SDA of the master I2C bus is multiplexed to bus segment 1..M
according to the settings of the GPIO pins 1..N.

Note commit log from kernel
commit 92ed1a76("i2c: Add generic I2C multiplexer using GPIO API")

Signed-off-by: Peng Fan <peng....@nxp.com>
Tested-by: Peng Fan <peng....@nxp.com> (i.MX6QP-Sabreauto)
Cc: Heiko Schocher <h...@denx.de>
Cc: Stefano Babic <sba...@denx.de>
Cc: Simon Glass <s...@chromium.org>
---
  drivers/i2c/muxes/Kconfig        |   9 +++
  drivers/i2c/muxes/Makefile       |   1 +
  drivers/i2c/muxes/i2c-mux-gpio.c | 138 +++++++++++++++++++++++++++++++++++++++
  3 files changed, 148 insertions(+)
  create mode 100644 drivers/i2c/muxes/i2c-mux-gpio.c

Applied to u-boot-i2c master

Thanks!

bye,
Heiko
--
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to