linux/drivers/i2c/muxes
Vadim Pasternak 84af1b168c i2c: mux: mlxcpld: Convert driver to platform driver
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: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Michael Shych <michaelsh@nvidia.com>
Acked-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
2021-02-09 11:35:19 +01:00
..
i2c-arb-gpio-challenge.c Merge branch 'i2c/for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2019-07-15 21:10:39 -07:00
i2c-demux-pinctrl.c i2c: mux: demux-pinctrl: Fix an error handling path in 'i2c_demux_pinctrl_probe()' 2020-05-15 11:23:49 +02:00
i2c-mux-gpio.c i2c: i2c-mux-gpio: Enable this driver in ACPI land 2021-01-17 12:52:58 +01:00
i2c-mux-gpmux.c i2c: mux: gpmux: Simplify with dev_err_probe() 2020-09-18 23:02:02 +02:00
i2c-mux-ltc4306.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
i2c-mux-mlxcpld.c i2c: mux: mlxcpld: Convert driver to platform driver 2021-02-09 11:35:19 +01:00
i2c-mux-pca954x.c i2c: mux: pca954x: Convert license to SPDX identifier 2020-05-11 21:23:23 +02:00
i2c-mux-pca9541.c i2c: mux: pca9541: use the BIT macro 2020-01-03 15:00:53 +01:00
i2c-mux-pinctrl.c Merge branch 'i2c/for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2019-07-15 21:10:39 -07:00
i2c-mux-reg.c i2c: mux: reg: Simplify with dev_err_probe() 2020-09-18 23:02:03 +02:00
Kconfig i2c: Fix Kconfig indentation 2019-11-25 17:13:51 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00