linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] Add SD UHS-I and eMMC HS200 support for eSDHC
@ 2017-03-02  9:47 Yangbo Lu
  2017-03-02  9:47 ` [PATCH 1/9] mmc: sdhci-of-esdhc: add peripheral clock support Yangbo Lu
                   ` (8 more replies)
  0 siblings, 9 replies; 14+ messages in thread
From: Yangbo Lu @ 2017-03-02  9:47 UTC (permalink / raw)
  To: linux-arm-kernel

It's complicated to support SD UHS-I and eMMC HS200 for eSDHC because there're
many differences between eSDHC and SD/eMMC spec. Several differences as below
must be considered:
1. Peripheral clock must be used instead of platform clock.
    - eSDHC could select peripheral clock or platform clock as its clock source.
      According to RM, UHS-I/HS200 must use peripheral clock since it supports
      higher frequency than platform clock.
    - Patch 1 and patch 8 is to support this
2. Signal voltage switching requires a control circuit out of eSDHC.
    - eSDHC supports signal voltage switch from 3.3v to 1.8v by
      eSDHC_PROCTL[VOLT_SEL] bit. This bit changes the value of output
      signal SDHC_VS, and there must be a control circuit out of eSDHC
      to change the signal voltage according to SDHC_VS output signal.
    - Patch 2 and patch 3 is to support this
3. eSDHC uses tuning block for tuning procedure
    - Tuning clock control register must be configured before tuning.
    - Patch 4 and patch 5 is to support this
4. Delay is needed between tuning cycles for HS200 tuning
    - Once a patch removed mdelay between tuning cycles. But eSDHC needs it.
    - Patch 6 and patch 7 is to support this
5. UHS-I/HS200 modes could be enabled in dts node
    - Patch 9 is to support this

Please review and merge these patches on mmc git tree if no changes are required.

Yangbo Lu (9):
  mmc: sdhci-of-esdhc: add peripheral clock support
  mmc: sdhci: add a callback for signal voltage switching
  mmc: sdhci-of-esdhc: add support for signal voltage switch
  mmc: sdhci: add a callback for using tuning block
  mmc: sdhci-of-esdhc: add tuning block support
  mmc: sdhci: add a quirk to restore delay in tuning
  mmc: sdhci-of-esdhc: add delay between tuning cycles
  arm64: dts: ls1046a: add clocks property and compatible for eSDHC node
  arm64: dts: ls1046ardb: add MMC HS200/UHS-1 modes support

 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts |   8 ++
 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi    |   3 +-
 drivers/mmc/host/sdhci-esdhc.h                    |   7 +
 drivers/mmc/host/sdhci-of-esdhc.c                 | 154 +++++++++++++++++++++-
 drivers/mmc/host/sdhci.c                          |  12 +-
 drivers/mmc/host/sdhci.h                          |   5 +
 6 files changed, 185 insertions(+), 4 deletions(-)

-- 
2.1.0.27.g96db324

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-03-03  7:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-02  9:47 [PATCH 0/9] Add SD UHS-I and eMMC HS200 support for eSDHC Yangbo Lu
2017-03-02  9:47 ` [PATCH 1/9] mmc: sdhci-of-esdhc: add peripheral clock support Yangbo Lu
2017-03-02  9:47 ` [PATCH 2/9] mmc: sdhci: add a callback for signal voltage switching Yangbo Lu
2017-03-02 14:19   ` Adrian Hunter
2017-03-03  7:38     ` Y.B. Lu
2017-03-02  9:47 ` [PATCH 3/9] mmc: sdhci-of-esdhc: add support for signal voltage switch Yangbo Lu
2017-03-02  9:47 ` [PATCH 4/9] mmc: sdhci: add a callback for using tuning block Yangbo Lu
2017-03-02 14:25   ` Adrian Hunter
2017-03-03  7:39     ` Y.B. Lu
2017-03-02  9:47 ` [PATCH 5/9] mmc: sdhci-of-esdhc: add tuning block support Yangbo Lu
2017-03-02  9:47 ` [PATCH 6/9] mmc: sdhci: add a quirk to restore delay in tuning Yangbo Lu
2017-03-02  9:47 ` [PATCH 7/9] mmc: sdhci-of-esdhc: add delay between tuning cycles Yangbo Lu
2017-03-02  9:47 ` [PATCH 8/9] arm64: dts: ls1046a: add clocks property and compatible for eSDHC node Yangbo Lu
2017-03-02  9:47 ` [PATCH 9/9] arm64: dts: ls1046ardb: add MMC HS200/UHS-1 modes support Yangbo Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).