[PATCH v5 0/3] Add SDHCI support for Canaan K230 SoC

Ulf Hansson ulf.hansson at linaro.org
Mon Mar 23 08:19:29 PDT 2026


On Thu, 19 Mar 2026 at 15:07, Jiayu Du <jiayu.riscv at isrc.iscas.ac.cn> wrote:
>
> This series is based on the k230 usbphy series[1].
>
> This patch series adds SDHCI support for the Canaan K230 SoC,
> which uses Synopsys DWCMSHC SDHCI controllers, include MMC0 and MMC1.
> The hardware designs of these two controllers are different.
> The MMC0 supports eMMC, while MMC1 only supports SDIO. Detailed
> information can be found in the vendor's manual[2].
>
> From the vendor's K230 manual:
>  - MMC0 supports eMMC5.0 and SDIO3.0, usually for eMMC chips.
>  - MMC1 only does SDIO3.0 in 4/1-bit mode up to SDR104, and the manual
>    clearly says it can't handle eMMC because of pin count and limits.
>
> Therefore, there are two separate compatibles and the driver treats them
> differently.
>
> Link: https://lore.kernel.org/all/20260121145526.14672-1-jiayu.riscv@isrc.iscas.ac.cn/ [1]
> Link: https://github.com/kendryte/k230_docs/blob/main/en/00_hardware/K230_Hardware_Design_Guide.md#mmc-circuit [2]
>
> Changes in v5:
> - Drop the unnecessary line wrapping.
> - Drop k230_priv->k230_pdata.
> - Make a macro to uses container_of for pointer type conversion.
> - Add the tested-by tag.
> - Link to v4: https://lore.kernel.org/all/20260315054426.18383-1-jiayu.riscv@isrc.iscas.ac.cn/
>

Patch 1 and patch2 applied for next, thanks!

[...]

Kind regards
Uffe



More information about the linux-riscv mailing list