[PATCH v2] arm64: dts: rockchip: fix SDIO Wi-Fi on the Sakura Pi RK3308B

Abduwaris Nurmemet daabu at qq.com
Sun Nov 29 01:14:38 PST 2026


The AP6255 (BCM43455) SDIO Wi-Fi module is wired to VCCIO4, which this
board supplies with 1.8 V.  VCCIO3 (eMMC and SPI flash I/O) is also
1.8 V, while VCCIO0, VCCIO1, VCCIO2 and VCCIO5 run at 3.3 V.

Describe those rails on the io-domains node so that the rockchip-iodomain
driver programs GRF_SOC_CON0 for the voltages the board actually uses,
and add the matching vqmmc-supply to the SDIO controller.  Without this
the SoC configures its SDIO pads for a 3.3 V I/O domain although the
module runs at 1.8 V; the resulting drive and slew mismatch makes the bus
unreliable, and the card either fails to enumerate (mmc2: error -84) or
only links up at a very low clock rate.

The BCM43455 SDIO interface is limited to 50 MHz, so cap the bus at that
rate instead of the 150 MHz default inherited from the SoC dtsi.

Fixes: 79f2a1702441 ("arm64: dts: rockchip: add DTs for Sakura Pi RK3308B")
Signed-off-by: Abduwaris Nurmemet <daabu at qq.com>
---
Changes in v2:
- Drop the custom io-1v8-domains property, DT binding and pinctrl driver
  from v1.  Describe the I/O rails on the standard io-domains node and add
  vqmmc-supply to the SDIO controller instead.
- Cap the SDIO bus at 50 MHz, the maximum supported by the BCM43455.
- Tested on a Sakura Pi RK3308B: rockchip-iodomain probes, mmc2
  enumerates at 50 MHz and Wi-Fi associates, with no dmesg errors.

 .../boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts    | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts b/arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts
index 3473db0..9344f9b 100644
--- a/arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3308-sakurapi-rk3308b.dts
@@ -183,16 +183,28 @@
 	status = "okay";
 };
 
+&io_domains {
+	vccio0-supply = <&vcc_io>;
+	vccio1-supply = <&vcc_io>;
+	vccio2-supply = <&vcc_io>;
+	vccio3-supply = <&vcc_1v8>;
+	vccio4-supply = <&vcc_1v8>;
+	vccio5-supply = <&vcc_io>;
+	status = "okay";
+};
+
 &sdio {
 	#address-cells = <1>;
 	#size-cells = <0>;
 	cap-sd-highspeed;
 	cap-sdio-irq;
 	keep-power-in-suspend;
+	max-frequency = <50000000>;
 	mmc-pwrseq = <&sdio_pwrseq>;
 	non-removable;
 	no-mmc;
 	no-sd;
+	vqmmc-supply = <&vcc_1v8>;
 	status = "okay";
 
 	brcmf: wifi at 1 {
-- 
2.47.3




More information about the Linux-rockchip mailing list