PINE64 Rock64 - How to get SPI driver working

Johannes Krottmayer krjdev at gmail.com
Fri Jul 3 19:08:34 CEST 2020


I finally resolved the issue:

=> sf probe
SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total
16 MiB
=>

The flash device will be correctly detected.
The problem was missing support in the clock driver of the SoC.

Should I release a patch for it?

On 24.06.20 at 17:52,  Johannes Krottmayer wrote:
> Sorry for my late response.
> 
> Thanks for the suggestions.
> 
> On 22.05.20 at 16:28,  Peter Robinson wrote:
>> Make sure you enable the driver for the actual flash chip too, some of
>> the popular ones are:
>> CONFIG_SPI_FLASH_WINBOND=y
>> CONFIG_SPI_FLASH_MACRONIX=y
>> CONFIG_SPI_FLASH_SPANSION=y
>> CONFIG_SPI_FLASH_GIGADEVICE=y
> 
> I have enabled 'CONFIG_SPI_FLASH_GIGADEVICE'. But still getting
> the same error code (-2). On board is the GD25Q127C from Gigadevice.
> 
> The device ID for the operation code 0x9F according to the datasheet
> should be 0xC84018. I also found this device ID in the SPI-NOR IDS
> file.
> 


More information about the U-Boot mailing list