* [PATCH 0/2] drm/bridge: it66121: Add it66122 support
@ 2025-08-13 19:08 Nishanth Menon
2025-08-13 19:08 ` [PATCH 1/2] dt-bindings: display: bridge: it66121: Add compatible string for IT66122 Nishanth Menon
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Nishanth Menon @ 2025-08-13 19:08 UTC (permalink / raw)
To: Conor Dooley, Krzysztof Kozlowski, Rob Herring, David Airlie,
Maxime Ripard, Laurent Pinchart, Neil Armstrong
Cc: linux-kernel, devicetree, dri-devel, Robert Nelson, Jason Kridner,
Nishanth Menon
Hi,
Add support for IT66122, which for all practical purposes is
drop in replacement for IT66121 except for the ID register
definition.
BeagleY-AI uses this new part as the old part is no longer in production
as far as I understand.
Now, BeaglePlay uses it66121 at the moment, but at some point, it might
end up flipping over to the new part.
An alternate implementation could be to drop the revision check or make
it66121 check include alternate ID check.. but that seems a little
non-standard.. Anyways, I suppose mediatek platforms will face this
problem as well at some point.
Nishanth Menon (2):
dt-bindings: display: bridge: it66121: Add compatible string for
IT66122
drm/bridge: it66121: Add it66122 support
.../devicetree/bindings/display/bridge/ite,it66121.yaml | 1 +
drivers/gpu/drm/bridge/ite-it66121.c | 8 ++++++++
2 files changed, 9 insertions(+)
--
2.47.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/2] dt-bindings: display: bridge: it66121: Add compatible string for IT66122
2025-08-13 19:08 [PATCH 0/2] drm/bridge: it66121: Add it66122 support Nishanth Menon
@ 2025-08-13 19:08 ` Nishanth Menon
2025-08-13 19:20 ` Krzysztof Kozlowski
2025-08-13 19:08 ` [PATCH 2/2] drm/bridge: it66121: Add it66122 support Nishanth Menon
2025-08-13 19:32 ` [PATCH 0/2] " Andrew Davis
2 siblings, 1 reply; 7+ messages in thread
From: Nishanth Menon @ 2025-08-13 19:08 UTC (permalink / raw)
To: Conor Dooley, Krzysztof Kozlowski, Rob Herring, David Airlie,
Maxime Ripard, Laurent Pinchart, Neil Armstrong
Cc: linux-kernel, devicetree, dri-devel, Robert Nelson, Jason Kridner,
Nishanth Menon
Add a new ite,it66122 compatible string to the IT66121 binding
documentation, since the two chips are practically same except for id
register difference.
Signed-off-by: Nishanth Menon <nm@ti.com>
---
.../devicetree/bindings/display/bridge/ite,it66121.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/display/bridge/ite,it66121.yaml b/Documentation/devicetree/bindings/display/bridge/ite,it66121.yaml
index a7eb2603691f..c99b67f0bb73 100644
--- a/Documentation/devicetree/bindings/display/bridge/ite,it66121.yaml
+++ b/Documentation/devicetree/bindings/display/bridge/ite,it66121.yaml
@@ -19,6 +19,7 @@ properties:
compatible:
enum:
- ite,it66121
+ - ite,it66122
- ite,it6610
reg:
--
2.47.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] drm/bridge: it66121: Add it66122 support
2025-08-13 19:08 [PATCH 0/2] drm/bridge: it66121: Add it66122 support Nishanth Menon
2025-08-13 19:08 ` [PATCH 1/2] dt-bindings: display: bridge: it66121: Add compatible string for IT66122 Nishanth Menon
@ 2025-08-13 19:08 ` Nishanth Menon
2025-08-14 4:02 ` devarsh
2025-08-13 19:32 ` [PATCH 0/2] " Andrew Davis
2 siblings, 1 reply; 7+ messages in thread
From: Nishanth Menon @ 2025-08-13 19:08 UTC (permalink / raw)
To: Conor Dooley, Krzysztof Kozlowski, Rob Herring, David Airlie,
Maxime Ripard, Laurent Pinchart, Neil Armstrong
Cc: linux-kernel, devicetree, dri-devel, Robert Nelson, Jason Kridner,
Nishanth Menon
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.
Signed-off-by: Nishanth Menon <nm@ti.com>
---
Note: checkpatch --strict reports:
CHECK: No space is necessary after a cast
#45: FILE: drivers/gpu/drm/bridge/ite-it66121.c:1643:
+ { "it66122", (kernel_ulong_t) &it66122_chip_info },
I chose to retain existing style - let me know if we want to clean this
up as well.
NOTE: .id = ID_IT66121 is explicitly used as indication of reuse of
existing it66121 compatibility.
drivers/gpu/drm/bridge/ite-it66121.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/ite-it66121.c
index aa7b1dcc5d70..329fa47a5701 100644
--- a/drivers/gpu/drm/bridge/ite-it66121.c
+++ b/drivers/gpu/drm/bridge/ite-it66121.c
@@ -1618,6 +1618,12 @@ static const struct it66121_chip_info it66121_chip_info = {
.pid = 0x0612,
};
+static const struct it66121_chip_info it66122_chip_info = {
+ .id = ID_IT66121,
+ .vid = 0x4954,
+ .pid = 0x0622,
+};
+
static const struct it66121_chip_info it6610_chip_info = {
.id = ID_IT6610,
.vid = 0xca00,
@@ -1626,6 +1632,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", &it66122_chip_info },
{ .compatible = "ite,it6610", &it6610_chip_info },
{ }
};
@@ -1633,6 +1640,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) &it66122_chip_info },
{ "it6610", (kernel_ulong_t) &it6610_chip_info },
{ }
};
--
2.47.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: display: bridge: it66121: Add compatible string for IT66122
2025-08-13 19:08 ` [PATCH 1/2] dt-bindings: display: bridge: it66121: Add compatible string for IT66122 Nishanth Menon
@ 2025-08-13 19:20 ` Krzysztof Kozlowski
0 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2025-08-13 19:20 UTC (permalink / raw)
To: Nishanth Menon, Conor Dooley, Krzysztof Kozlowski, Rob Herring,
David Airlie, Maxime Ripard, Laurent Pinchart, Neil Armstrong
Cc: linux-kernel, devicetree, dri-devel, Robert Nelson, Jason Kridner
On 13/08/2025 21:08, Nishanth Menon wrote:
> Add a new ite,it66122 compatible string to the IT66121 binding
> documentation, since the two chips are practically same except for id
> register difference.
>
> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/2] drm/bridge: it66121: Add it66122 support
2025-08-13 19:08 [PATCH 0/2] drm/bridge: it66121: Add it66122 support Nishanth Menon
2025-08-13 19:08 ` [PATCH 1/2] dt-bindings: display: bridge: it66121: Add compatible string for IT66122 Nishanth Menon
2025-08-13 19:08 ` [PATCH 2/2] drm/bridge: it66121: Add it66122 support Nishanth Menon
@ 2025-08-13 19:32 ` Andrew Davis
2025-08-13 20:24 ` Nishanth Menon
2 siblings, 1 reply; 7+ messages in thread
From: Andrew Davis @ 2025-08-13 19:32 UTC (permalink / raw)
To: Nishanth Menon, Conor Dooley, Krzysztof Kozlowski, Rob Herring,
David Airlie, Maxime Ripard, Laurent Pinchart, Neil Armstrong
Cc: linux-kernel, devicetree, dri-devel, Robert Nelson, Jason Kridner
On 8/13/25 2:08 PM, Nishanth Menon wrote:
> Hi,
>
> Add support for IT66122, which for all practical purposes is
> drop in replacement for IT66121 except for the ID register
> definition.
>
> BeagleY-AI uses this new part as the old part is no longer in production
> as far as I understand.
>
> Now, BeaglePlay uses it66121 at the moment, but at some point, it might
> end up flipping over to the new part.
>
> An alternate implementation could be to drop the revision check or make
> it66121 check include alternate ID check.. but that seems a little
> non-standard.. Anyways, I suppose mediatek platforms will face this
> problem as well at some point.
>
Hmmm, since these boards will probably have to switch parts mid-production
it would cause us to need to have a new DT with the updated compatible
just for a otherwise transparent revision. Might be better to just
loosen the PID check so the alternative part work just the same.
Andrew
> Nishanth Menon (2):
> dt-bindings: display: bridge: it66121: Add compatible string for
> IT66122
> drm/bridge: it66121: Add it66122 support
>
> .../devicetree/bindings/display/bridge/ite,it66121.yaml | 1 +
> drivers/gpu/drm/bridge/ite-it66121.c | 8 ++++++++
> 2 files changed, 9 insertions(+)
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/2] drm/bridge: it66121: Add it66122 support
2025-08-13 19:32 ` [PATCH 0/2] " Andrew Davis
@ 2025-08-13 20:24 ` Nishanth Menon
0 siblings, 0 replies; 7+ messages in thread
From: Nishanth Menon @ 2025-08-13 20:24 UTC (permalink / raw)
To: Andrew Davis
Cc: Conor Dooley, Krzysztof Kozlowski, Rob Herring, David Airlie,
Maxime Ripard, Laurent Pinchart, Neil Armstrong, linux-kernel,
devicetree, dri-devel, Robert Nelson, Jason Kridner
On 14:32-20250813, Andrew Davis wrote:
> On 8/13/25 2:08 PM, Nishanth Menon wrote:
> > Hi,
> >
> > Add support for IT66122, which for all practical purposes is
> > drop in replacement for IT66121 except for the ID register
> > definition.
> >
> > BeagleY-AI uses this new part as the old part is no longer in production
> > as far as I understand.
> >
> > Now, BeaglePlay uses it66121 at the moment, but at some point, it might
> > end up flipping over to the new part.
> >
> > An alternate implementation could be to drop the revision check or make
> > it66121 check include alternate ID check.. but that seems a little
> > non-standard.. Anyways, I suppose mediatek platforms will face this
> > problem as well at some point.
> >
>
> Hmmm, since these boards will probably have to switch parts mid-production
> it would cause us to need to have a new DT with the updated compatible
> just for a otherwise transparent revision. Might be better to just
> loosen the PID check so the alternative part work just the same.
I think we can get both world.. respinning this up in v2
--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
https://ti.com/opensource
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] drm/bridge: it66121: Add it66122 support
2025-08-13 19:08 ` [PATCH 2/2] drm/bridge: it66121: Add it66122 support Nishanth Menon
@ 2025-08-14 4:02 ` devarsh
0 siblings, 0 replies; 7+ messages in thread
From: devarsh @ 2025-08-14 4:02 UTC (permalink / raw)
To: Nishanth Menon, Conor Dooley, Krzysztof Kozlowski, Rob Herring,
David Airlie, Maxime Ripard, Laurent Pinchart, Neil Armstrong
Cc: linux-kernel, devicetree, dri-devel, Robert Nelson, Jason Kridner
Hi Nishanth,
Thanks for the patch.
On 14/08/25 00:38, Nishanth Menon wrote:
> The IT66122 is a drop in replacement for the IT66122.
The IT66122 is a drop in replacement for the IT66121
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.
>
> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
>
> Note: checkpatch --strict reports:
> CHECK: No space is necessary after a cast
> #45: FILE: drivers/gpu/drm/bridge/ite-it66121.c:1643:
> + { "it66122", (kernel_ulong_t) &it66122_chip_info },
>
> I chose to retain existing style - let me know if we want to clean this
> up as well.
>
> NOTE: .id = ID_IT66121 is explicitly used as indication of reuse of
> existing it66121 compatibility.
>
> drivers/gpu/drm/bridge/ite-it66121.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/ite-it66121.c
> index aa7b1dcc5d70..329fa47a5701 100644
> --- a/drivers/gpu/drm/bridge/ite-it66121.c
> +++ b/drivers/gpu/drm/bridge/ite-it66121.c
> @@ -1618,6 +1618,12 @@ static const struct it66121_chip_info it66121_chip_info = {
> .pid = 0x0612,
> };
>
> +static const struct it66121_chip_info it66122_chip_info = {
> + .id = ID_IT66121,
I think better to create separate .id as done for other chip_info structs :
.id = ID_IT66122
Regards
Devarsh
> + .vid = 0x4954,
> + .pid = 0x0622,
> +};
> +
> static const struct it66121_chip_info it6610_chip_info = {
> .id = ID_IT6610,
> .vid = 0xca00,
> @@ -1626,6 +1632,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", &it66122_chip_info },
> { .compatible = "ite,it6610", &it6610_chip_info },
> { }
> };
> @@ -1633,6 +1640,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) &it66122_chip_info },
> { "it6610", (kernel_ulong_t) &it6610_chip_info },
> { }
> };
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-08-14 4:03 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-13 19:08 [PATCH 0/2] drm/bridge: it66121: Add it66122 support Nishanth Menon
2025-08-13 19:08 ` [PATCH 1/2] dt-bindings: display: bridge: it66121: Add compatible string for IT66122 Nishanth Menon
2025-08-13 19:20 ` Krzysztof Kozlowski
2025-08-13 19:08 ` [PATCH 2/2] drm/bridge: it66121: Add it66122 support Nishanth Menon
2025-08-14 4:02 ` devarsh
2025-08-13 19:32 ` [PATCH 0/2] " Andrew Davis
2025-08-13 20:24 ` Nishanth Menon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).