Devicetree
 help / color / mirror / Atom feed
* [PATCH v2 0/5] clk: en7523: add support for Airoha AN7589
@ 2026-12-01 19:36 John Crispin
  2026-12-01 19:36 ` [PATCH v2 1/5] dt-bindings: arm: airoha: add AN7589 chip SCU John Crispin
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: John Crispin @ 2026-12-01 19:36 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Stephen Boyd,
	Brian Masney, Jerome Brunet, Philipp Zabel
  Cc: Daniel Lezcano, Christian Marangi, Vitaliy Sochnev,
	Lorenzo Bianconi, Felix Fietkau, devicetree, linux-clk,
	linux-kernel, lei.dong, Linqi.zhang, Rajeev.kumar, upstream,
	Weifeng.xu, zhengping.zhang

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@phrozen.org

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-12-01 19:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 19:36 [PATCH v2 0/5] clk: en7523: add support for Airoha AN7589 John Crispin
2026-12-01 19:36 ` [PATCH v2 1/5] dt-bindings: arm: airoha: add AN7589 chip SCU John Crispin
2026-12-01 19:36 ` [PATCH v2 2/5] dt-bindings: clock: airoha: add AN7589 John Crispin
2026-12-01 19:36 ` [PATCH v2 3/5] clk: en7523: add support for Airoha AN7589 John Crispin
2026-12-01 19:36 ` [PATCH v2 4/5] dt-bindings: clock: airoha: allow MDIO controllers under the SCU John Crispin
2026-12-01 19:36 ` [PATCH v2 5/5] clk: en7523: populate SCU child devices John Crispin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox