[PATCH] ARM: dts: allwinner: nanopi-neo-air: Add LPO clock to WiFi pwrseq

Abel Vesa abel.vesa at oss.qualcomm.com
Thu Dec 3 13:25:26 PST 2026


The AP6212 module on the NanoPi NEO Air needs the 32.768 kHz LPO clock,
which comes from the RTC clock fanout (CLK_OSC32K_FANOUT). That clock is
currently only referenced by the Bluetooth node on UART3, so nothing
enables it when brcmfmac probes the SDIO function. The WiFi probe then
fails with:

  brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50

and no wlan interface shows up, since the Bluetooth driver only enables
the shared clock later on.

Describe the clock as the pwrseq ext_clock, as is already done for the
same module on the NanoPi Duo2, so the clock is enabled before the
chip is taken out of reset.

Fixes: 88c23c05ef18 ("ARM: dts: nanopi-neo-air: Add WiFi / eMMC")
Signed-off-by: Abel Vesa <abel.vesa at oss.qualcomm.com>
---
WiFi on the NanoPi NEO Air does not come up with mainline, because the
LPO clock needed by the AP6212 is only enabled by the Bluetooth driver,
after brcmfmac has already given up. Add the clock to the WiFi pwrseq.

Tested on a NanoPi NEO Air with v7.4-rc5 (multi_v7_defconfig): wlan0
comes up and associates, Bluetooth still works.
---
 arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-neo-air.dts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-neo-air.dts b/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-neo-air.dts
index 9a2742363cd0..ec9f986ded7e 100644
--- a/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-neo-air.dts
+++ b/arch/arm/boot/dts/allwinner/sun8i-h3-nanopi-neo-air.dts
@@ -76,6 +76,8 @@ led-1 {
 	wifi_pwrseq: pwrseq {
 		compatible = "mmc-pwrseq-simple";
 		reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
+		clocks = <&rtc CLK_OSC32K_FANOUT>;
+		clock-names = "ext_clock";
 	};
 };
 

---
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
change-id: 20261203-arm-dts-nanopi-neo-air-wifi-lpo-db864b0c0720

Best regards,
-- 

Abel




More information about the linux-arm-kernel mailing list