From: Yu-Chun Lin <eleanor.lin@realtek.com>
To: <broonie@kernel.org>, <robh@kernel.org>, <krzk+dt@kernel.org>,
<conor+dt@kernel.org>, <afaerber@suse.com>
Cc: <bartosz.golaszewski@oss.qualcomm.com>, <james.tai@realtek.com>,
<cy.huang@realtek.com>, <stanley_chang@realtek.com>,
<eleanor.lin@realtek.com>, <jyanchou@realtek.com>,
<linux-spi@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-realtek-soc@lists.infradead.org>
Subject: [PATCH 3/3] arm64: dts: realtek: Add SPI NOR flash node for RTD1625
Date: Fri, 4 Sep 2026 11:12:52 +0800 [thread overview]
Message-ID: <20260904031252.244280-4-eleanor.lin@realtek.com> (raw)
In-Reply-To: <20260904031252.244280-1-eleanor.lin@realtek.com>
Add the SPI NOR flash node for the Realtek RTD1625 SoC.
Signed-off-by: Yu-Chun Lin <eleanor.lin@realtek.com>
---
arch/arm64/boot/dts/realtek/kent-pinctrl.dtsi | 16 ++++++++++++
arch/arm64/boot/dts/realtek/kent.dtsi | 26 +++++++++++++++++++
2 files changed, 42 insertions(+)
create mode 100644 arch/arm64/boot/dts/realtek/kent-pinctrl.dtsi
diff --git a/arch/arm64/boot/dts/realtek/kent-pinctrl.dtsi b/arch/arm64/boot/dts/realtek/kent-pinctrl.dtsi
new file mode 100644
index 000000000000..01df3aa9254a
--- /dev/null
+++ b/arch/arm64/boot/dts/realtek/kent-pinctrl.dtsi
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (c) 2026 Realtek Semiconductor Corp.
+ */
+
+&main2_pinctrl {
+ spi_pins: spi-pins {
+ pins = "gpio_64",
+ "gpio_65",
+ "gpio_66",
+ "gpio_67";
+ function = "spi";
+ realtek,drive-strength-p = <3>;
+ realtek,drive-strength-n = <2>;
+ };
+};
diff --git a/arch/arm64/boot/dts/realtek/kent.dtsi b/arch/arm64/boot/dts/realtek/kent.dtsi
index 409d46a73c91..e266d62b6527 100644
--- a/arch/arm64/boot/dts/realtek/kent.dtsi
+++ b/arch/arm64/boot/dts/realtek/kent.dtsi
@@ -5,6 +5,8 @@
* Copyright (c) 2024 Realtek Semiconductor Corp.
*/
+#include <dt-bindings/clock/realtek,rtd1625-clk.h>
+#include <dt-bindings/reset/realtek,rtd1625.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
@@ -137,6 +139,7 @@ psci: psci {
soc@0 {
compatible = "simple-bus";
ranges = <0x0 0x0 0x0 0x40000>, /* boot code */
+ <0x88100000 0x0 0x88100000 0x02000000>, /* NOR flash aperture */
<0x98000000 0x0 0x98000000 0xef0000>, /* rbus */
<0xa0000000 0x0 0xa0000000 0x10000000>, /* PCIE */
<0xff000000 0x0 0xff000000 0x200000>; /* GIC */
@@ -146,6 +149,7 @@ soc@0 {
rbus: bus@98000000 {
compatible = "simple-bus";
ranges = <0x0 0x98000000 0xef0000>,
+ <0x88100000 0x88100000 0x02000000>, /* NOR flash aperture */
<0xa0000000 0xa0000000 0x10000000>; /* PCIE */
#address-cells = <1>;
#size-cells = <1>;
@@ -199,6 +203,26 @@ iso_s_cc: clock-controller@146310 {
#reset-cells = <1>;
};
+ nor_flash: spi@14b000 {
+ compatible = "realtek,rtd1625-nor";
+ reg = <0x14b000 0x50>, <0x14bf00 0x30>, <0x88100000 0x2000000>;
+ reg-names = "ctrl", "dma", "dirmap";
+ clocks = <&cc RTD1625_CRT_CLK_EN_MD>;
+ resets = <&cc RTD1625_CRT_RSTN_MD>;
+ pinctrl-0 = <&spi_pins>;
+ pinctrl-names = "default";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ flash@0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ spi-rx-bus-width = <2>;
+ spi-tx-bus-width = <2>;
+ spi-max-frequency = <64000000>;
+ };
+ };
+
ve4_pinctrl: pinctrl@14e000 {
compatible = "realtek,rtd1625-ve4-pinctrl";
reg = <0x14e000 0x84>;
@@ -217,3 +241,5 @@ gic: interrupt-controller@ff100000 {
};
};
};
+
+#include "kent-pinctrl.dtsi"
--
2.43.0
next prev parent reply other threads:[~2026-09-04 3:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-04 3:12 [PATCH 0/3] spi: realtek: Add support for RTD1625 SPI Flash Controller Yu-Chun Lin
2026-09-04 3:12 ` [PATCH 1/3] dt-bindings: spi: Add Realtek RTD1625 SPI support Yu-Chun Lin
2026-09-04 13:40 ` Rob Herring (Arm)
2026-09-04 3:12 ` [PATCH 2/3] spi: spi-mem: Add Realtek SPI flash controller driver Yu-Chun Lin
2026-09-04 3:12 ` Yu-Chun Lin [this message]
2026-09-04 10:54 ` [PATCH 0/3] spi: realtek: Add support for RTD1625 SPI Flash Controller Mark Brown
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=20260904031252.244280-4-eleanor.lin@realtek.com \
--to=eleanor.lin@realtek.com \
--cc=afaerber@suse.com \
--cc=bartosz.golaszewski@oss.qualcomm.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=cy.huang@realtek.com \
--cc=devicetree@vger.kernel.org \
--cc=james.tai@realtek.com \
--cc=jyanchou@realtek.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-realtek-soc@lists.infradead.org \
--cc=linux-spi@vger.kernel.org \
--cc=robh@kernel.org \
--cc=stanley_chang@realtek.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