Hello,
I understand the sf probe in u-boot is not using logical cs, but is a function of gpio number, port and one more value which I am not sure about (the first value "3", which is marked below):
#define CONFIG_SF_DEFAULT_CS (3|(IMX_GPIO_NR(3, 25)<<8))
What is this value is it the logical CS ?
If yes, how is it that in kernel I get that spi is detected in kernel as bus 3 cs 0 ("spi3.0"):
spi_imx 200c000.ecspi: probed
m25p80 spi3.0: found mx25l6405d, expected w25q64
m25p80 spi3.0: mx25l6405d (8192 Kbytes)
spi_imx 2014000.ecspi: probed
while in u-boot it is bus 3 cs 3(??) according to
according to (3|(IMX_GPIO_NR(3, 25)<<8))
U-Boot> sf probe
bus 3 cs 22787 speed 66000000 mode 57344SF: Detected MX25L6405D with page size 4 KiB, total 8 MiB
U-Boot>
Best Regards,
Ran