[U-Boot] i2c: muxes: add i2c gpio multiplexer driver

Heiko Schocher hs at denx.de
Wed Aug 23 08:35:15 UTC 2017


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.fan at nxp.com>
> Tested-by: Peng Fan <peng.fan at nxp.com> (i.MX6QP-Sabreauto)
> Cc: Heiko Schocher <hs at denx.de>
> Cc: Stefano Babic <sbabic at denx.de>
> Cc: Simon Glass <sjg at 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


More information about the U-Boot mailing list