1. 09 Feb, 2021 2 commits
    • Vadim Pasternak's avatar
      i2c: mux: mlxcpld: Prepare mux selection infrastructure for two-byte support · 81566938
      Vadim Pasternak authored
      Allow to program register value zero to the mux register, which is
      required for word address mux register space support.
      Change key selector type from 'unsigned short' to 'integer' in order to
      allow to set it to -1 on deselection.
      Rename key selector field from 'last_chan' to 'last_val', since this
      fields keeps actually selector value and not channel number.
      Signed-off-by: default avatarVadim Pasternak <vadimp@nvidia.com>
      Acked-by: default avatarPeter Rosin <peda@axentia.se>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      81566938
    • Vadim Pasternak's avatar
      i2c: mux: mlxcpld: Convert driver to platform driver · 84af1b16
      Vadim Pasternak authored
      Convert driver from 'i2c' to 'platform'.
      The motivation is to avoid I2C addressing conflict between
      ‘i2c-mux-cpld’ driver, providing mux selection and deselection through
      CPLD ‘mux control’ register, and CPLD host driver. The CPLD is I2C
      device and is multi-functional device performing logic for different
      components, like LED, ‘hwmon’, interrupt control, watchdog etcetera.
      For such configuration CPLD should be host I2C device, connected to the
      relevant I2C bus with the relevant I2C address and all others component
      drivers are supposed to be its children.
      The hierarchy in such case will be like in the below example:
      ls /sys/bus/i2c/devices/44-0032
      i2c-mux-mlxcpld.44  leds-mlxreg.44  mlxreg-io.44
      ls /sys/bus/i2c/devices/44-0032/i2c-mux-mlxcpld.44
      channel-0, …,  channel-X
      
      Currently this driver is not activated by any kernel driver,
      so this conversion doesn’t affect any user.
      Signed-off-by: default avatarVadim Pasternak <vadimp@nvidia.com>
      Reviewed-by: default avatarMichael Shych <michaelsh@nvidia.com>
      Acked-by: default avatarPeter Rosin <peda@axentia.se>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      84af1b16
  2. 01 Feb, 2021 8 commits
  3. 28 Jan, 2021 6 commits
  4. 25 Jan, 2021 1 commit
  5. 24 Jan, 2021 23 commits