[PATCH v5 2/3] dt-bindings: i2c: mt7621: add Airoha AN7589
From: John Crispin
Date: Wed Dec 02 2026 - 13:05:12 EST
The Airoha AN7589 carries the MT7621 I2C controller with a second
control register holding a wider clock divider. Out of reset the
controller uses the MT7621 divider, so the MT7621 programming works
and mediatek,mt7621-i2c serves as the fallback. Give the AN7589 a
compatible of its own so the driver can use the wider divider.
Acked-by: Conor Dooley <conor.dooley@xxxxxxxxxxxxx>
Signed-off-by: John Crispin <john@xxxxxxxxxxx>
---
Changes in v5:
- Rebased on next-20261201, which has commit fa3fd2c10a8f
("dt-bindings: i2c: mt7621: Document an7581 compatible"). The
compatible is now a oneOf of the existing enum and the AN7589 entry.
I kept the Acked-by of Conor, the AN7589 entry itself is unchanged.
Changes in v4:
- None.
Changes in v3:
- Add the Acked-by of Conor.
Changes in v2:
- Add mediatek,mt7621-i2c as the fallback compatible (Conor).
.../bindings/i2c/mediatek,mt7621-i2c.yaml | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml b/Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml
index e6ea5bc1c681..7defbb89cd48 100644
--- a/Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml
+++ b/Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml
@@ -9,14 +9,22 @@ maintainers:
title: Mediatek MT7621/MT7628 I2C master controller
+description:
+ The same controller is used on Airoha SoCs. The AN7589 variant adds a
+ second control register with a wider clock divider.
+
allOf:
- $ref: /schemas/i2c/i2c-controller.yaml#
properties:
compatible:
- enum:
- - airoha,an7581-i2c
- - mediatek,mt7621-i2c
+ oneOf:
+ - enum:
+ - airoha,an7581-i2c
+ - mediatek,mt7621-i2c
+ - items:
+ - const: airoha,an7589-i2c
+ - const: mediatek,mt7621-i2c
reg:
maxItems: 1
--
2.34.1