From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Wed, 23 Aug 2017 10:35:15 +0200 Subject: [U-Boot] i2c: muxes: add i2c gpio multiplexer driver In-Reply-To: <1502704805-2735-1-git-send-email-peng.fan@nxp.com> References: <1502704805-2735-1-git-send-email-peng.fan@nxp.com> Message-ID: <599D3E43.20909@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Tested-by: Peng Fan (i.MX6QP-Sabreauto) > Cc: Heiko Schocher > Cc: Stefano Babic > Cc: Simon Glass > --- > 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