1. 06 Aug, 2015 1 commit
    • Simon Glass's avatar
      dm: i2c: Add support for multiplexed I2C buses · 3d1957f0
      Simon Glass authored
      Add a new I2C_MUX uclass. Devices in this class can multiplex between
      several I2C buses, selecting them one at a time for use by the system.
      The multiplexing mechanism is left to the driver to decide - it may be
      controlled by GPIOs, for example.
      The uclass supports only two methods: select() and deselect().
      The current mux state is expected to be stored in the mux itself since
      it is the only thing that knows how to make things work. The mux can
      record the current state and then avoid switching unless it is necessary.
      So select() can be skipped if the mux is already in the correct state.
      Also deselect() can be made a nop if required.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
  2. 18 Apr, 2015 1 commit
    • Przemyslaw Marczak's avatar
      dm: i2c: add i2c-gpio driver · c54473cb
      Przemyslaw Marczak authored
      This commit adds driver model support to software emulated i2c bus driver.
      This driver supports kernel-style device tree bindings. Fdt properties in use:
      - compatible - "i2c-gpio"
      - gpios      - data and clock GPIO pin phandles
      - delay-us   - micro seconds delay between GPIOs toggle operations,
                     which is 1/4 of I2C speed clock period.
      - Config: CONFIG_DM_I2C_GPIO
      - File: drivers/i2c/i2c-gpio.c
      - File: doc/device-tree-bindings/i2c/i2c-gpio.txt
      Driver base code is taken from: drivers/i2c/soft-i2c.c, changes:
      - use "i2c-gpio" naming
      - update comments style
      - move preprocesor macros into functions
      - add device tree support
      - add driver model i2c support
      - code cleanup,
      - add Kconfig entry
      Signed-off-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      Added braces in i2c_gpio_xfer() to fix style nit:
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
  3. 30 Jan, 2015 1 commit
  4. 16 Apr, 2012 1 commit
  5. 29 Mar, 2012 1 commit