public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* PINE64 Rock64 - How to get SPI driver working
@ 2020-05-19 23:41 Johannes Krottmayer
  2020-05-20  5:56 ` Kamal R. Prasad
  2020-05-21 13:35 ` Kever Yang
  0 siblings, 2 replies; 12+ messages in thread
From: Johannes Krottmayer @ 2020-05-19 23:41 UTC (permalink / raw)
  To: u-boot

Hello,

I just compiled U-Boot v2020.04 for a PINE64 Rock media board.
It compiles fine without errors, but when I try to probe the
on board flash I get an error:

=> sf probe
Invalid bus 0 (err=-19)
Failed to initialize SPI flash at 0:0 (error -19)
=>

SPI is activated in the Device-Tree blob. I also added support
to the Rockchip SPI driver (added IDS strings for this SoC).

In the device config I added the following:

CONFIG_SPI=y
CONFIG_ROCKCHIP_SPI=y
CONFIG_SPI_FLASH=y

But the driver still doesn't work. Output of DM (shortened):

=> dm tree
[...]
  spi           0  [   ]   rockchip_spi          |-- spi at ff190000

  spi_flash     0  [   ]   spi_flash_std         |   `-- spiflash at 0
[...]

What is missing? Is there a way to load driver?

Any kind of help is highly appreciated.

-- 
Kind regards,

Johannes K.

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

end of thread, other threads:[~2020-07-18 15:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-19 23:41 PINE64 Rock64 - How to get SPI driver working Johannes Krottmayer
2020-05-20  5:56 ` Kamal R. Prasad
2020-05-21 13:35 ` Kever Yang
2020-05-21 23:11   ` Johannes Krottmayer
2020-05-22 14:28     ` Peter Robinson
2020-06-24 15:52       ` Johannes Krottmayer
2020-07-03 17:08         ` Johannes Krottmayer
2020-07-03 18:08           ` [PATCH] rockchip: rk3328: Add SPI support Johannes Krottmayer
2020-07-03 19:00             ` [PATCH] rockchip: rock64-rk3328: Add SPI Flash support Johannes Krottmayer
2020-07-08 10:08             ` [PATCH] rockchip: rk3328: Add SPI support Kever Yang
2020-07-18  3:02               ` Kever Yang
2020-07-18 15:45                 ` Johannes Krottmayer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox