[PATCH v4 0/3] i2c: mt7621: add Airoha AN7589 support

John Crispin john at phrozen.org
Tue Dec 1 10:31:42 PST 2026


The Airoha AN7589 carries the MT7621 I2C controller with a second
control register that holds a 16 bit clock divider. It runs without
SCL stretching.

Patch 1 resets the controller with reset_control_assert() and
reset_control_deassert() instead of device_reset(), as the EN7581 and
AN7589 reset controller has no .reset operation. Patch 2 adds the
compatible, with mediatek,mt7621-i2c as the fallback. Patch 3
describes the variants as match data and uses the wider divider for
bus rates down to about 3 kHz.

The series applies to next-20261123 and has no dependencies.

Changes in v4:
- Patch 3: read the clock rate after the declarations, fail the probe
  for a clock rate of 0 and round the AN7589 divider up (Andi).
- Patches 1 and 2 are unchanged.
- Link to v3: https://lore.kernel.org/r/20261116175343.344425-1-john@phrozen.org

Changes in v3:
- Patch 1: add the Reviewed-by of Philipp.
- Patch 2: add the Acked-by of Conor.
- Patch 3: compute the AN7589 divider with constant limits, so a clock
  rate below 1 MHz cannot wrap it (kernel test robot, sashiko).
- Link to v2: https://lore.kernel.org/r/20261112185820.1315718-1-john@phrozen.org

Changes in v2:
- Add patch 1. It replaces "clk: en7523: add a reset operation" from
  the clk series, as Philipp suggested.
- Patch 2: add mediatek,mt7621-i2c as the fallback compatible (Conor).
- Patch 3: the extended divider supports bus rates down to about 3 kHz.
  Set it up before the controller is enabled.
- Link to v1: https://lore.kernel.org/r/20261111093941.691801-1-john@phrozen.org

John Crispin (3):
  i2c: mt7621: assert and deassert the reset line
  dt-bindings: i2c: mt7621: add Airoha AN7589
  i2c: mt7621: add support for Airoha AN7589

 .../bindings/i2c/mediatek,mt7621-i2c.yaml     | 10 ++-
 drivers/i2c/busses/i2c-mt7621.c               | 82 ++++++++++++++++---
 2 files changed, 80 insertions(+), 12 deletions(-)


base-commit: 3191063649dbf7c0d0b768e1f3655e4c5fc6edb5
-- 
2.34.1




More information about the linux-arm-kernel mailing list