From: Chuanhong Guo <gch981213@gmail.com>
To: Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney@redhat.com>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>
Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
Chuanhong Guo <gch981213@gmail.com>
Subject: [PATCH 2/4] dt-bindings: clock: add binding header for sf21-topcrm
Date: Sun, 17 May 2026 22:12:56 +0800 [thread overview]
Message-ID: <20260517-sf21-topcrm-v1-2-438f2e0513ff@gmail.com> (raw)
In-Reply-To: <20260517-sf21-topcrm-v1-0-438f2e0513ff@gmail.com>
Add the device tree binding header for Siflower SF21A6826/SF21H8898
toplevel clock and reset module. The header covers both clock and
reset IDs provided by the block.
CLK_ETH_REF_P is a clock name that exists in the vendor datasheet.
This clock connects directly to CLK_PCIEPLL_FOUT2 and there's no
clock gate/mux in between. An alias is created for this clock
to make available clock names align with the datasheet.
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
---
include/dt-bindings/clock/siflower,sf21-topcrm.h | 63 ++++++++++++++++++++++++
1 file changed, 63 insertions(+)
diff --git a/include/dt-bindings/clock/siflower,sf21-topcrm.h b/include/dt-bindings/clock/siflower,sf21-topcrm.h
new file mode 100644
index 000000000000..3690b3452501
--- /dev/null
+++ b/include/dt-bindings/clock/siflower,sf21-topcrm.h
@@ -0,0 +1,63 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
+
+#ifndef _DT_BINDINGS_CLK_SIFLOWER_SF21_TOPCRM_H
+#define _DT_BINDINGS_CLK_SIFLOWER_SF21_TOPCRM_H
+
+#define SF21_CLK_CMNPLL_VCO 0
+#define SF21_CLK_CMNPLL_POSTDIV 1
+
+#define SF21_CLK_DDRPLL_POSTDIV 2
+
+#define SF21_CLK_PCIEPLL_VCO 3
+#define SF21_CLK_PCIEPLL_FOUT0 4
+#define SF21_CLK_PCIEPLL_FOUT1 5
+#define SF21_CLK_PCIEPLL_FOUT2 6
+#define SF21_CLK_ETH_REF_P SF21_CLK_PCIEPLL_FOUT2
+#define SF21_CLK_PCIEPLL_FOUT3 7
+
+#define SF21_CLK_CPU 8
+#define SF21_CLK_PIC 9
+#define SF21_CLK_AXI 10
+#define SF21_CLK_AHB 11
+#define SF21_CLK_APB 12
+#define SF21_CLK_UART 13
+#define SF21_CLK_IRAM 14
+#define SF21_CLK_NPU 15
+#define SF21_CLK_DDRPHY_REF 16
+#define SF21_CLK_DDR_BYPASS 17
+#define SF21_CLK_ETHTSU 18
+#define SF21_CLK_GMAC_BYP_REF 19
+#define SF21_CLK_USB 20
+#define SF21_CLK_USBPHY 21
+#define SF21_CLK_SERDES_CSR 22
+#define SF21_CLK_CRYPT_CSR 23
+#define SF21_CLK_CRYPT_APP 24
+#define SF21_CLK_IROM 25
+#define SF21_CLK_BOOT 26
+#define SF21_CLK_PVT 27
+#define SF21_CLK_PLL_TEST 28
+#define SF21_CLK_PCIE_REFN 29
+#define SF21_CLK_PCIE_REFP 30
+#define SF21_CLK_MAX 31
+
+#define SF21_RESET_GIC 0
+#define SF21_RESET_AXI 1
+#define SF21_RESET_AHB 2
+#define SF21_RESET_APB 3
+#define SF21_RESET_IRAM 4
+#define SF21_RESET_NPU 5
+#define SF21_RESET_DDR_CTL 6
+#define SF21_RESET_DDR_PHY 7
+#define SF21_RESET_DDR_PWR_OK_IN 8
+#define SF21_RESET_DDR_CTL_APB 9
+#define SF21_RESET_DDR_PHY_APB 10
+#define SF21_RESET_USB 11
+#define SF21_RESET_PVT 12
+#define SF21_RESET_SERDES_CSR 13
+#define SF21_RESET_CRYPT_CSR 14
+#define SF21_RESET_CRYPT_APP 15
+#define SF21_RESET_NPU2DDR_ASYNCBRIDGE 16
+#define SF21_RESET_IROM 17
+#define SF21_RESET_MAX 18
+
+#endif
--
2.54.0
next prev parent reply other threads:[~2026-05-17 14:14 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-17 14:12 [PATCH 0/4] clk: add Siflower SF21 topcrm support Chuanhong Guo
2026-05-17 14:12 ` [PATCH 1/4] riscv: add Siflower RISC-V SoC family Kconfig support Chuanhong Guo
2026-05-17 14:12 ` Chuanhong Guo [this message]
2026-05-17 20:47 ` [PATCH 2/4] dt-bindings: clock: add binding header for sf21-topcrm Conor Dooley
2026-05-17 20:51 ` Conor Dooley
2026-05-18 11:42 ` Chuanhong Guo
2026-05-18 11:04 ` Yao Zi
2026-05-18 11:43 ` Chuanhong Guo
2026-05-17 14:12 ` [PATCH 3/4] dt-bindings: clock: add doc for Siflower sf21-topcrm Chuanhong Guo
2026-05-17 15:35 ` Rob Herring (Arm)
2026-05-17 20:50 ` Conor Dooley
2026-05-18 12:12 ` Chuanhong Guo
2026-05-18 12:28 ` Yao Zi
2026-05-17 14:12 ` [PATCH 4/4] clk: add support for siflower sf21-topcrm Chuanhong Guo
2026-05-18 12:21 ` Yao Zi
2026-05-18 13:34 ` Chuanhong Guo
2026-05-22 15:44 ` Yao Zi
2026-05-23 9:09 ` Chuanhong Guo
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=20260517-sf21-topcrm-v1-2-438f2e0513ff@gmail.com \
--to=gch981213@gmail.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=bmasney@redhat.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=mturquette@baylibre.com \
--cc=p.zabel@pengutronix.de \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
/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®