[PATCH v2 0/5] clk: en7523: add support for Airoha AN7589
From: John Crispin
Date: Tue Dec 01 2026 - 14:37:38 EST
This adds the clocks and resets of the Airoha AN7589 to the en7523
driver. The SCU is close to the EN7581 one, with wider mux fields,
different base rates, a few new clocks and a third reset bank.
Patches 1 and 2 are the bindings, patch 3 is the driver side. Patches 4
and 5 are for the MDIO controllers, which sit inside the SCU register
space as children of the clock controller: 4 allows the child nodes and
5 creates the devices. The AN7583 needs the same.
This is now based on clk-pile with the AN7583 series applied
(536104a3ba8c).
Tested on the AN7589 EVB.
Changes in v2:
- rebased on the applied AN7583 series, which made "decouple base clock
count from clock ID count" obsolete, so that patch is gone
- reworked the reset header, a few names and bits changed (2/5)
- the AN7589 gets its own rule forbidding #phy-cells (2/5)
- MDIO2 reset is bit 12, not 13 (3/5)
- dropped the SSTR/PCIC writes at probe (3/5)
- fixed the commit messages, the chip SCU has the clock source and
divider registers, not the PCIe ones (1/5, 3/5, 5/5)
- v1: https://lore.kernel.org/r/20261124101220.3888170-1-john@xxxxxxxxxxx
John Crispin (5):
dt-bindings: arm: airoha: add AN7589 chip SCU
dt-bindings: clock: airoha: add AN7589
clk: en7523: add support for Airoha AN7589
dt-bindings: clock: airoha: allow MDIO controllers under the SCU
clk: en7523: populate SCU child devices
.../bindings/arm/airoha,en7581-chip-scu.yaml | 1 +
.../bindings/clock/airoha,en7523-scu.yaml | 34 +-
drivers/clk/clk-en7523.c | 340 +++++++++++++++++-
include/dt-bindings/clock/en7523-clk.h | 9 +
.../dt-bindings/reset/airoha,an7589-reset.h | 88 +++++
5 files changed, 468 insertions(+), 4 deletions(-)
create mode 100644 include/dt-bindings/reset/airoha,an7589-reset.h
base-commit: 536104a3ba8cae659daa734ccecf6c65707e1442
--
2.34.1