2012-05-18 23:29:34 +08:00
|
|
|
/*
|
|
|
|
* I2C multiplexer using pinctrl API
|
|
|
|
*
|
|
|
|
* Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms and conditions of the GNU General Public License,
|
|
|
|
* version 2, as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
* more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/i2c.h>
|
|
|
|
#include <linux/i2c-mux.h>
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/pinctrl/consumer.h>
|
|
|
|
#include <linux/platform_device.h>
|
|
|
|
#include <linux/slab.h>
|
2013-10-16 17:56:33 +08:00
|
|
|
#include <linux/of.h>
|
i2c: mux: relax locking of the top i2c adapter during mux-locked muxing
With a i2c topology like the following
GPIO ---| ------ BAT1
| v /
I2C -----+----------+---- MUX
| \
EEPROM ------ BAT2
there is a locking problem with the GPIO controller since it is a client
on the same i2c bus that it muxes. Transfers to the mux clients (e.g. BAT1)
will lock the whole i2c bus prior to attempting to switch the mux to the
correct i2c segment. In the above case, the GPIO device is an I/O expander
with an i2c interface, and since the GPIO subsystem knows nothing (and
rightfully so) about the lockless needs of the i2c mux code, this results
in a deadlock when the GPIO driver issues i2c transfers to modify the
mux.
So, observing that while it is needed to have the i2c bus locked during the
actual MUX update in order to avoid random garbage on the slave side, it
is not strictly a must to have it locked over the whole sequence of a full
select-transfer-deselect mux client operation. The mux itself needs to be
locked, so transfers to clients behind the mux are serialized, and the mux
needs to be stable during all i2c traffic (otherwise individual mux slave
segments might see garbage, or worse).
Introduce this new locking concept as "mux-locked" muxes, and call the
pre-existing mux locking scheme "parent-locked".
Modify the i2c mux locking so that muxes that are "mux-locked" locks only
the muxes on the parent adapter instead of the whole i2c bus when there is
a transfer to the slave side of the mux. This lock serializes transfers to
the slave side of the muxes on the parent adapter.
Add code to i2c-mux-gpio and i2c-mux-pinctrl that checks if all involved
gpio/pinctrl devices have a parent that is an i2c adapter in the same
adapter tree that is muxed, and request a "mux-locked mux" if that is the
case.
Modify the select-transfer-deselect code for "mux-locked" muxes so
that each of the select-transfer-deselect ops locks the mux parent
adapter individually.
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2016-05-05 04:15:29 +08:00
|
|
|
#include "../../pinctrl/core.h"
|
2012-05-18 23:29:34 +08:00
|
|
|
|
|
|
|
struct i2c_mux_pinctrl {
|
|
|
|
struct pinctrl *pinctrl;
|
|
|
|
struct pinctrl_state **states;
|
|
|
|
struct pinctrl_state *state_idle;
|
|
|
|
};
|
|
|
|
|
2016-04-20 14:39:31 +08:00
|
|
|
static int i2c_mux_pinctrl_select(struct i2c_mux_core *muxc, u32 chan)
|
2012-05-18 23:29:34 +08:00
|
|
|
{
|
2016-04-20 14:39:31 +08:00
|
|
|
struct i2c_mux_pinctrl *mux = i2c_mux_priv(muxc);
|
2012-05-18 23:29:34 +08:00
|
|
|
|
|
|
|
return pinctrl_select_state(mux->pinctrl, mux->states[chan]);
|
|
|
|
}
|
|
|
|
|
2016-04-20 14:39:31 +08:00
|
|
|
static int i2c_mux_pinctrl_deselect(struct i2c_mux_core *muxc, u32 chan)
|
2012-05-18 23:29:34 +08:00
|
|
|
{
|
2016-04-20 14:39:31 +08:00
|
|
|
struct i2c_mux_pinctrl *mux = i2c_mux_priv(muxc);
|
2012-05-18 23:29:34 +08:00
|
|
|
|
|
|
|
return pinctrl_select_state(mux->pinctrl, mux->state_idle);
|
|
|
|
}
|
|
|
|
|
i2c: mux: relax locking of the top i2c adapter during mux-locked muxing
With a i2c topology like the following
GPIO ---| ------ BAT1
| v /
I2C -----+----------+---- MUX
| \
EEPROM ------ BAT2
there is a locking problem with the GPIO controller since it is a client
on the same i2c bus that it muxes. Transfers to the mux clients (e.g. BAT1)
will lock the whole i2c bus prior to attempting to switch the mux to the
correct i2c segment. In the above case, the GPIO device is an I/O expander
with an i2c interface, and since the GPIO subsystem knows nothing (and
rightfully so) about the lockless needs of the i2c mux code, this results
in a deadlock when the GPIO driver issues i2c transfers to modify the
mux.
So, observing that while it is needed to have the i2c bus locked during the
actual MUX update in order to avoid random garbage on the slave side, it
is not strictly a must to have it locked over the whole sequence of a full
select-transfer-deselect mux client operation. The mux itself needs to be
locked, so transfers to clients behind the mux are serialized, and the mux
needs to be stable during all i2c traffic (otherwise individual mux slave
segments might see garbage, or worse).
Introduce this new locking concept as "mux-locked" muxes, and call the
pre-existing mux locking scheme "parent-locked".
Modify the i2c mux locking so that muxes that are "mux-locked" locks only
the muxes on the parent adapter instead of the whole i2c bus when there is
a transfer to the slave side of the mux. This lock serializes transfers to
the slave side of the muxes on the parent adapter.
Add code to i2c-mux-gpio and i2c-mux-pinctrl that checks if all involved
gpio/pinctrl devices have a parent that is an i2c adapter in the same
adapter tree that is muxed, and request a "mux-locked mux" if that is the
case.
Modify the select-transfer-deselect code for "mux-locked" muxes so
that each of the select-transfer-deselect ops locks the mux parent
adapter individually.
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2016-05-05 04:15:29 +08:00
|
|
|
static struct i2c_adapter *i2c_mux_pinctrl_root_adapter(
|
|
|
|
struct pinctrl_state *state)
|
|
|
|
{
|
|
|
|
struct i2c_adapter *root = NULL;
|
|
|
|
struct pinctrl_setting *setting;
|
|
|
|
struct i2c_adapter *pin_root;
|
|
|
|
|
|
|
|
list_for_each_entry(setting, &state->settings, node) {
|
|
|
|
pin_root = i2c_root_adapter(setting->pctldev->dev);
|
|
|
|
if (!pin_root)
|
|
|
|
return NULL;
|
|
|
|
if (!root)
|
|
|
|
root = pin_root;
|
|
|
|
else if (root != pin_root)
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
return root;
|
|
|
|
}
|
|
|
|
|
2017-05-22 00:48:07 +08:00
|
|
|
static struct i2c_adapter *i2c_mux_pinctrl_parent_adapter(struct device *dev)
|
|
|
|
{
|
|
|
|
struct device_node *np = dev->of_node;
|
|
|
|
struct device_node *parent_np;
|
|
|
|
struct i2c_adapter *parent;
|
|
|
|
|
|
|
|
parent_np = of_parse_phandle(np, "i2c-parent", 0);
|
|
|
|
if (!parent_np) {
|
|
|
|
dev_err(dev, "Cannot parse i2c-parent\n");
|
|
|
|
return ERR_PTR(-ENODEV);
|
|
|
|
}
|
|
|
|
parent = of_find_i2c_adapter_by_node(parent_np);
|
|
|
|
of_node_put(parent_np);
|
|
|
|
if (!parent)
|
|
|
|
return ERR_PTR(-EPROBE_DEFER);
|
|
|
|
|
|
|
|
return parent;
|
|
|
|
}
|
|
|
|
|
2012-11-28 04:59:38 +08:00
|
|
|
static int i2c_mux_pinctrl_probe(struct platform_device *pdev)
|
2012-05-18 23:29:34 +08:00
|
|
|
{
|
2017-05-22 00:48:07 +08:00
|
|
|
struct device *dev = &pdev->dev;
|
|
|
|
struct device_node *np = dev->of_node;
|
2016-04-20 14:39:31 +08:00
|
|
|
struct i2c_mux_core *muxc;
|
2012-05-18 23:29:34 +08:00
|
|
|
struct i2c_mux_pinctrl *mux;
|
2017-05-22 00:48:07 +08:00
|
|
|
struct i2c_adapter *parent;
|
i2c: mux: relax locking of the top i2c adapter during mux-locked muxing
With a i2c topology like the following
GPIO ---| ------ BAT1
| v /
I2C -----+----------+---- MUX
| \
EEPROM ------ BAT2
there is a locking problem with the GPIO controller since it is a client
on the same i2c bus that it muxes. Transfers to the mux clients (e.g. BAT1)
will lock the whole i2c bus prior to attempting to switch the mux to the
correct i2c segment. In the above case, the GPIO device is an I/O expander
with an i2c interface, and since the GPIO subsystem knows nothing (and
rightfully so) about the lockless needs of the i2c mux code, this results
in a deadlock when the GPIO driver issues i2c transfers to modify the
mux.
So, observing that while it is needed to have the i2c bus locked during the
actual MUX update in order to avoid random garbage on the slave side, it
is not strictly a must to have it locked over the whole sequence of a full
select-transfer-deselect mux client operation. The mux itself needs to be
locked, so transfers to clients behind the mux are serialized, and the mux
needs to be stable during all i2c traffic (otherwise individual mux slave
segments might see garbage, or worse).
Introduce this new locking concept as "mux-locked" muxes, and call the
pre-existing mux locking scheme "parent-locked".
Modify the i2c mux locking so that muxes that are "mux-locked" locks only
the muxes on the parent adapter instead of the whole i2c bus when there is
a transfer to the slave side of the mux. This lock serializes transfers to
the slave side of the muxes on the parent adapter.
Add code to i2c-mux-gpio and i2c-mux-pinctrl that checks if all involved
gpio/pinctrl devices have a parent that is an i2c adapter in the same
adapter tree that is muxed, and request a "mux-locked mux" if that is the
case.
Modify the select-transfer-deselect code for "mux-locked" muxes so
that each of the select-transfer-deselect ops locks the mux parent
adapter individually.
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2016-05-05 04:15:29 +08:00
|
|
|
struct i2c_adapter *root;
|
2017-05-22 00:48:07 +08:00
|
|
|
int num_names, i, ret;
|
|
|
|
const char *name;
|
2012-05-18 23:29:34 +08:00
|
|
|
|
2017-05-22 00:48:07 +08:00
|
|
|
num_names = of_property_count_strings(np, "pinctrl-names");
|
|
|
|
if (num_names < 0) {
|
|
|
|
dev_err(dev, "Cannot parse pinctrl-names: %d\n",
|
|
|
|
num_names);
|
|
|
|
return num_names;
|
2012-05-18 23:29:34 +08:00
|
|
|
}
|
|
|
|
|
2017-05-22 00:48:07 +08:00
|
|
|
parent = i2c_mux_pinctrl_parent_adapter(dev);
|
|
|
|
if (IS_ERR(parent))
|
|
|
|
return PTR_ERR(parent);
|
2012-05-18 23:29:34 +08:00
|
|
|
|
2017-05-22 00:48:07 +08:00
|
|
|
muxc = i2c_mux_alloc(parent, dev, num_names,
|
|
|
|
sizeof(*mux) + num_names * sizeof(*mux->states),
|
|
|
|
0, i2c_mux_pinctrl_select, NULL);
|
2016-04-20 14:39:31 +08:00
|
|
|
if (!muxc) {
|
2012-05-18 23:29:34 +08:00
|
|
|
ret = -ENOMEM;
|
2017-05-22 00:48:07 +08:00
|
|
|
goto err_put_parent;
|
2012-05-18 23:29:34 +08:00
|
|
|
}
|
2017-05-22 00:48:07 +08:00
|
|
|
mux = i2c_mux_priv(muxc);
|
|
|
|
mux->states = (struct pinctrl_state **)(mux + 1);
|
2016-04-20 14:39:31 +08:00
|
|
|
|
|
|
|
platform_set_drvdata(pdev, muxc);
|
2012-05-18 23:29:34 +08:00
|
|
|
|
2017-05-22 00:48:07 +08:00
|
|
|
mux->pinctrl = devm_pinctrl_get(dev);
|
2012-05-18 23:29:34 +08:00
|
|
|
if (IS_ERR(mux->pinctrl)) {
|
|
|
|
ret = PTR_ERR(mux->pinctrl);
|
2017-05-22 00:48:07 +08:00
|
|
|
dev_err(dev, "Cannot get pinctrl: %d\n", ret);
|
|
|
|
goto err_put_parent;
|
2012-05-18 23:29:34 +08:00
|
|
|
}
|
2017-05-22 00:48:07 +08:00
|
|
|
|
|
|
|
for (i = 0; i < num_names; i++) {
|
|
|
|
ret = of_property_read_string_index(np, "pinctrl-names", i,
|
|
|
|
&name);
|
|
|
|
if (ret < 0) {
|
|
|
|
dev_err(dev, "Cannot parse pinctrl-names: %d\n", ret);
|
|
|
|
goto err_put_parent;
|
|
|
|
}
|
|
|
|
|
|
|
|
mux->states[i] = pinctrl_lookup_state(mux->pinctrl, name);
|
2016-04-22 21:44:07 +08:00
|
|
|
if (IS_ERR(mux->states[i])) {
|
|
|
|
ret = PTR_ERR(mux->states[i]);
|
2017-05-22 00:48:07 +08:00
|
|
|
dev_err(dev, "Cannot look up pinctrl state %s: %d\n",
|
|
|
|
name, ret);
|
|
|
|
goto err_put_parent;
|
2012-05-18 23:29:34 +08:00
|
|
|
}
|
|
|
|
|
2017-05-22 00:48:07 +08:00
|
|
|
if (strcmp(name, "idle"))
|
|
|
|
continue;
|
2012-05-18 23:29:34 +08:00
|
|
|
|
2017-05-22 00:48:07 +08:00
|
|
|
if (i != num_names - 1) {
|
|
|
|
dev_err(dev, "idle state must be last\n");
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto err_put_parent;
|
|
|
|
}
|
|
|
|
mux->state_idle = mux->states[i];
|
|
|
|
muxc->deselect = i2c_mux_pinctrl_deselect;
|
2012-05-18 23:29:34 +08:00
|
|
|
}
|
|
|
|
|
i2c: mux: relax locking of the top i2c adapter during mux-locked muxing
With a i2c topology like the following
GPIO ---| ------ BAT1
| v /
I2C -----+----------+---- MUX
| \
EEPROM ------ BAT2
there is a locking problem with the GPIO controller since it is a client
on the same i2c bus that it muxes. Transfers to the mux clients (e.g. BAT1)
will lock the whole i2c bus prior to attempting to switch the mux to the
correct i2c segment. In the above case, the GPIO device is an I/O expander
with an i2c interface, and since the GPIO subsystem knows nothing (and
rightfully so) about the lockless needs of the i2c mux code, this results
in a deadlock when the GPIO driver issues i2c transfers to modify the
mux.
So, observing that while it is needed to have the i2c bus locked during the
actual MUX update in order to avoid random garbage on the slave side, it
is not strictly a must to have it locked over the whole sequence of a full
select-transfer-deselect mux client operation. The mux itself needs to be
locked, so transfers to clients behind the mux are serialized, and the mux
needs to be stable during all i2c traffic (otherwise individual mux slave
segments might see garbage, or worse).
Introduce this new locking concept as "mux-locked" muxes, and call the
pre-existing mux locking scheme "parent-locked".
Modify the i2c mux locking so that muxes that are "mux-locked" locks only
the muxes on the parent adapter instead of the whole i2c bus when there is
a transfer to the slave side of the mux. This lock serializes transfers to
the slave side of the muxes on the parent adapter.
Add code to i2c-mux-gpio and i2c-mux-pinctrl that checks if all involved
gpio/pinctrl devices have a parent that is an i2c adapter in the same
adapter tree that is muxed, and request a "mux-locked mux" if that is the
case.
Modify the select-transfer-deselect code for "mux-locked" muxes so
that each of the select-transfer-deselect ops locks the mux parent
adapter individually.
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2016-05-05 04:15:29 +08:00
|
|
|
root = i2c_root_adapter(&muxc->parent->dev);
|
|
|
|
|
|
|
|
muxc->mux_locked = true;
|
2017-05-22 00:48:07 +08:00
|
|
|
for (i = 0; i < num_names; i++) {
|
i2c: mux: relax locking of the top i2c adapter during mux-locked muxing
With a i2c topology like the following
GPIO ---| ------ BAT1
| v /
I2C -----+----------+---- MUX
| \
EEPROM ------ BAT2
there is a locking problem with the GPIO controller since it is a client
on the same i2c bus that it muxes. Transfers to the mux clients (e.g. BAT1)
will lock the whole i2c bus prior to attempting to switch the mux to the
correct i2c segment. In the above case, the GPIO device is an I/O expander
with an i2c interface, and since the GPIO subsystem knows nothing (and
rightfully so) about the lockless needs of the i2c mux code, this results
in a deadlock when the GPIO driver issues i2c transfers to modify the
mux.
So, observing that while it is needed to have the i2c bus locked during the
actual MUX update in order to avoid random garbage on the slave side, it
is not strictly a must to have it locked over the whole sequence of a full
select-transfer-deselect mux client operation. The mux itself needs to be
locked, so transfers to clients behind the mux are serialized, and the mux
needs to be stable during all i2c traffic (otherwise individual mux slave
segments might see garbage, or worse).
Introduce this new locking concept as "mux-locked" muxes, and call the
pre-existing mux locking scheme "parent-locked".
Modify the i2c mux locking so that muxes that are "mux-locked" locks only
the muxes on the parent adapter instead of the whole i2c bus when there is
a transfer to the slave side of the mux. This lock serializes transfers to
the slave side of the muxes on the parent adapter.
Add code to i2c-mux-gpio and i2c-mux-pinctrl that checks if all involved
gpio/pinctrl devices have a parent that is an i2c adapter in the same
adapter tree that is muxed, and request a "mux-locked mux" if that is the
case.
Modify the select-transfer-deselect code for "mux-locked" muxes so
that each of the select-transfer-deselect ops locks the mux parent
adapter individually.
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2016-05-05 04:15:29 +08:00
|
|
|
if (root != i2c_mux_pinctrl_root_adapter(mux->states[i])) {
|
|
|
|
muxc->mux_locked = false;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (muxc->mux_locked)
|
2017-05-22 00:48:07 +08:00
|
|
|
dev_info(dev, "mux-locked i2c mux\n");
|
i2c: mux: relax locking of the top i2c adapter during mux-locked muxing
With a i2c topology like the following
GPIO ---| ------ BAT1
| v /
I2C -----+----------+---- MUX
| \
EEPROM ------ BAT2
there is a locking problem with the GPIO controller since it is a client
on the same i2c bus that it muxes. Transfers to the mux clients (e.g. BAT1)
will lock the whole i2c bus prior to attempting to switch the mux to the
correct i2c segment. In the above case, the GPIO device is an I/O expander
with an i2c interface, and since the GPIO subsystem knows nothing (and
rightfully so) about the lockless needs of the i2c mux code, this results
in a deadlock when the GPIO driver issues i2c transfers to modify the
mux.
So, observing that while it is needed to have the i2c bus locked during the
actual MUX update in order to avoid random garbage on the slave side, it
is not strictly a must to have it locked over the whole sequence of a full
select-transfer-deselect mux client operation. The mux itself needs to be
locked, so transfers to clients behind the mux are serialized, and the mux
needs to be stable during all i2c traffic (otherwise individual mux slave
segments might see garbage, or worse).
Introduce this new locking concept as "mux-locked" muxes, and call the
pre-existing mux locking scheme "parent-locked".
Modify the i2c mux locking so that muxes that are "mux-locked" locks only
the muxes on the parent adapter instead of the whole i2c bus when there is
a transfer to the slave side of the mux. This lock serializes transfers to
the slave side of the muxes on the parent adapter.
Add code to i2c-mux-gpio and i2c-mux-pinctrl that checks if all involved
gpio/pinctrl devices have a parent that is an i2c adapter in the same
adapter tree that is muxed, and request a "mux-locked mux" if that is the
case.
Modify the select-transfer-deselect code for "mux-locked" muxes so
that each of the select-transfer-deselect ops locks the mux parent
adapter individually.
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2016-05-05 04:15:29 +08:00
|
|
|
|
2017-05-22 00:48:07 +08:00
|
|
|
/* Do not add any adapter for the idle state (if it's there at all). */
|
|
|
|
for (i = 0; i < num_names - !!mux->state_idle; i++) {
|
|
|
|
ret = i2c_mux_add_adapter(muxc, 0, i, 0);
|
2017-04-03 16:14:25 +08:00
|
|
|
if (ret)
|
2012-05-18 23:29:34 +08:00
|
|
|
goto err_del_adapter;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
err_del_adapter:
|
2016-04-20 14:39:31 +08:00
|
|
|
i2c_mux_del_adapters(muxc);
|
2017-05-22 00:48:07 +08:00
|
|
|
err_put_parent:
|
2016-04-20 14:39:31 +08:00
|
|
|
i2c_put_adapter(muxc->parent);
|
2017-05-22 00:48:07 +08:00
|
|
|
|
2012-05-18 23:29:34 +08:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2012-11-28 04:59:38 +08:00
|
|
|
static int i2c_mux_pinctrl_remove(struct platform_device *pdev)
|
2012-05-18 23:29:34 +08:00
|
|
|
{
|
2016-04-20 14:39:31 +08:00
|
|
|
struct i2c_mux_core *muxc = platform_get_drvdata(pdev);
|
2012-05-18 23:29:34 +08:00
|
|
|
|
2016-04-20 14:39:31 +08:00
|
|
|
i2c_mux_del_adapters(muxc);
|
|
|
|
i2c_put_adapter(muxc->parent);
|
2017-05-22 00:48:07 +08:00
|
|
|
|
2012-05-18 23:29:34 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2012-11-28 04:59:38 +08:00
|
|
|
static const struct of_device_id i2c_mux_pinctrl_of_match[] = {
|
2012-05-18 23:29:34 +08:00
|
|
|
{ .compatible = "i2c-mux-pinctrl", },
|
|
|
|
{},
|
|
|
|
};
|
|
|
|
MODULE_DEVICE_TABLE(of, i2c_mux_pinctrl_of_match);
|
|
|
|
|
|
|
|
static struct platform_driver i2c_mux_pinctrl_driver = {
|
|
|
|
.driver = {
|
|
|
|
.name = "i2c-mux-pinctrl",
|
|
|
|
.of_match_table = of_match_ptr(i2c_mux_pinctrl_of_match),
|
|
|
|
},
|
|
|
|
.probe = i2c_mux_pinctrl_probe,
|
2012-11-28 04:59:38 +08:00
|
|
|
.remove = i2c_mux_pinctrl_remove,
|
2012-05-18 23:29:34 +08:00
|
|
|
};
|
|
|
|
module_platform_driver(i2c_mux_pinctrl_driver);
|
|
|
|
|
|
|
|
MODULE_DESCRIPTION("pinctrl-based I2C multiplexer driver");
|
|
|
|
MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>");
|
|
|
|
MODULE_LICENSE("GPL v2");
|
|
|
|
MODULE_ALIAS("platform:i2c-mux-pinctrl");
|