[PATCH v3 0/6] Support SD/SDIO controllers on RK3528
From: Yao Zi
Date: Sun Mar 09 2025 - 00:54:37 EST
RK3528 features two SDIO controllers and one SD/MMC controller. This
series adds essential support for their tuning clocks, document the
controller in dt-bindings and bring the SD/MMC one up on Radxa E20C
board. Both HS and SDR104 mode are verified.
- Changed from v2
- Apply review tags
- Rebase on top of linux-rockchip/for-next and drop applied patches
- RK3528 devicetree
- Fix accidentally dropped status property of saradc node
- drop det and pwren pinctrls for SDIO{0,1} according to the
reference design
- Correct max-frequency for SDIO{0,1}
- rk3528-radxa-e20c devicetree
- Don't disable sdio for sdmmc as claimed in the hw design guide
- Link to v2: https://lore.kernel.org/all/20250305194217.47052-1-ziyao@xxxxxxxxxxx/
- Changed from v1
- Apply review tags
- Rebase on top of linux-rockchip/for-next and saradc v2 series
- rk3528 clock driver:
- explicitly include minmax.h, replace MAX() with more robust max()
- readability improvements
- fix error checks: ERR_PTR(-ENODEV), instead of ERR_PTR(ENODEV), is
returned when syscon_regmap_lookup_by_compatible() fails for missing
such syscon
- RK3528 devicetree
- Add default pinctrl
- Move the per-SoC property, rockchip,default-sample-phase, into the
SoC devicetree
- rk3528-radxa-e20c devicetree
- Assign sdcard to mmc1
- Add missing regulators
- Apply no-sdio for the sdmmc controller
- Sort nodes
- Link to v1: https://lore.kernel.org/all/20250301104250.36295-1-ziyao@xxxxxxxxxxx/
Thanks for your time and review.
Yao Zi (6):
dt-bindings: mmc: rockchip-dw-mshc: Add compatible string for RK3528
dt-bindings: clock: Add GRF clock definition for RK3528
clk: rockchip: Support MMC clocks in GRF region
clk: rockchip: rk3528: Add SD/SDIO tuning clocks in GRF region
arm64: dts: rockchip: Add SDMMC/SDIO controllers for RK3528
arm64: dts: rockchip: Enable SD-card interface on Radxa E20C
.../bindings/mmc/rockchip-dw-mshc.yaml | 1 +
.../boot/dts/rockchip/rk3528-radxa-e20c.dts | 33 +++++++++
arch/arm64/boot/dts/rockchip/rk3528.dtsi | 69 +++++++++++++++++++
drivers/clk/rockchip/clk-mmc-phase.c | 24 +++++--
drivers/clk/rockchip/clk-rk3528.c | 61 ++++++++++++++--
drivers/clk/rockchip/clk.c | 42 +++++++++++
drivers/clk/rockchip/clk.h | 23 ++++++-
.../dt-bindings/clock/rockchip,rk3528-cru.h | 6 ++
8 files changed, 248 insertions(+), 11 deletions(-)
--
2.48.1