Hi,
We are using imx8mmini evk board for our development.
We want to configure 3 wire spi communication.
What are the changes needs to be done in device tree file ?
Thanks & Regards,
Vasu
Hi Vasu
one can look at ecspi1 example below
Best regards
igor
Hi @igorpadykov ,
Thanks for your reply.
We want to communicate AD7940 adc module to imx8m mini evk board.
Sensor pin contains CS, CLK, DATA.
How to configure DATA pin in device tree file and which pin we need to use mosi (or) miso ?
Thanks & Regards,
Vasu
Hi Vasu
pin usage depends on mode : master or slave, described in
sect.10.1.1.2 Modes and Operations
i.MX 8M Mini Applications Processor Reference Manual
SCLK <--- ECSPI1_SCLK
SDATA ---> ECSPI1_MISO
CS <--- GPIO5_IO9
another dts example :
pinctrl_ecspi1: ecspi1grp {
fsl,pins = <
MX8MM_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK 0x13
MX8MM_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI 0x13
MX8MM_IOMUXC_ECSPI1_MISO_ECSPI1_MISO 0x13
MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x13
MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x13
>; };
Best regards
igor