I am using the imx8 mini with verdin development board.
Since I added the spidev0.0 to the DT, do I need to create a symlink to the dev directory to use it? like verdin-spi-cs0 for spidev1.0?
If Yes, I created a new symlink for spidev0.0 called spisample, but I dont have any SPI signals, and it will disappear after restarting.
I used command below :
Since I added the spidev0.0 to the DT, do I need to create a symlink to the dev directory to use it?
Symlinks are not required to use SPI or any of the interfaces We only add such symlinks ourselves for better naming than the default names for these interfaces.
You set the pinctrl-0 node to use the pinctrl_uart3 pins. However, I don’t see where you redefined these pins to be configured for SPI functionality. This is the pinctrl node here:
Thank you so much, I did set the fsl for 0x6 before, but there was no signal, I did not know that I had to change the pins as well, so the new configuration should be like below, I can confirm that the SPI1 is working
pinctrl_uart3: uart3grp {
fsl,pins = <
MX8MM_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK 0x6 /* SODIMM 137 was 0x146 /
MX8MM_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI 0x6 / SODIMM 139 was 0x146 /
MX8MM_IOMUXC_ECSPI1_MISO_ECSPI1_MISO 0x6 / SODIMM 141 was 0x146 /
MX8MM_IOMUXC_ECSPI1_SS0_ECSPI1_SS0 0x6 / SODIMM 143 was 0x146*/
;
};
Last question @jeremias.tx , for using UART3, I want to use GPIO3 and GPIO4 for Tx and Rx, and which pins do I have to use?
You should remove them from this pinctrl-0 node that I linked above just to ensure there are no conflicts. This will guarantee they will only be used for UART functionality.