mbox series

[U-Boot,v2,0/5] SiFive SPI MMC Support

Message ID 20190629065621.65587-1-anup.patel@wdc.com
Headers show
Series SiFive SPI MMC Support | expand

Message

Anup Patel June 29, 2019, 6:56 a.m. UTC
This patchset adds:
1. SiFive SPI driver
2. New MMC SPI driver based on DM_MMC and DM_SPI
3. Enables SiFive SPI driver and MMC SPI driver for SiFive Unleashed board

With this patch series, we can now load files from SD card on SiFive
Unleashed board. Many thanks to Bhargav for porting SiFive SPI driver
and updating MMC SPI driver for us.

These patches can be also found in riscv_unleashed_mmc_spi_v2 branch of:
https//github.com/avpatel/u-boot.git

Changes since v1:
- Make response matching part belongs to mmc_spi_sendcmd()
- Match response to zero for SEND_STATUS (CMD13)
- Add separate patch for updating SiFive FU540 Documentation

Anup Patel (2):
  mmc: skip select_mode_and_width for MMC SPI host
  doc: sifive-fu540: Update README for SiFive SPI and MMC SPI drivers

Bhargav Shah (3):
  spi: Add SiFive SPI driver
  mmc: mmc_spi: Re-write driver using DM framework
  riscv: sifive: fu540: Enable SiFive SPI and MMC SPI drivers

 board/sifive/fu540/Kconfig |   8 +
 doc/README.sifive-fu540    |   4 +-
 drivers/mmc/Kconfig        |  18 ++
 drivers/mmc/mmc.c          |  14 ++
 drivers/mmc/mmc_spi.c      | 469 ++++++++++++++++++++++++-------------
 drivers/spi/Kconfig        |   8 +
 drivers/spi/Makefile       |   1 +
 drivers/spi/spi-sifive.c   | 405 ++++++++++++++++++++++++++++++++
 8 files changed, 757 insertions(+), 170 deletions(-)
 create mode 100644 drivers/spi/spi-sifive.c

--
2.17.1

Comments

Sagar Shrikant Kadam July 5, 2019, 3:45 p.m. UTC | #1
Hi Anup,

Tested the entire V9 series with OpenSBI and mainline u-boot based
on commit fc6c0e29a28f6 ("Prepare v2019.07-rc4") along with few
Ramon Fried's  patches present in your riscv_unleashed_clk_sync_v9 branch:
between commit fc6c0e29a28f6 ("Prepare v2019.07-rc4") and
commit 1a417ef71ce1 ("net: macb: apply sane DMA configuration").

With tftp able to boot complete linux.

MDIO and mii utils in U-boot correctly display details of Microsemi PHY
VSC8541-01 device as below:

=> mdio list
ethernet@10090000:
0 - Microsemi VSC8541 <--> ethernet@10090000

=> mii info 0
PHY 0x00: OUI = 0x01C1, Model = 0x37, Rev = 0x01, 100baseT, FDX

PHY address read from OTP:
Address in ROM is      70:b3:d5:92:f0:1f

Tested-by: Sagar Kadam <sagar.kadam@sifive.com>

BR,
Sagar Kadam