Skip to content

Conversation

@landswellsong
Copy link
Contributor

If more than 1 ecSPI interface is enabled on the SoM the probe order is random because the DTSI never had aliases for IMX8MP SPI specifically for some reason:

root@imx8mp:~# ls /sys/class/spi_master/spi*/device -l
lrwxrwxrwx 1 root root 0 Jan  8 19:22 /sys/class/spi_master/spi1/device -> ../../../30820000.spi
lrwxrwxrwx 1 root root 0 Jan  8 19:22 /sys/class/spi_master/spi2/device -> ../../../30830000.spi
lrwxrwxrwx 1 root root 0 Jan  8 19:22 /sys/class/spi_master/spi3/device -> ../../../30840000.spi
root@imx8mp:~# reboot
root@imx8mp:~# ls /sys/class/spi_master/spi*/device -l
lrwxrwxrwx 1 root root 0 Jan  8 19:22 /sys/class/spi_master/spi1/device -> ../../../30840000.spi
lrwxrwxrwx 1 root root 0 Jan  8 19:22 /sys/class/spi_master/spi2/device -> ../../../30820000.spi
lrwxrwxrwx 1 root root 0 Jan  8 19:22 /sys/class/spi_master/spi3/device -> ../../../30830000.spi
root@imx8mp:~# reboot
root@imx8mp:~# ls /sys/class/spi_master/spi*/device -l
lrwxrwxrwx 1 root root 0 Jan  8 19:26 /sys/class/spi_master/spi1/device -> ../../../30830000.spi
lrwxrwxrwx 1 root root 0 Jan  8 19:26 /sys/class/spi_master/spi2/device -> ../../../30840000.spi
lrwxrwxrwx 1 root root 0 Jan  8 19:26 /sys/class/spi_master/spi3/device -> ../../../30820000.spi

Backporting my change from the Freescale kernel: Freescale/linux-fslc#764
Alternatively you can just update the kernel when the commit above is merged since it fixes the main include.

PS: mechanically applying changes from my Yocto playground, please test-build before merge. I'm sorry for the typo in the previous PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant