Skip to content

Tegra: MMC: Add DT support for MMC to T20 boards

Marc Dietrich u-boot 2 versions – New

Get series with b4
b4 am 1722524.3pdp3qd2PT@ax5200p

Versions newest first · linked by author and title

  1. v4 Latest1 of 4 patches 0 repliesNew
  2. v12 patches 0 repliesSuperseded

1 of 4 patches is in this archive. The cover letter announces 4.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
4/4Tegra: MMC: Add DT support to MMCdriver for all T20 boards+0 -01 reply

Reviews trailers per patch

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

Read the v4 thread

Cover letter [U-Boot] [PATCH v4 0/4] Tegra: MMC: Add DT support for MMC to T20 boards

Hi Tom,

Quoted 10 lines · On Thursday 14 February 2013 14:03:57 Tom Warren wrote:

This patchset adds device-tree support to the Tegra MMC driver. All device config is done via properties in the DT files instead of hard-coded config options/function arguments.

I've tested this on my Seaboard and everything works fine, including card detect. For the other T20 boards, I've used the Linux kernel DTS files for the sdhci nodes where there wasn't one already, or expanded the info that was already there. Everything builds fine, but I haven't tested anything but Seaboard.

unfortunately, this is still no go on PAZ00.

U-Boot SPL 2013.01-00093-g206c157-dirty (Feb 14 2013 - 23:37:03)

U-Boot 2013.01-00093-g206c157-dirty (Feb 14 2013 - 23:37:03)

TEGRA20

Board: Compal Paz00
DRAM:  512 MiB
MMC:   tegra_mmc_init entry
tegra_mmc_init: count of sdhci nodes is 2
process_nodes: count = 2
mmc_get_config: node = 5772
mmc_get_config: found controller at c8000600, width = 8, periph_id = 15
do_mmc_init: index 0, bus width 8 pwr_gpio -1 cd_gpio -1
do_mmc_init: bus width = 8
mmc_get_config: node = 5244
mmc_get_config: found controller at c8000000, width = 4, periph_id = 14
do_mmc_init: index 1, bus width 4 pwr_gpio 169 cd_gpio 173

Power GPIO name = power-gpios
CD GPIO name = cd-gpios
do_mmc_init: CD state = 0
do_mmc_init: bus width = 4
Tegra SD/MMC: 0, Tegra SD/MMC: 1 tegra_mmc_getcd called, host->cd_gpio = 0x1FBCC044 mmc_reset called

... so far so good

# ext2ls mmc 1
tegra_mmc_getcd called, host->cd_gpio = 0x1FBCC084
mmc_reset called
mmc_core_init: host version = 0
mmc_set_ios: bus_width: 1, clock: 375000
mmc_change_clock called
mmc_change_clock: div = 8
mmc_change_clock: clkcon = 00000405
mmc_set_ios: hostctl = 00000000
mmc_set_ios: bus_width: 1, clock: 375000
mmc_change_clock called
mmc_change_clock: div = 8
mmc_change_clock: clkcon = 00000405
mmc_set_ios: hostctl = 00000000
mmc_send_cmd: called
mmc_send_cmd_bounced called
mmc_send_cmd_bounced: cmd->arg: 00000000
mmc_send_cmd_bounced: cmd: 0
mmc_send_cmd: called
mmc_send_cmd_bounced called
mmc_send_cmd_bounced: cmd->arg: 000001aa
mmc_send_cmd_bounced: cmd: 8
mmc_send_cmd_bounced: error: 010c8001 cmd 8
mmc_send_cmd: called
mmc_send_cmd_bounced called
mmc_send_cmd_bounced: cmd->arg: 00000000
mmc_send_cmd_bounced: cmd: 55
mmc_send_cmd_bounced: error: 010c8001 cmd 55
mmc_send_cmd: called
mmc_send_cmd_bounced called
mmc_send_cmd_bounced: cmd->arg: 00000000
mmc_send_cmd_bounced: cmd: 2
mmc_send_cmd_bounced: error: 00048001 cmd 2
** Bad device mmc 1 **

any ideas?

Marc