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 2/6] dt-bindings: clock: airoha: add AN7589
Date: Tue, 24 Nov 2026 11:12:16 +0100 [thread overview]
Message-ID: <20261124101220.3888170-3-john@phrozen.org> (raw)
In-Reply-To: <20261124101220.3888170-1-john@phrozen.org>
Document the AN7589 SCU. Like the AN7583 it needs the chip SCU phandle
and has a single register range. It provides resets but no serdes
PHY, so #reset-cells stays required for both SoCs and the requirement
of #phy-cells moves to a rule for the AN7583 alone.
Add the eight AN7589 specific clock IDs after the AN7583 MDIO clocks, and
a reset header. The AN7589 reset lines are those of the AN7583 plus a
third bank with the I2C3, I2C4, I2C5, OPTL_SYS and MDIO2 resets, and an
I2S reset in the first bank. It has no PCIC bank, since the AN7589
drives PCIe PERST from the PCIe MAC. IDs are numbered densely in bank
order.
Signed-off-by: John Crispin <john@phrozen.org>
---
.../bindings/clock/airoha,en7523-scu.yaml | 18 ++++-
include/dt-bindings/clock/en7523-clk.h | 9 +++
.../dt-bindings/reset/airoha,an7589-reset.h | 68 +++++++++++++++++++
3 files changed, 92 insertions(+), 3 deletions(-)
create mode 100644 include/dt-bindings/reset/airoha,an7589-reset.h
diff --git a/Documentation/devicetree/bindings/clock/airoha,en7523-scu.yaml b/Documentation/devicetree/bindings/clock/airoha,en7523-scu.yaml
index 0d5f89187525..947f8b939449 100644
--- a/Documentation/devicetree/bindings/clock/airoha,en7523-scu.yaml
+++ b/Documentation/devicetree/bindings/clock/airoha,en7523-scu.yaml
@@ -32,6 +32,7 @@ properties:
items:
- enum:
- airoha,an7583-scu
+ - airoha,an7589-scu
- airoha,en7523-scu
- airoha,en7581-scu
- econet,en751221-scu
@@ -73,7 +74,9 @@ allOf:
- if:
properties:
compatible:
- const: airoha,an7583-scu
+ enum:
+ - airoha,an7583-scu
+ - airoha,an7589-scu
then:
properties:
@@ -83,12 +86,19 @@ allOf:
required:
- airoha,chip-scu
- '#reset-cells'
- - '#phy-cells'
else:
properties:
airoha,chip-scu: false
+ - if:
+ properties:
+ compatible:
+ const: airoha,an7583-scu
+ then:
+ required:
+ - '#phy-cells'
+
- if:
properties:
compatible:
@@ -103,7 +113,9 @@ allOf:
- if:
properties:
compatible:
- const: econet,en751221-scu
+ enum:
+ - airoha,an7589-scu
+ - econet,en751221-scu
then:
properties:
reg:
diff --git a/include/dt-bindings/clock/en7523-clk.h b/include/dt-bindings/clock/en7523-clk.h
index 0fbbcb7b1b25..136cbbea1f81 100644
--- a/include/dt-bindings/clock/en7523-clk.h
+++ b/include/dt-bindings/clock/en7523-clk.h
@@ -17,4 +17,13 @@
#define AN7583_CLK_MDIO0 9
#define AN7583_CLK_MDIO1 10
+#define AN7589_CLK_EFUSE 11
+#define AN7589_CLK_TINY_NPU 12
+#define AN7589_CLK_ECC 13
+#define AN7589_CLK_PM_UPS 14
+#define AN7589_CLK_DQ_UPS 15
+#define AN7589_CLK_TM_UPS 16
+#define AN7589_CLK_ACP 17
+#define AN7589_CLK_MDIO2 18
+
#endif /* _DT_BINDINGS_CLOCK_AIROHA_EN7523_H_ */
diff --git a/include/dt-bindings/reset/airoha,an7589-reset.h b/include/dt-bindings/reset/airoha,an7589-reset.h
new file mode 100644
index 000000000000..9b098db488c5
--- /dev/null
+++ b/include/dt-bindings/reset/airoha,an7589-reset.h
@@ -0,0 +1,68 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+/*
+ * Author: John Crispin <john@phrozen.org>
+ */
+
+#ifndef __DT_BINDINGS_RESET_CONTROLLER_AIROHA_AN7589_H_
+#define __DT_BINDINGS_RESET_CONTROLLER_AIROHA_AN7589_H_
+
+/* RST_CTRL2 */
+#define AN7589_XPON_PHY_RST 0
+#define AN7589_GPON_OLT_RST 1
+#define AN7589_CPU_TIMER2_RST 2
+#define AN7589_HSUART_RST 3
+#define AN7589_UART4_RST 4
+#define AN7589_UART5_RST 5
+#define AN7589_I2C2_RST 6
+#define AN7589_XSI_MAC_RST 7
+#define AN7589_XSI_PHY_RST 8
+#define AN7589_NPU_RST 9
+#define AN7589_I2S_RST 10
+#define AN7589_TRNG_MSTART_RST 11
+#define AN7589_DUAL_HSI0_RST 12
+#define AN7589_DUAL_HSI1_RST 13
+#define AN7589_DUAL_HSI0_MAC_RST 14
+#define AN7589_DUAL_HSI1_MAC_RST 15
+#define AN7589_XPON_XFI_RST 16
+#define AN7589_WDMA_RST 17
+#define AN7589_WOE0_RST 18
+#define AN7589_HSDMA_RST 19
+#define AN7589_TDMA_RST 20
+#define AN7589_EMMC_RST 21
+#define AN7589_SOE_RST 22
+#define AN7589_XFP_MAC_RST 23
+#define AN7589_MDIO0_RST 24
+#define AN7589_MDIO1_RST 25
+/* RST_CTRL1 */
+#define AN7589_PCM1_ZSI_ISI_RST 26
+#define AN7589_FE_PDMA_RST 27
+#define AN7589_FE_QDMA_RST 28
+#define AN7589_PCM_SPIWP_RST 29
+#define AN7589_CRYPTO_RST 30
+#define AN7589_TIMER_RST 31
+#define AN7589_PCM1_RST 32
+#define AN7589_UART_RST 33
+#define AN7589_GPIO_RST 34
+#define AN7589_GDMA_RST 35
+#define AN7589_I2C_MASTER_RST 36
+#define AN7589_PCM2_ZSI_ISI_RST 37
+#define AN7589_SFC_RST 38
+#define AN7589_UART2_RST 39
+#define AN7589_GDMP_RST 40
+#define AN7589_FE_RST 41
+#define AN7589_USB_HOST_P0_RST 42
+#define AN7589_GSW_RST 43
+#define AN7589_SFC2_PCM_RST 44
+#define AN7589_PCIE0_RST 45
+#define AN7589_PCIE1_RST 46
+#define AN7589_CPU_TIMER_RST 47
+#define AN7589_PCIE_HB_RST 48
+#define AN7589_XPON_MAC_RST 49
+/* RST_CTRL3 */
+#define AN7589_I2C3_RST 50
+#define AN7589_I2C4_RST 51
+#define AN7589_I2C5_RST 52
+#define AN7589_OPTL_SYS_RST 53
+#define AN7589_MDIO2_RST 54
+
+#endif /* __DT_BINDINGS_RESET_CONTROLLER_AIROHA_AN7589_H_ */
--
2.34.1
next prev parent reply other threads:[~2026-11-24 10:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 10:12 [PATCH 0/6] clk: en7523: add support for Airoha AN7589 John Crispin
2026-11-24 10:12 ` [PATCH 1/6] dt-bindings: arm: airoha: add AN7589 chip SCU John Crispin
2026-11-24 10:12 ` John Crispin [this message]
2026-11-24 10:12 ` [PATCH 3/6] clk: en7523: decouple base clock count from clock ID count John Crispin
2026-11-24 10:12 ` [PATCH 4/6] clk: en7523: add support for Airoha AN7589 John Crispin
2026-11-24 10:12 ` [PATCH 5/6] dt-bindings: clock: airoha: allow MDIO controllers under the SCU John Crispin
2026-11-24 10:12 ` [PATCH 6/6] 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=20261124101220.3888170-3-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
all inboxes | Powered by JetHome®