From: Abduwaris Nurmemet <daabu@qq.com>
To: linux-rockchip@lists.infradead.org
Cc: Heiko Stuebner <heiko@sntech.de>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Chiyuki Akatsuki <thesnowfield@sakurapi.org>
Subject: [PATCH v2] arm64: dts: rockchip: fix SDIO Wi-Fi on the Sakura Pi RK3308B
Date: Sun, 29 Nov 2026 17:14:38 +0800 [thread overview]
Message-ID: <tencent_8CBF26AEE0A30976D669C6FF243C03645907@qq.com> (raw)
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@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@1 {
--
2.47.3
reply other threads:[~2026-11-29 9:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=tencent_8CBF26AEE0A30976D669C6FF243C03645907@qq.com \
--to=daabu@qq.com \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=thesnowfield@sakurapi.org \
/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
all inboxes | Powered by JetHome®