[rockchip] broken SPI on RockPro64 and other RK3399 targets

Simon South simon at simonsouth.net
Tue Nov 10 20:45:41 CET 2020


Alper Nebi Yasak <alpernebiyasak at gmail.com> writes:
> Something else you can test:
> - Remove the aliases block from rk3399-rockpro64-u-boot.dtsi
> - Add "spi[0-5] = &spi[0-5];" aliases to rk3399-u-boot.dtsi
> - Add CONFIG_SF_DEFAULT_BUS=1 to configs/rockpro64-rk3399_defconfig

This fixed for me the same issue on my Pinebook Pro, turning

  Loading Environment from SPIFlash... Invalid bus 0 (err=-19)
  *** Warning - spi_flash_probe_bus_cs() failed, using default environment

into

  Loading Environment from SPIFlash... SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB

Patch attached, for clarity.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-rockchip-Pinebook-Pro-Fix-SPI-flash.patch
Type: text/x-patch
Size: 1755 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201110/2f61e17d/attachment.bin>
-------------- next part --------------

-- 
Simon South
simon at simonsouth.net


More information about the U-Boot mailing list