From: John Crispin <john@phrozen.org>
To: Stefan Roese <sr@denx.de>, Andi Shyti <andi.shyti@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Philipp Zabel <p.zabel@pengutronix.de>
Cc: Christian Marangi <ansuelsmth@gmail.com>,
devicetree@vger.kernel.org, lei.dong@airoha.com,
Linqi.zhang@airoha.com, linux-arm-kernel@lists.infradead.org,
linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-mediatek@lists.infradead.org, Rajeev.kumar@airoha.com,
upstream@airoha.com, Weifeng.xu@airoha.com,
zhengping.zhang@airoha.com
Subject: [PATCH v4 0/3] i2c: mt7621: add Airoha AN7589 support
Date: Tue, 1 Dec 2026 19:31:42 +0100 [thread overview]
Message-ID: <20261201183145.2953089-1-john@phrozen.org> (raw)
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
next reply other threads:[~2026-12-01 18:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 18:31 John Crispin [this message]
2026-12-01 18:31 ` [PATCH v4 1/3] i2c: mt7621: assert and deassert the reset line John Crispin
2026-12-01 18:31 ` [PATCH v4 2/3] dt-bindings: i2c: mt7621: add Airoha AN7589 John Crispin
2026-12-01 18:31 ` [PATCH v4 3/3] i2c: mt7621: add support for " John Crispin
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=20261201183145.2953089-1-john@phrozen.org \
--to=john@phrozen.org \
--cc=Linqi.zhang@airoha.com \
--cc=Rajeev.kumar@airoha.com \
--cc=Weifeng.xu@airoha.com \
--cc=andi.shyti@kernel.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=ansuelsmth@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lei.dong@airoha.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=sr@denx.de \
--cc=upstream@airoha.com \
--cc=zhengping.zhang@airoha.com \
/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.