[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250813204106.580141-4-nm@ti.com>
Date: Wed, 13 Aug 2025 15:41:06 -0500
From: Nishanth Menon <nm@...com>
To: Conor Dooley <conor+dt@...nel.org>,
Krzysztof Kozlowski
<krzk+dt@...nel.org>,
Rob Herring <robh@...nel.org>, David Airlie
<airlied@...il.com>,
Maxime Ripard <mripard@...nel.org>,
Laurent Pinchart
<Laurent.pinchart@...asonboard.com>,
Neil Armstrong
<neil.armstrong@...aro.org>
CC: <linux-kernel@...r.kernel.org>, <devicetree@...r.kernel.org>,
<dri-devel@...ts.freedesktop.org>,
Robert Nelson <robertcnelson@...il.com>,
Jason Kridner <jkridner@...gleboard.org>, <afd@...com>,
Nishanth Menon
<nm@...com>
Subject: [PATCH V2 3/3] drm/bridge: it66121: Add it66122 support
The IT66122 is a drop in replacement for the IT66122. The part is
register compatible with what we use of the IT66121. The only relevant
change being the PID is now 0x0622 vs 0x0612. Add this extra PID so
probe does not fail during the PID check with these new parts.
For new platforms that do explicitly use IT66122, they can use the
appropriate compatible as well.
Signed-off-by: Nishanth Menon <nm@...com>
---
Changes since V1:
- I think this is a more pragmatic approach with both compatibles
functional and the option of being able to split this up at a later
point if required in driver.
NOTE: I still retain the checkpatch --strict warning as v1 here.
V1: https://lore.kernel.org/all/20250813190835.344563-3-nm@ti.com/
drivers/gpu/drm/bridge/ite-it66121.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/ite-it66121.c
index 208e118df0e2..dcbbf7578046 100644
--- a/drivers/gpu/drm/bridge/ite-it66121.c
+++ b/drivers/gpu/drm/bridge/ite-it66121.c
@@ -1625,6 +1625,7 @@ static const struct it66121_chip_info it66121_chip_info = {
.id = ID_IT66121,
.device_id = {
{.vid = 0x4954, .pid = 0x0612 },
+ {.vid = 0x4954, .pid = 0x0622 },
{ }
},
};
@@ -1639,6 +1640,7 @@ static const struct it66121_chip_info it6610_chip_info = {
static const struct of_device_id it66121_dt_match[] = {
{ .compatible = "ite,it66121", &it66121_chip_info },
+ { .compatible = "ite,it66122", &it66121_chip_info },
{ .compatible = "ite,it6610", &it6610_chip_info },
{ }
};
@@ -1646,6 +1648,7 @@ MODULE_DEVICE_TABLE(of, it66121_dt_match);
static const struct i2c_device_id it66121_id[] = {
{ "it66121", (kernel_ulong_t) &it66121_chip_info },
+ { "it66122", (kernel_ulong_t) &it66121_chip_info },
{ "it6610", (kernel_ulong_t) &it6610_chip_info },
{ }
};
--
2.47.0
Powered by blists - more mailing lists