All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladimir Oltean <vladimir.oltean@nxp.com>
To: u-boot@lists.denx.de
Cc: Michael Walle <michael@walle.cc>, Tom Rini <trini@konsulko.com>,
	Priyanka Jain <priyanka.jain@nxp.com>,
	Li Yang <leoyang.li@nxp.com>, Heiko Schocher <hs@denx.de>
Subject: [PATCH v2 01/16] i2c: muxes: pca954x: add PCA9847 variant
Date: Tue,  7 Dec 2021 22:20:08 +0200	[thread overview]
Message-ID: <20211207202023.2054282-2-vladimir.oltean@nxp.com> (raw)
In-Reply-To: <20211207202023.2054282-1-vladimir.oltean@nxp.com>

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>
---
 drivers/i2c/muxes/pca954x.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/i2c/muxes/pca954x.c b/drivers/i2c/muxes/pca954x.c
index 55858cf653f2..0034dfbf6daf 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 },
 	{ }
 };
 
-- 
2.25.1


  reply	other threads:[~2021-12-07 20:21 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-07 20:20 [PATCH v2 00/16] Sync NXP LS1028A-RDB device trees between U-Boot and Linux Vladimir Oltean
2021-12-07 20:20 ` Vladimir Oltean [this message]
2021-12-07 20:20 ` [PATCH v2 02/16] rtc: pcf2127: sync with Linux compatible strings Vladimir Oltean
2021-12-07 20:20 ` [PATCH v2 03/16] arm: dts: ls1088a-qds: use Linux compatible string for RTC Vladimir Oltean
2021-12-07 20:20 ` [PATCH v2 04/16] arm: dts: ls1088a-rdb: " Vladimir Oltean
2021-12-07 20:20 ` [PATCH v2 05/16] arm: dts: lx2160a-qds: " Vladimir Oltean
2021-12-07 20:20 ` [PATCH v2 06/16] arm: dts: ls1028a-qds: " Vladimir Oltean
2021-12-07 20:20 ` [PATCH v2 07/16] arm: dts: ls1028a-rdb: " Vladimir Oltean
2021-12-07 20:20 ` [PATCH v2 08/16] arm: dts: lx2160a-rdb: " Vladimir Oltean
2021-12-07 20:20 ` [PATCH v2 09/16] rtc: pcf2127: remove U-Boot specific compatible string Vladimir Oltean
2021-12-07 20:20 ` [PATCH v2 10/16] arm: dts: ls1028a-rdb: sort nodes alphabetically Vladimir Oltean
2021-12-07 20:20 ` [PATCH v2 11/16] arm: dts: ls1028a-rdb: sync Ethernet device tree nodes with Linux Vladimir Oltean
2021-12-07 20:20 ` [PATCH v2 12/16] arm: dts: ls1028a-rdb: disable DSPI nodes Vladimir Oltean
2021-12-07 20:20 ` [PATCH v2 13/16] arm: dts: ls1028a-rdb: disable I2C buses 1 through 7 Vladimir Oltean
2021-12-07 20:20 ` [PATCH v2 14/16] arm: dts: ls1028a-rdb: enable PCIe controllers from U-Boot dtsi Vladimir Oltean
2021-12-20 12:58   ` Michael Walle
2021-12-07 20:20 ` [PATCH v2 15/16] arm: dts: ls1028a-rdb: sync device tree with Linux Vladimir Oltean
2021-12-07 20:20 ` [PATCH v2 16/16] arm: dts: ls1028a-qds: declare in-band autoneg for Ethernet ports Vladimir Oltean
2021-12-14 14:38 ` [PATCH v2 00/16] Sync NXP LS1028A-RDB device trees between U-Boot and Linux Vladimir Oltean
2021-12-23  6:34   ` Priyanka Jain
2021-12-23 12:44     ` Vladimir Oltean
2021-12-23 12:47       ` Michael Walle
2021-12-23 12:49         ` Vladimir Oltean

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211207202023.2054282-2-vladimir.oltean@nxp.com \
    --to=vladimir.oltean@nxp.com \
    --cc=hs@denx.de \
    --cc=leoyang.li@nxp.com \
    --cc=michael@walle.cc \
    --cc=priyanka.jain@nxp.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.