From: sashiko-bot@kernel.org
To: "Sylvain LE FLOCH" <vantom@protonmail.ch>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/2] arm64: dts: rockchip: Enable PCIe for the M.2 slot on NanoPi Zero2
Date: Sat, 05 Dec 2026 22:00:27 +0000 [thread overview]
Message-ID: <sashiko-outbox-251932@kernel.org> (raw)
In-Reply-To: <20261205-zero2-dts-v1-1-eb08c4eb5ab3@protonmail.ch>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] arm64: dts: rockchip: pciem1_pins muxes PERST# reset GPIO to
function 4
--
commit 392df963cea381731f347dd5415e226d20952e03
Author: Sylvain LE FLOCH <vantom@protonmail.ch>
arm64: dts: rockchip: Enable PCIe for the M.2 slot on NanoPi Zero2
This commit enables the combo PHY and PCIe controller for the M.2 slot on
the NanoPi Zero2, using the pciem1_pins pinctrl group and GPIO1_PA2 as
reset-gpios.
> diff --git a/arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts b/arch/arm64/boot/dts/rockchip/rk3528-nanopi-zero2.dts
> index 05ae03622e850..2e43f1f4c2f36 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 {
[ ... ]
> +&pcie {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pciem1_pins>;
> + reset-gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>;
> + vpcie3v3-supply = <&vcc_3v3>;
> + status = "okay";
> +};
[Severity: Medium]
Does pciem1_pins conflict with reset-gpios on GPIO1_PA2?
In rk3528-pinctrl.dtsi, pciem1_pins muxes GPIO1_PA2 to hardware function 4
(pcie_perstn_m1) instead of RK_FUNC_GPIO. Linux masks this because
pinctrl-rockchip remuxes the pin to GPIO when rockchip_pcie_resource_get()
requests reset-gpios, after briefly switching it during pinctrl_bind_pins().
Stricter DT consumers such as U-Boot apply pinctrl-0 without remuxing on
GPIO request, leaving GPIO1_PA2 in function 4 and causing PCIe probing to
fail or hang, as in commit e95e4fcdc454 ("arm64: dts: rockchip: Use GPIO
function for PCIe reset on Orange Pi 5 Pro").
Should the board DTS define a pinctrl group that muxes GPIO1_PA2 to
RK_FUNC_GPIO while keeping GPIO1_PA0 and GPIO1_PA1 on function 4?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205-zero2-dts-v1-0-eb08c4eb5ab3@protonmail.ch?part=1
next prev parent reply other threads:[~2026-12-05 22:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
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=sashiko-outbox-251932@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--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 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.