Devicetree
 help / color / mirror / Atom feed
From: John Crispin <john@phrozen.org>
To: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Stephen Boyd <sboyd@kernel.org>,
	Brian Masney <bmasney+clk@redhat.com>,
	Jerome Brunet <jbrunet+clk@baylibre.com>,
	Philipp Zabel <p.zabel@pengutronix.de>
Cc: Daniel Lezcano <daniel.lezcano@kernel.org>,
	Christian Marangi <ansuelsmth@gmail.com>,
	Vitaliy Sochnev <sochnev.v.74@gmail.com>,
	Lorenzo Bianconi <lorenzo@kernel.org>,
	Felix Fietkau <nbd@nbd.name>,
	devicetree@vger.kernel.org, linux-clk@vger.kernel.org,
	linux-kernel@vger.kernel.org, lei.dong@airoha.com,
	Linqi.zhang@airoha.com, Rajeev.kumar@airoha.com,
	upstream@airoha.com, Weifeng.xu@airoha.com,
	zhengping.zhang@airoha.com
Subject: [PATCH v2 0/5] clk: en7523: add support for Airoha AN7589
Date: Tue,  1 Dec 2026 20:36:52 +0100	[thread overview]
Message-ID: <20261201193657.3072138-1-john@phrozen.org> (raw)

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


             reply	other threads:[~2026-12-01 19:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 19:36 John Crispin [this message]
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

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=20261201193657.3072138-1-john@phrozen.org \
    --to=john@phrozen.org \
    --cc=Linqi.zhang@airoha.com \
    --cc=Rajeev.kumar@airoha.com \
    --cc=Weifeng.xu@airoha.com \
    --cc=ansuelsmth@gmail.com \
    --cc=bmasney+clk@redhat.com \
    --cc=conor+dt@kernel.org \
    --cc=daniel.lezcano@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jbrunet+clk@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=lei.dong@airoha.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lorenzo@kernel.org \
    --cc=nbd@nbd.name \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=sochnev.v.74@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox