starfive-tech / linux

Other
148 stars 112 forks source link

visionfive2: upstream: QSPI/spi does not work #102

Open colemickens opened 1 year ago

colemickens commented 1 year ago

as also reported here https://forum.rvspace.org/t/current-upstream-branch-report/2739/2

qspi does not seem to work:

[cole@vf2:~]$ dmesg | grep spi
[   46.140877] cadence-qspi 13010000.spi: QSPI is still busy after 500ms timeout.
[   47.436875] cadence-qspi 13010000.spi: QSPI is still busy after 500ms timeout.
[   47.444176] spi-nor spi0.0: operation failed with -110
[   47.449375] spi-nor: probe of spi0.0 failed with error -110

[cole@vf2:~]$ uname -a
Linux vf2 6.4.0-rc2 #1-NixOS SMP Tue Jan  1 00:00:00 UTC 1980 riscv64 GNU/Linux
mmoll commented 1 year ago

This is resolved for me with the current 6.4.0-rc4 based upstream branch, @colemickens how about you? :)

misuzu commented 1 year ago

Looks better now:

% dmesg | grep spi
[   15.370662] spi-nor spi0.0: gd25lq128d (16384 Kbytes)
[   15.412552] 3 fixed-partitions partitions found on MTD device 13010000.spi.0
[   15.419707] Creating 3 MTD partitions on "13010000.spi.0":
% ls /dev/mtd*
/dev/mtd0  /dev/mtd0ro  /dev/mtd1  /dev/mtd1ro  /dev/mtd2  /dev/mtd2ro
% uname -a
Linux nixos 6.4.0-rc4 #1-NixOS SMP Tue Jan  1 00:00:00 UTC 1980 riscv64 GNU/Linux