Re: [PATCH RESEND v2 0/8] mmc: spacemit: Improve clock and tuning logic

From: Ioannis Karazournias

Date: Wed Dec 02 2026 - 14:04:40 EST


Tested on the Orange Pi RV2 (SpacemiT K1) with its onboard AP6256
(BCM43456) SDIO WiFi on sdhci1 (fixed 1.8 V vqmmc, "default" pinctrl
state only), on v6.18 under OpenWrt.

I hit the same two crashes while bringing up the WiFi: the 32-bit
access to SDHCI_HOST_CONTROL2 faulting in probe (fixed by 3/8), and the
NULL pinctrl state in the voltage switch path (fixed by 1/8).

With this series applied the card enumerates as UHS-I SDR104 at
204.8 MHz, brcmfmac loads its firmware, and AP mode on 5 GHz VHT80 runs
at ~220/260 Mbit/s down/up over about two hours of testing. The SD card
on sdhci0 keeps working at SDR104.

One hang was seen with an earlier build that capped the SDIO clock at
50 MHz (34 MHz actual); it has not happened again since the cap was
removed.

Tested-by: Ioannis Karazournias <i.karazournias@xxxxx>