1
0
Fork 0

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>
pull/10/head
Fugang Duan 2017-07-28 11:22:31 +08:00 committed by Jason Liu
parent 39c0773811
commit 217d492b13
2 changed files with 9 additions and 1 deletions

View File

@ -4,7 +4,8 @@ Required Properties:
- compatible: Must contain one of the following.
"nxp,pca9540", "nxp,pca9542", "nxp,pca9543", "nxp,pca9544",
"nxp,pca9545", "nxp,pca9546", "nxp,pca9547", "nxp,pca9548"
"nxp,pca9545", "nxp,pca9546", "nxp,pca9547", "nxp,pca9548",
"nxp,pca9646"
- reg: The I2C address of the device.

View File

@ -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);