From: sashiko-bot@kernel.org
To: "Qian Zhang via B4 Relay"
<devnull+qian.zhang.oss.qualcomm.com@kernel.org>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
krzk+dt@kernel.org
Subject: Re: [PATCH v3] arm64: dts: qcom: arduino-monza: add WLAN enable and rfkill GPIO
Date: Tue, 12 May 2026 01:09:03 +0000 [thread overview]
Message-ID: <20260512010904.12442C2BCB0@smtp.kernel.org> (raw)
In-Reply-To: <20260511-linux-next-v3-1-3e22737e71eb@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] Hardware backpowering flaw during system suspend due to uncoordinated W_DISABLE# GPIO and M.2 power supply.
- [Medium] Missing `pinctrl` definitions for newly added GPIOs.
- [Low] Devicetree schema violation for the fixed regulator node name.
--
commit ea2590eabdbe9514777a7849913aa724f8e8c30b
Author: Qian Zhang <qian.zhang@oss.qualcomm.com>
arm64: dts: qcom: arduino-monza: add WLAN enable and rfkill GPIO
This patch adds support for the QCNFA765 M.2 PCIe WLAN module by modeling
GPIO56 as a fixed regulator for wlan_en, and GPIO54 as an rfkill-gpio node.
The regulator is linked to the PCIe node to provide power sequencing.
> diff --git a/arch/arm64/boot/dts/qcom/monaco-arduino-monza.dts b/arch/arm64/boot/dts/qcom/monaco-arduino-monza.dts
> index ca14f0ea4dae6..e0ffe87bba90c 100644
> --- a/arch/arm64/boot/dts/qcom/monaco-arduino-monza.dts
> +++ b/arch/arm64/boot/dts/qcom/monaco-arduino-monza.dts
> @@ -153,6 +153,25 @@ vreg_nvme: regulator-3p3-m2 {
[ ... ]
> + rfkill-wlan {
> + compatible = "rfkill-gpio";
> + label = "wlan";
> + radio-type = "wlan";
> + shutdown-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
If the bootloader leaves the pin in an alternate function or undefined state,
the kernel might fail to control the RF kill state reliably.
Does this node require pinctrl properties to ensure GPIO 54 is muxed correctly
and has the appropriate bias and drive strength?
Additionally, the PCIe controller's vddpe-3v3-supply is disabled by the
pcie-qcom driver during system suspend, dropping power to the M.2 slot.
However, the rfkill-gpio driver lacks PM suspend/resume callbacks.
If the radio is unblocked, the SoC will continue driving GPIO 54 HIGH during
suspend while the M.2 module is unpowered.
Could this inject a logic HIGH into the unpowered module, causing current
leakage that prevents deep sleep states or damages the hardware?
Would it be better to synchronize the power sequence to safely deassert the
W_DISABLE# pin before dropping power, perhaps using the pwrseq-pci framework?
> + };
> +
> + wlan_reg_3v3: wlan-3v3-regulator {
This isn't a bug, but the node name wlan-3v3-regulator appears to violate the
fixed-regulator device tree schema.
According to Documentation/devicetree/bindings/regulator/fixed-regulator.yaml,
fixed regulator node names should match the pattern
^regulator(-[0-9]+v[0-9]+|-[0-9a-z-]+)?$.
Should this be renamed to something like regulator-wlan-3v3?
> + compatible = "regulator-fixed";
> + regulator-name = "wlan_en";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + vin-supply = <&vdc_3v3>;
> + gpio = <&tlmm 56 GPIO_ACTIVE_HIGH>;
Similar to the rfkill node, does this regulator need a pinctrl reference to
configure GPIO 56 properly?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260511-linux-next-v3-1-3e22737e71eb@oss.qualcomm.com?part=1
prev parent reply other threads:[~2026-05-12 1:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-11 8:48 [PATCH v3] arm64: dts: qcom: arduino-monza: add WLAN enable and rfkill GPIO Qian Zhang via B4 Relay
2026-05-12 1:09 ` sashiko-bot [this message]
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=20260512010904.12442C2BCB0@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=devnull+qian.zhang.oss.qualcomm.com@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=robh@kernel.org \
--cc=sashiko@lists.linux.dev \
/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