[PATCH 0/2] arm64: dts: rockchip: NanoPi Zero2: enable PCIe, fix the microSD sample phase
From: Sylvain LE FLOCH via B4 Relay
Date: Sat Dec 05 2026 - 16:48:51 EST
Two independent changes to the NanoPi Zero2's device tree. Both go in
rk3528-nanopi-zero2.dts rather than the shared rk3528-nanopi.dtsi: the
M.2 slot is the Zero2's own, and the sample phase depends on how the
board routes the microSD lines.
Patch 1 enables the PCIe controller for the M.2 Key-E slot.
Patch 2 sets the microSD's default sample phase to 270 degrees. When
tuning finds that every phase works, dw_mmc-rockchip falls back to the
default, 90 degrees from rk3528.dtsi, and at that phase reads fail on
this board.
Testing: two boards (RK3528A, 2 GB), one booting from microSD with an
empty M.2 slot, the other with an eMMC module and an RTL8822CE Wi-Fi
card in the slot, and two microSD cards (SanDisk Extreme and Samsung
EVO Plus, 32 GB). The tests ran on Linux 7.3.7 with the same nodes,
before the common NanoPi parts were split out. On for-next, the series
builds and passes CHECK_DTBS without a warning.
These patches were prepared with an AI coding assistant (Claude Code).
It read FriendlyElec's vendor device tree and the upstream device trees
of other RK3528 boards to find the PCIe pins, wrote the changes and
their descriptions, and wrote the diagnostic image that ran the read
tests. I ran the tests on my boards and reviewed the patches.
---
Sylvain LE FLOCH (2):
arm64: dts: rockchip: Enable PCIe for the M.2 slot on NanoPi Zero2
arm64: dts: rockchip: Fix the microSD's default sample phase on NanoPi Zero2
arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
---
base-commit: ef6427a0fcc86af4f434bc92b9d01fdc5c094e5c
change-id: 20261205-zero2-dts-1bd9fe9bb3be
Best regards,
--
Sylvain LE FLOCH <vantom@xxxxxxxxxxxxx>