[PATCH 1/2] arm64: dts: rockchip: Enable PCIe for the M.2 slot on NanoPi Zero2
From: Sylvain LE FLOCH via B4 Relay
Date: Sat Dec 05 2026 - 16:48:43 EST
From: Sylvain LE FLOCH <vantom@xxxxxxxxxxxxx>
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@xxxxxxxxxxxxx>
---
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