mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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 0/2] arm64: dts: rockchip: NanoPi Zero2: enable PCIe, fix the microSD sample phase
Date: Sat, 05 Dec 2026 22:45:33 +0100	[thread overview]
Message-ID: <20261205-zero2-dts-v1-0-eb08c4eb5ab3@protonmail.ch> (raw)

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>



             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 Sylvain LE FLOCH via B4 Relay [this message]
2026-12-05 21:45 ` [PATCH 1/2] arm64: dts: rockchip: Enable PCIe for the M.2 slot on NanoPi Zero2 Sylvain LE FLOCH via B4 Relay
2026-12-05 21:45 ` [PATCH 2/2] arm64: dts: rockchip: Fix the microSD's default sample phase " 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-0-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®