All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: dts: rockchip: NanoPi Zero2: enable PCIe, fix the microSD sample phase
@ 2026-12-05 21:45 ` Sylvain LE FLOCH via B4 Relay
  0 siblings, 0 replies; 11+ messages in thread
From: Sylvain LE FLOCH @ 2026-12-05 21:45 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
	Jonas Karlman
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	Sylvain LE FLOCH

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@protonmail.ch>


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-12-05 22:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 21:45 [PATCH 0/2] arm64: dts: rockchip: NanoPi Zero2: enable PCIe, fix the microSD sample phase Sylvain LE FLOCH
2026-12-05 21:45 ` Sylvain LE FLOCH via B4 Relay
2026-12-05 21:45 ` Sylvain LE FLOCH via B4 Relay
2026-12-05 21:45 ` [PATCH 1/2] arm64: dts: rockchip: Enable PCIe for the M.2 slot on NanoPi Zero2 Sylvain LE FLOCH
2026-12-05 21:45   ` Sylvain LE FLOCH via B4 Relay
2026-12-05 21:45   ` Sylvain LE FLOCH via B4 Relay
2026-12-05 22:00   ` sashiko-bot
2026-12-05 21:45 ` [PATCH 2/2] arm64: dts: rockchip: Fix the microSD's default sample phase " Sylvain LE FLOCH
2026-12-05 21:45   ` Sylvain LE FLOCH via B4 Relay
2026-12-05 21:45   ` Sylvain LE FLOCH via B4 Relay
2026-12-05 22:05   ` sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.