[PATCH 0/3] pinctrl: rockchip: fix RK3308 SDIO WiFi by setting I/O domain voltages early

Abduwaris Nurmemet daabu at qq.com
Sat Nov 28 23:14:00 PST 2026


Hi,

on the RK3308 the SDIO controller is only reliable at 50 MHz when the
I/O domain feeding its pins runs at 1.8V.  The generic io-domain driver
is probed after the MMC controllers, so on boards where domain 4 has to
be 1.8V the SDIO card is enumerated too early: the bus either fails
with -84 or only works at a very low clock.  This is what happens on
the Sakura Pi RK3308B with its AP6255 WiFi module.

The Rock Pi-S solved this by programming the domain selection from the
pinctrl driver, which probes before the MMC host.  This series does the
same in a board-independent way:

  1. document an io-1v8-domains bitmask property for the pinctrl node
  2. program the mask in the RK3308 pinctrl probe
  3. use it in the Sakura Pi RK3308B DTS, together with the 50 MHz
     SDIO clock

Tested on a Sakura Pi RK3308B running 7.3.6: without the series mmc2
fails with error -84 and no wlan0 appears; with it the bus runs at
50 MHz and the AP6255 is usable.  The same property has been carried in
the Armbian kernel for the Rock Pi-S for a while.

Note: the property name is not vendor-prefixed.  I am happy to rename
it to rockchip,io-1v8-domains if that is preferred.

Abduwaris Nurmemet (3):
  dt-bindings: pinctrl: rockchip: document io-1v8-domains
  pinctrl: rockchip: program RK3308 I/O domains before SDIO probes
  arm64: dts: rockchip: fix SDIO WiFi on the Sakura Pi RK3308B

 .../bindings/pinctrl/rockchip,pinctrl.yaml    |  9 +++++
 .../dts/rockchip/rk3308-sakurapi-rk3308b.dts  |  3 ++
 drivers/pinctrl/pinctrl-rockchip.c            | 37 +++++++++++++++++++
 3 files changed, 49 insertions(+)

-- 
2.47.3




More information about the Linux-rockchip mailing list