diff options
author | Fugang Duan <fugang.duan@nxp.com> | 2017-07-28 11:22:31 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:27:44 +0800 |
commit | 84b745952de085e610d36fa455e1f3455d36d73f (patch) | |
tree | f0e5b0371c67886085716f7ddefa281f185946ad /drivers/i2c | |
parent | 0fac4f3daa6a8f7d0444f644ad1a077dc021beef (diff) |
MLK-16095-01 i2c: mux: pca954x: add i2c bus switch PCA9646 chip support
Add i2c bus switch PCA9646 chip support, which 2-wire bus switch
and buffered 4-channel.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/muxes/i2c-mux-pca954x.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b/drivers/i2c/muxes/i2c-mux-pca954x.c index 7b992db38021..d7ba07b32546 100644 --- a/drivers/i2c/muxes/i2c-mux-pca954x.c +++ b/drivers/i2c/muxes/i2c-mux-pca954x.c @@ -63,6 +63,7 @@ enum pca_type { pca_9546, pca_9547, pca_9548, + pca_9646, }; struct chip_desc { @@ -129,6 +130,10 @@ static const struct chip_desc chips[] = { .nchans = 8, .muxtype = pca954x_isswi, }, + [pca_9646] = { + .nchans = 4, + .muxtype = pca954x_isswi, + }, }; static const struct i2c_device_id pca954x_id[] = { @@ -140,6 +145,7 @@ static const struct i2c_device_id pca954x_id[] = { { "pca9546", pca_9546 }, { "pca9547", pca_9547 }, { "pca9548", pca_9548 }, + { "pca9646", pca_9646 }, { } }; MODULE_DEVICE_TABLE(i2c, pca954x_id); @@ -154,6 +160,7 @@ static const struct of_device_id pca954x_of_match[] = { { .compatible = "nxp,pca9546", .data = &chips[pca_9546] }, { .compatible = "nxp,pca9547", .data = &chips[pca_9547] }, { .compatible = "nxp,pca9548", .data = &chips[pca_9548] }, + { .compatible = "nxp,pca9646", .data = &chips[pca_9646] }, {} }; MODULE_DEVICE_TABLE(of, pca954x_of_match); |