Skip to content

mmc: mmci: add support for STM32 SD controller

Andrea Merello linux-mmc 3 versions – NAK

Status from this message: NAK!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest9 patches 7 repliesNAK
  2. v29 patches 11 repliesSuperseded
  3. v19 patches 5 repliesSuperseded

Changes in v3 from the cover letter

- dropped pinmux cfg for CD pin: it is handled by MMC layer using gpiolib

Patches in v3

#Subject and filesSizeRepliesApplied
1/9mmc: mmci: don't pretend IP variants with only one IRQ to have two mask regsdrivers/mmc/host/mmci.c+8 -93 replies
2/9mmc: mmci: add support for not-amba, but still compatible, variantsdrivers/mmc/host/Kconfig drivers/mmc/host/mmci.c+236 -694 replies
3/9mmc: mmci: don't pretend all variants to have MCI_STARBITERR flagdrivers/mmc/host/mmci.c+12 -20 replies
4/9mmc: mmci: add support for setting pad type via pinctrldrivers/mmc/host/mmci.c drivers/mmc/host/mmci.h+47 -120 replies
5/9mmc: mmci: add STM32 variantdrivers/mmc/host/mmci.c+18 -00 replies
6/9ARM: DTS: stm32: add pin map for SDIO controller on stm32f429arch/arm/boot/dts/stm32f429.dtsi+32 -10 replies
7/9ARM: DTS: stm32: add node for SDIO controller on stm32f429arch/arm/boot/dts/stm32f429.dtsi+12 -00 replies
8/9ARM: DTS: enable SDIO controller on stm32f469 disco boardarch/arm/boot/dts/stm32f429.dtsi arch/arm/boot/dts/stm32f469-disco.dts+19 -10 replies
9/9Documentation: document mmci STM32 DT bindingDocumentation/devicetree/bindings/mmc/mmci.txt+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/9] mmc: mmci: add support for STM32 SD controller

The SD controller found in STM32 MCUs happens to be yet another variant of the ARM PrimeCell PL18x SD host controller, for which the mmci driver exists.

This series adds support for it to the mmci driver.

As other variants, this one need some specific quirks, that this series address. Most notably this variant has not AMBA PrimeCell id registers, so we can't probe it using the AMBA PrimeCell generic "compatible" and mechanism; rather this series adds support to the mmci driver for register itself also as platform driver, so that specific "compatible" strings can also be used.

I tested this on my STM32F469-disco board, that is able to boot from an SD card, and write/read to/from it.

RFT for other variants (to check I didn't broke anything) and with MMC cards. In particular I tried to implement also support for open-collector communication mode, that AFAICT is used only on MMC cards, but I couldn't test it.

Changes since v1:
- fixed compile failure when CONFIG_ARM_AMBA is enabled
- fixed mmc CD pin claimed two times
- trivial whitespace and newline fixes

Changes since v2:
- dropped pinmux cfg for CD pin: it is handled by MMC layer using gpiolib

Andrea Merello (9):
mmc: mmci: don't pretend IP variants with only one IRQ to have two
mask regs
mmc: mmci: add support for not-amba, but still compatible, variants
mmc: mmci: don't pretend all variants to have MCI_STARBITERR flag
mmc: mmci: add support for setting pad type via pinctrl
mmc: mmci: add STM32 variant
ARM: DTS: stm32: add pin map for SDIO controller on stm32f429
ARM: DTS: stm32: add node for SDIO controller on stm32f429
ARM: DTS: enable SDIO controller on stm32f469 disco board
Documentation: document mmci STM32 DT binding

 Documentation/devicetree/bindings/mmc/mmci.txt |   2 +-
 arch/arm/boot/dts/stm32f429.dtsi               |  47 ++-
 arch/arm/boot/dts/stm32f469-disco.dts          |  18 ++
 drivers/mmc/host/Kconfig                       |   8 +-
 drivers/mmc/host/mmci.c                        | 398 +++++++++++++++++++------
 drivers/mmc/host/mmci.h                        |   7 +-
 6 files changed, 385 insertions(+), 95 deletions(-)

--
2.7.4