[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250213-20-k1-sdhci-v1-0-1f4362a980cd@gentoo.org>
Date: Thu, 13 Feb 2025 18:58:23 +0800
From: Yixun Lan <dlan@...too.org>
To: Ulf Hansson <ulf.hansson@...aro.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Adrian Hunter <adrian.hunter@...el.com>
Cc: linux-mmc@...r.kernel.org, devicetree@...r.kernel.org,
linux-riscv@...ts.infradead.org, spacemit@...ts.linux.dev,
linux-kernel@...r.kernel.org, Yixun Lan <dlan@...too.org>
Subject: [PATCH RFC 0/2] soc: spacemit: add sdhci support to K1 SoC
Add support for the SD/eMMC Host Controller found in SpacemiT K1 SoC,
The controller supports data transmission of MMC, SDIO, and SD protocol.
The SD/eMMC Host Controller has the following features:
- MMC/eMMC 5.1 specification compliant
- Supports PIO mode and SDMA mode data transfer
- Supports ADMA1 and ADMA 2 (64-bit addressing) data transfer
- Supports 1-bit/4-bit SD memory and SDIO
- Supports 1-bit/8-bit MMC and CE-ATA cards
- SPI mode supported for eMMC card
Full docs can be found at SpacemiT's developer web, chapter 10.4 SD/eMMC [1]
In this patch series, only MMC part has been implemented and tested.
This driver also requires clock support which currently isn't in mainline [2].
There is a WIP branch at SpacemiT's repo for people who interested [3].
I've marked this patch series as RFC, due to incomplete clock and SD/SDIO support.
Link: https://developer.spacemit.com/documentation?token=WZNvwFDkYinYx0k9jzPcMK5WnIe [1]
Link: https://lore.kernel.org/all/20250103215636.19967-2-heylenay@4d2.org/ [2]
Link: https://github.com/spacemit-com/linux/tree/k1/wip-sdhci [3]
Signed-off-by: Yixun Lan <dlan@...too.org>
---
Yixun Lan (2):
dt-bindings: mmc: spacemit,sdhci: add support for K1 SoC
mmc: sdhci-of-k1: add support for SpacemiT K1 SoC
.../devicetree/bindings/mmc/spacemit,sdhci.yaml | 53 ++++
drivers/mmc/host/Kconfig | 14 +
drivers/mmc/host/Makefile | 1 +
drivers/mmc/host/sdhci-of-k1.c | 320 +++++++++++++++++++++
4 files changed, 388 insertions(+)
---
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
change-id: 20250212-20-k1-sdhci-76a4901030db
Best regards,
--
Yixun Lan
Powered by blists - more mailing lists