Skip to content

Add support for MMC higher speed modes for TI's am65x, j721e and j7200 platforms

Faiz Abbas u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest21 patches 0 repliesNew
  2. v117 patches 0 repliesSuperseded

Changes in v2 from the cover letter

1. Added patches to support UHS modes for the SD card even in am654x platforms.
2. Fixed an issue with patch 1 that was breaking builds on some platforms.

* There's an issue with the am65x base board such that the power cycle circuit to the card takes way longer than the wait time in mmc core. Until this is fixed, am654x-evm and -idk will only support High speed mode at 3.3V (see patch 20) but this shouldn't block us from adding UHS modes in the dtsi as well as in the configs so other boards can still take advantage of the higher speed. UHS modes have been tested by adding the appropriate delay in the power cycle circuit.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21mmc: sdhci: Add helper functions for UHS modesdrivers/mmc/sdhci.c include/sdhci.h+52 -01 reply
1/21mmc: sdhci: Add helper functions for UHS modes+0 -06 replies
2/21mmc: am654_sdhci: Unconditionally switch off DLL in the beginning of ios_post()drivers/mmc/am654_sdhci.c+1 -90 replies
3/21mmc: am654_sdhci: Convert flag fields to BIT macrodrivers/mmc/am654_sdhci.c+4 -40 replies
4/21mmc: am654_sdhci: Add flag for PHY calibrationdrivers/mmc/am654_sdhci.c+14 -120 replies
5/21mmc: am654_sdhci: Add support for AM65x SR2.0drivers/mmc/am654_sdhci.c+30 -00 replies
6/21mmc: am654_sdhci: Add support for input tap delaydrivers/mmc/am654_sdhci.c+161 -800 replies
7/21mmc: am654_sdhci: Add support for writing to clkbuf_seldrivers/mmc/am654_sdhci.c+11 -00 replies
8/21mmc: am654_sdhci: Add support for software tuningdrivers/mmc/am654_sdhci.c+45 -00 replies
9/21mmc: am654_sdhci: Fix HISPD bit configuration in some lower speed modesdrivers/mmc/Kconfig drivers/mmc/am654_sdhci.c+24 -20 replies
10/21mmc: am654_sdhci: Use sdhci_set_control_reg()drivers/mmc/am654_sdhci.c+2 -160 replies
11/21arm: dts: k3-am65: Fix mmc nodesarch/arm/dts/k3-am65-main.dtsi arch/arm/dts/k3-am654-base-board-u-boot.dtsi arch/arm/dts/k3-am654-base-board.dts +1 more+74 -600 replies
12/21arm: dts: k3-j721e-main: Update otap-delay valuesarch/arm/dts/k3-j721e-main.dtsi+5 -30 replies
13/21arm: dts: k3-j721e-common-proc-board: Add support for UHS modes for SD cardarch/arm/dts/k3-j721e-common-proc-board.dts+32 -00 replies
14/21arm: dts: k3-j7200-main: Add support for gpio0arch/arm/dts/k3-j7200-main.dtsi+22 -00 replies
15/21arm: dts: k3-j7200-common-proc-board: Enable support for UHS modesarch/arm/dts/k3-j7200-common-proc-board.dts arch/arm/dts/k3-j7200-main.dtsi arch/arm/dts/k3-j7200-r5-common-proc-board.dts+63 -20 replies
16/21configs: j721e_evm: Add support for UHS modesconfigs/j721e_evm_a72_defconfig configs/j721e_evm_r5_defconfig+9 -00 replies
17/21configs: j7200_evm: Add support for UHS modesconfigs/j7200_evm_a72_defconfig configs/j7200_evm_r5_defconfig+9 -00 replies
18/21i2c: Makefile: Add SPL_DM_I2C_GPIOdrivers/i2c/Makefile+1 -10 replies
19/21arm: dts: k3-am65-main: Add itapdly and clkbuf-sel valuesarch/arm/dts/k3-am65-main.dtsi+9 -00 replies
20/21arm: dts: k3-am654-base-board: Limit Sd card to High speed modesarch/arm/dts/k3-am654-base-board.dts+1 -00 replies
21/21configs: am65x_evm: Add configs for UHS modesconfigs/am65x_evm_a53_defconfig configs/am65x_evm_r5_defconfig+10 -00 replies

Reviews trailers per patch

None of the 22 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPeng Fan
SeriesR-b
1/21
1/21
2/21
3/21
4/21
5/21
6/21
7/21
8/21
9/21
10/21
11/21
12/21
13/21
14/21
15/21
16/21
17/21
18/21
19/21
20/21
21/21

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/21] Add support for MMC higher speed modes for TI's am65x, j721e and j7200 platforms

The following patches add support for higher speeds in the SD card and eMMC for TI's am65x, j721e, j7200 platforms.

With these patches, the following max speeds are supported:
j721e: DDR50, HS200
j7200: SDR104, HS200
am65x: SDR104*, HS200

v2:
1. Added patches to support UHS modes for the SD card even in am654x platforms.
2. Fixed an issue with patch 1 that was breaking builds on some platforms.

* There's an issue with the am65x base board such that the power cycle circuit to the card takes way longer than the wait time in mmc core. Until this is fixed, am654x-evm and -idk will only support High speed mode at 3.3V (see patch 20) but this shouldn't block us from adding UHS modes in the dtsi as well as in the configs so other boards can still take advantage of the higher speed. UHS modes have been tested by adding the appropriate delay in the power cycle circuit.

Link to v1:
https://patchwork.ozlabs.org/project/uboot/list/?series=206622

Faiz Abbas (21):
mmc: sdhci: Add helper functions for UHS modes
mmc: am654_sdhci: Unconditionally switch off DLL in the beginning of

    ios_post()

mmc: am654_sdhci: Convert flag fields to BIT macro
mmc: am654_sdhci: Add flag for PHY calibration
mmc: am654_sdhci: Add support for AM65x SR2.0
mmc: am654_sdhci: Add support for input tap delay
mmc: am654_sdhci: Add support for writing to clkbuf_sel
mmc: am654_sdhci: Add support for software tuning
mmc: am654_sdhci: Fix HISPD bit configuration in some lower speed
modes
mmc: am654_sdhci: Use sdhci_set_control_reg()
arm: dts: k3-am65: Fix mmc nodes
arm: dts: k3-j721e-main: Update otap-delay values
arm: dts: k3-j721e-common-proc-board: Add support for UHS modes for SD
card
arm: dts: k3-j7200-main: Add support for gpio0
arm: dts: k3-j7200-common-proc-board: Enable support for UHS modes
configs: j721e_evm: Add support for UHS modes
configs: j7200_evm: Add support for UHS modes
i2c: Makefile: Add SPL_DM_I2C_GPIO
arm: dts: k3-am65-main: Add itapdly and clkbuf-sel values
arm: dts: k3-am654-base-board: Limit Sd card to High speed modes
configs: am65x_evm: Add configs for UHS modes

 arch/arm/dts/k3-am65-main.dtsi                |  31 ++
 arch/arm/dts/k3-am654-base-board-u-boot.dtsi  |  67 +--
 arch/arm/dts/k3-am654-base-board.dts          |  26 ++
 arch/arm/dts/k3-am654-r5-base-board.dts       |  20 +-
 arch/arm/dts/k3-j7200-common-proc-board.dts   |  49 ++-
 arch/arm/dts/k3-j7200-main.dtsi               |  23 ++
 .../arm/dts/k3-j7200-r5-common-proc-board.dts |  15 +
 arch/arm/dts/k3-j721e-common-proc-board.dts   |  32 ++
 arch/arm/dts/k3-j721e-main.dtsi               |   8 +-
 configs/am65x_evm_a53_defconfig               |   8 +
 configs/am65x_evm_r5_defconfig                |   2 +
 configs/j7200_evm_a72_defconfig               |   8 +
 configs/j7200_evm_r5_defconfig                |   1 +
 configs/j721e_evm_a72_defconfig               |   8 +
 configs/j721e_evm_r5_defconfig                |   1 +
 drivers/i2c/Makefile                          |   2 +-
 drivers/mmc/Kconfig                           |   1 +
 drivers/mmc/am654_sdhci.c                     | 384 +++++++++++++-----
 drivers/mmc/sdhci.c                           |  51 +++
 include/sdhci.h                               |   1 +
 20 files changed, 564 insertions(+), 174 deletions(-)
Signature · 1 line
2.17.1