1. 12 4月, 2017 1 次提交
  2. 18 11月, 2016 1 次提交
    • V
      i2c: mux: mellanox: add driver · c02b7bf5
      Vadim Pasternak 提交于
      This driver allows I2C routing controlled through CPLD select registers on
      a wide range of Mellanox systems (CPLD Lattice device).
      MUX selection is provided by digital and analog HW. Analog part is not
      under SW control.
      Digital part is under CPLD control (channel selection/de-selection).
      
      Connectivity schema.
      .---.             .-------------.
      | l |             |             |-- i2cx1 -- i2cx8
      | i |-- i2cn --+--| mlxcpld mux |
      | n |          |  |             |-- i2cy1 -- i2cy8
      | u |          |  '-------------'
      | x |          |         |
      '---'          '---------'
      
      i2c-mux-mlxpcld does not necessarily require i2c-mlxcpld. It can be used
      along with another bus driver, and still control i2c routing through CPLD
      mux selection, in case the system is equipped with CPLD capable of mux
      selection control.
      
      The Kconfig currently controlling compilation of this code is:
      drivers/i2c/muxes/Kconfig:config I2C_MUX_MLXCPLD
      Signed-off-by: NMichael Shych <michaelsh@mellanox.com>
      Signed-off-by: NVadim Pasternak <vadimp@mellanox.com>
      Reviewed-by: NJiri Pirko <jiri@mellanox.com>
      Acked-by: NPeter Rosin <peda@axentia.se>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      c02b7bf5
  3. 15 11月, 2016 1 次提交
  4. 13 2月, 2016 1 次提交
  5. 24 8月, 2015 1 次提交
  6. 12 5月, 2015 1 次提交
  7. 27 6月, 2014 1 次提交
    • L
      i2c: mux: pca954x: fix dependencies · e556756a
      Linus Walleij 提交于
      This driver causes the following randconfig build error:
      
      drivers/i2c/muxes/i2c-mux-pca954x.c: In function ‘pca954x_probe’:
      drivers/i2c/muxes/i2c-mux-pca954x.c:204:2: error: implicit declaration
      of function ‘devm_gpiod_get’ [-Werror=implicit-function-declaration]
        gpio = devm_gpiod_get(&client->dev, "reset");
        ^
      drivers/i2c/muxes/i2c-mux-pca954x.c:204:7: warning: assignment makes
      pointer from integer without a cast [enabled by default]
        gpio = devm_gpiod_get(&client->dev, "reset");
             ^
      drivers/i2c/muxes/i2c-mux-pca954x.c:206:3: error: implicit declaration
      of function ‘gpiod_direction_output’
      [-Werror=implicit-function-declaration]
         gpiod_direction_output(gpio, 0);
         ^
      cc1: some warnings being treated as errors
      make[3]: *** [drivers/i2c/muxes/i2c-mux-pca954x.o] Error 1
      
      This is because it is getting compiled without gpiolib, so
      introduce an explicit dependency.
      Reported-by: NJim Davis <jim.epost@gmail.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      e556756a
  8. 17 4月, 2013 1 次提交
  9. 16 4月, 2013 1 次提交
  10. 12 1月, 2013 1 次提交
  11. 04 6月, 2012 1 次提交
  12. 12 5月, 2012 2 次提交
  13. 11 1月, 2011 1 次提交
    • P
      i2c: Add generic I2C multiplexer using GPIO API · 92ed1a76
      Peter Korsgaard 提交于
      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.
      Signed-off-by: NPeter Korsgaard <peter.korsgaard@barco.com>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      92ed1a76
  14. 25 10月, 2010 1 次提交
  15. 12 8月, 2010 1 次提交