rockchip64-6.18: nanopi-zero2: enable PCIe for M.2 WiFi slot

Enable the PCIe Gen2x1 controller and combo PHY on the NanoPi Zero2
to support the M.2 Key-E 2230 slot used for WiFi/BT cards (e.g. Intel
AX210).

The reset GPIO (gpio1 RK_PA2) and pinctrl (pciem1_pins) match the
vendor kernel device tree.

Note: Intel AX210 requires iwlwifi firmware >= v89
(iwlwifi-ty-a0-gf-a0-89.ucode) which may not be included in minimal
images. Install linux-firmware or armbian-firmware-full if needed.
Firmware available at:
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/

Tested on hardware with Intel AX210 on kernel 6.18 (current branch).
This commit is contained in:
Shlomi Marco 2026-03-01 09:20:20 +02:00 committed by Igor
parent 7fb01ef6f6
commit 8babf18aac

View File

@ -0,0 +1,41 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Armbian <info@armbian.com>
Date: Thu, 27 Feb 2026 00:00:00 +0000
Subject: arm64: dts: rockchip: Enable PCIe on NanoPi Zero2
Enable the PCIe Gen2x1 controller and combo PHY on the FriendlyElec
NanoPi Zero2 to support the M.2 Key-E 2230 slot used for WiFi cards.
The reset GPIO (gpio1 RK_PA2) and pinctrl (pciem1_pins) match the
vendor kernel device tree (rk3528-nanopi-rev01.dts).
Signed-off-by: Armbian <info@armbian.com>
---
arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts b/arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts
index 111111111111..222222222222 100644
--- a/arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts
@@ -176,6 +176,17 @@
cpu-supply = <&vdd_arm>;
};
+&combphy {
+ status = "okay";
+};
+
+&pcie {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pciem1_pins>;
+ reset-gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>;
+ status = "okay";
+};
+
&gmac1 {
clock_in_out = "output";
phy-handle = <&rgmii_phy>;
--
Armbian