Hi,
I have enabled ecspi3 on board. I have spi node. It is always high even when transmitting data. Can any one please verify my dts code for ecspi3 along with the mux values.
Thanks & Regards,
Kartheek
Solved! Go to Solution.
Hi @Chavira,
Now ECSPI3 is working. We have connected wrong pins for MOSI, SCLK previously.
Now made the connections correctly.
Thanks for your valuable support.
Thanks & Regards,
Kartheek
HI @kartheek!
Thank you for contacting NXP Support!
Your device tree looks good, but I need to check the entire device tree.
Can you share the entire device tree file?
What board and BSP are you using?
What commands are you using to transmit data?
Can you share the wave forms of the SPI bus?
In our EVk boards we use the pad UART2_TXD for debug console, what pads are you using for your console?
Best Regards!
Chavira
Hi @Chavira
Thanks for your reply.
1. In imx8mp-hummingboard-pulse.dts & imx8mp-hummingboard-pulse.dtsi enabled ECSPI3.
In imx8mp-sr-som.dtsi used UART4_TXD for debug console.
2. Used Humming board pulse board.
Didn't get BSP term. Can you give example of it?
3. Commands used to transmit data.
$ spidev_test -D /dev/spidev2.0 -p "\0x01\0x43\0X9F\0x00\0x00\0x00\0x00\"
No waveforms are visible while transmitting data.
Thanks & Regards,
Kartheek
Hi @kartheek!
I have tried with our iMX8MP-EVK board and is working good.
I attached the device tree that I recommend to use.
The command that I use is the next:
spidev_test -D /dev/spidev2.0 -p "\0x01\0x43\0X9F\0x00\0x00\0x00\0x00"
I am using the BSP 6.6.3
The BSP (board support package ) in other terms is the kernel version that you are using.
Best Regards!
Chavira
Hi @Chavira ,
I have used the same dts provided. I am getting CS signal. But MOSI, SCLK signals are showing low. Is it recommended to have pull up resistors on MOSI and SCLK? Please confirm this.
Thanks & Regards,
Kartheek
Hi @Chavira,
Now ECSPI3 is working. We have connected wrong pins for MOSI, SCLK previously.
Now made the connections correctly.
Thanks for your valuable support.
Thanks & Regards,
Kartheek