1. 27 8月, 2017 24 次提交
  2. 23 8月, 2017 2 次提交
    • P
      i2c: muxes: add i2c gpio multiplexer driver · a430556e
      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: NPeng Fan <peng.fan@nxp.com>
      Tested-by: Peng Fan <peng.fan@nxp.com> (i.MX6QP-Sabreauto)
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      a430556e
    • P
      i2c: add i2c driver for stm32 · 4fadcaf0
      Patrice Chotard 提交于
      Add i2c driver which can be used on both STM32F7 and STM32H7.
      This I2C block supports the following features:
       _ Slave and master modes
       _ Multimaster capability
       _ Standard-mode (up to 100 kHz)
       _ Fast-mode (up to 400 kHz)
       _ Fast-mode Plus (up to 1 MHz)
       _ 7-bit and 10-bit addressing mode
       _ Multiple 7-bit slave addresses (2 addresses, 1 with configurable mask)
       _ All 7-bit addresses acknowledge mode
       _ General call
       _ Programmable setup and hold times
       _ Easy to use event management
       _ Optional clock stretching
       _ Software reset
      Signed-off-by: NChristophe Kerello <christophe.kerello@st.com>
      Signed-off-by: NPatrice Chotard <patrice.chotard@st.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      4fadcaf0
  3. 22 8月, 2017 2 次提交
  4. 21 8月, 2017 12 次提交