From: Sylvain LE FLOCH via B4 Relay <devnull+vantom.protonmail.ch@kernel.org>
To: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Heiko Stuebner <heiko@sntech.de>,
Jonas Karlman <jonas@kwiboo.se>
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org,
linux-kernel@vger.kernel.org,
Sylvain LE FLOCH <vantom@protonmail.ch>
Subject: [PATCH 1/2] arm64: dts: rockchip: Enable PCIe for the M.2 slot on NanoPi Zero2
Date: Sat, 05 Dec 2026 22:45:34 +0100 [thread overview]
Message-ID: <20261205-zero2-dts-v1-1-eb08c4eb5ab3@protonmail.ch> (raw)
In-Reply-To: <20261205-zero2-dts-v1-0-eb08c4eb5ab3@protonmail.ch>
From: Sylvain LE FLOCH <vantom@protonmail.ch>
The NanoPi Zero2 has an M.2 Key-E 2230 slot for Wi-Fi/Bluetooth cards,
wired to the RK3528's PCIe 2.1 x1 controller through the combo PHY, on
the PCIe pins of mux 1: CLKREQ# GPIO1_A0, WAKE# GPIO1_A1 and PERST#
GPIO1_A2.
Enable the combo PHY and the PCIe controller with the pciem1_pins group,
PERST# driven as a GPIO, and the slot powered from vcc_3v3, as on the
Radxa E20C, which uses the same pins.
Tested on two boards: with an empty slot, the controller probes and
reports that no device is found; with a Realtek RTL8822CE card, the link
comes up at 2.5 GT/s x1, the card's limit, and rtw88_8822ce brings up
its Wi-Fi.
Signed-off-by: Sylvain LE FLOCH <vantom@protonmail.ch>
---
arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts b/arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts
index 05ae03622e85..2e43f1f4c2f3 100644
--- a/arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts
@@ -45,12 +45,24 @@ usb2_host_5v: regulator-5v0-usb2-host {
};
};
+&combphy {
+ status = "okay";
+};
+
&led1 {
default-state = "on";
function = LED_FUNCTION_STATUS;
linux,default-trigger = "default-on";
};
+&pcie {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pciem1_pins>;
+ reset-gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>;
+ vpcie3v3-supply = <&vcc_3v3>;
+ status = "okay";
+};
+
&pinctrl {
usb {
usb20_host1_pwren: usb20-host1-pwren {
--
2.53.0
next prev parent reply other threads:[~2026-12-05 21:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 21:45 [PATCH 0/2] arm64: dts: rockchip: NanoPi Zero2: enable PCIe, fix the microSD sample phase Sylvain LE FLOCH via B4 Relay
2026-12-05 21:45 ` Sylvain LE FLOCH via B4 Relay [this message]
2026-12-05 21:45 ` [PATCH 2/2] arm64: dts: rockchip: Fix the microSD's default sample phase on NanoPi Zero2 Sylvain LE FLOCH via B4 Relay
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=20261205-zero2-dts-v1-1-eb08c4eb5ab3@protonmail.ch \
--to=devnull+vantom.protonmail.ch@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=jonas@kwiboo.se \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=robh@kernel.org \
--cc=vantom@protonmail.ch \
/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®