Sf probe in u-boot - invalid bus

I am trying to use sf probe in mainline u-boot to check my SPI on my Rock Pi 4 v1.4 but I can’t seem to “find” it in u-boot.

I get the following error:
Invalid bus 0 (err=-19)
Failed to initialize SPI flash at 0:0 (error -19)

I have tried a few different bus numbers without success. Am I missing an SPI driver in u-boot or something?

I think maybe we should enable the spi in mainline u-boot dts. You can refer the kernel dts and modify and build u-boot. Here is the kernel dts for the spi flash:

https://github.com/radxa/kernel/blob/release-4.4-rockpi4/arch/arm64/boot/dts/rockchip/overlays-rockpi4/devspi1-overlay.dts

I think maybe we should enable the spi in mainline u-boot dts. You can refer the kernel dts and modify and build u-boot. Here is the kernel dts for the spi flash:

https://github.com/radxa/kernel/blob/release-4.4-rockpi4/arch/arm64/boot/dts/rockchip/overlays-rockpi4/devspi1-overlay.dts

1 Like