aboutsummaryrefslogtreecommitdiff
path: root/drivers/i2c/muxes/pca954x.c
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2022-01-03 14:47:22 +0200
committerPriyanka Jain <priyanka.jain@nxp.com>2022-02-01 15:08:07 +0530
commit3285a5715f9376538750f10c1427350a78f0430c (patch)
treea64c883244d220383a9768ea39e17b688259307c /drivers/i2c/muxes/pca954x.c
parent18c62dfeb0f4e87db4bb1e1f1cb2503e30fe31d9 (diff)
downloadu-boot-3285a5715f9376538750f10c1427350a78f0430c.zip
u-boot-3285a5715f9376538750f10c1427350a78f0430c.tar.gz
u-boot-3285a5715f9376538750f10c1427350a78f0430c.tar.bz2
i2c: muxes: pca954x: add PCA9847 variant
This seems to be very similar to the already existing PCA9547, save for the fact that it supports 0.8V and doesn't support 5V. In fact, it is so similar to the PCA9547 that the NXP LS1028A-RDB board has been driving this chip using a "nxp,pca9547" compatible string. Create a new compatible for the PCA9847 (which is the same as in Linux) and define the same operating parameters for it as for PCA9547. Cc: Heiko Schocher <hs@denx.de> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Heiko Schocher <hs@denx.de> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com> Reviewed-by: Michael Walle <michael@walle.cc>
Diffstat (limited to 'drivers/i2c/muxes/pca954x.c')
-rw-r--r--drivers/i2c/muxes/pca954x.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/i2c/muxes/pca954x.c b/drivers/i2c/muxes/pca954x.c
index 55858cf..0034dfb 100644
--- a/drivers/i2c/muxes/pca954x.c
+++ b/drivers/i2c/muxes/pca954x.c
@@ -23,7 +23,8 @@ enum pca_type {
PCA9546,
PCA9547,
PCA9548,
- PCA9646
+ PCA9646,
+ PCA9847,
};
struct chip_desc {
@@ -68,6 +69,11 @@ static const struct chip_desc chips[] = {
.muxtype = pca954x_isswi,
.width = 4,
},
+ [PCA9847] = {
+ .enable = 0x8,
+ .muxtype = pca954x_ismux,
+ .width = 8,
+ },
};
static int pca954x_deselect(struct udevice *mux, struct udevice *bus,
@@ -106,6 +112,7 @@ static const struct udevice_id pca954x_ids[] = {
{ .compatible = "nxp,pca9547", .data = PCA9547 },
{ .compatible = "nxp,pca9548", .data = PCA9548 },
{ .compatible = "nxp,pca9646", .data = PCA9646 },
+ { .compatible = "nxp,pca9847", .data = PCA9847 },
{ }
};