Are the pins swapped vs the regular PI2 pinout? A while back I added SPI flash support together with ayufan and the SPI bus itself worked just fine, I guess I have to take a closer look at this again
Edit: My latest schematic seems to have Pins23&24 correct, and at least on the SPI flash side the pins seem to be ok too...
My schematic has:
SPI_CLK_M2 - Pin23 (on PI2 header) - GPIO3_A0
SPI_CSN0_M2 - Pin24 (on PI2 header) - GPIO3_B0
And that works out with the pins on my SPI Flash as far as I can see...
If there would have been a swap between my prototyp Rock64 and the production version, I would expect the production version not having working SPI flash...
Edit: My latest schematic seems to have Pins23&24 correct, and at least on the SPI flash side the pins seem to be ok too...
My schematic has:
SPI_CLK_M2 - Pin23 (on PI2 header) - GPIO3_A0
SPI_CSN0_M2 - Pin24 (on PI2 header) - GPIO3_B0
And that works out with the pins on my SPI Flash as far as I can see...
If there would have been a swap between my prototyp Rock64 and the production version, I would expect the production version not having working SPI flash...
Come have a chat in the Pine IRC channel >>