From: Andrea Merello <andrea.merello@gmail.com>
To: ulf.hansson@linaro.org, mcoquelin.stm32@gmail.com,
alexandre.torgue@st.com
Cc: linux-mmc@vger.kernel.org, bruherrera@gmail.com,
Andrea Merello <andrea.merello@gmail.com>
Subject: [PATCH v3 0/9] mmc: mmci: add support for STM32 SD controller
Date: Mon, 16 Jan 2017 08:37:09 +0100 [thread overview]
Message-ID: <1484552238-23171-1-git-send-email-andrea.merello@gmail.com> (raw)
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
next reply other threads:[~2017-01-16 7:37 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-16 7:37 Andrea Merello [this message]
2017-01-16 7:37 ` [PATCH v3 1/9] mmc: mmci: don't pretend IP variants with only one IRQ to have two mask regs Andrea Merello
2017-01-19 16:44 ` Ulf Hansson
2017-01-19 17:53 ` Andrea Merello
2017-01-19 20:29 ` Ulf Hansson
2017-01-16 7:37 ` [PATCH v3 2/9] mmc: mmci: add support for not-amba, but still compatible, variants Andrea Merello
2017-01-19 16:58 ` Ulf Hansson
2017-01-19 17:11 ` Russell King - ARM Linux
2017-01-19 17:40 ` Andrea Merello
2017-01-19 18:36 ` Bruno Herrera
2017-01-22 6:41 ` kbuild test robot
2017-01-16 7:37 ` [PATCH v3 3/9] mmc: mmci: don't pretend all variants to have MCI_STARBITERR flag Andrea Merello
2017-01-16 7:37 ` [PATCH v3 4/9] mmc: mmci: add support for setting pad type via pinctrl Andrea Merello
2017-01-16 7:37 ` [PATCH v3 5/9] mmc: mmci: add STM32 variant Andrea Merello
2017-01-16 7:37 ` [PATCH v3 6/9] ARM: DTS: stm32: add pin map for SDIO controller on stm32f429 Andrea Merello
2017-01-16 7:37 ` [PATCH v3 7/9] ARM: DTS: stm32: add node " Andrea Merello
2017-01-16 7:37 ` [PATCH v3 8/9] ARM: DTS: enable SDIO controller on stm32f469 disco board Andrea Merello
2017-01-16 7:37 ` [PATCH v3 9/9] Documentation: document mmci STM32 DT binding Andrea Merello
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1484552238-23171-1-git-send-email-andrea.merello@gmail.com \
--to=andrea.merello@gmail.com \
--cc=alexandre.torgue@st.com \
--cc=bruherrera@gmail.com \
--cc=linux-mmc@vger.kernel.org \
--cc=mcoquelin.stm32@gmail.com \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox