IMX8MP ECSPI3 dts file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8MP ECSPI3 dts file

Jump to solution
3,188 Views
kartheek
Contributor III

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

0 Kudos
Reply
1 Solution
2,888 Views
kartheek
Contributor III

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

View solution in original post

0 Kudos
Reply
5 Replies
3,164 Views
Chavira
NXP TechSupport
NXP TechSupport

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

 

0 Kudos
Reply
2,987 Views
kartheek
Contributor III

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

0 Kudos
Reply
2,945 Views
Chavira
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply
2,927 Views
kartheek
Contributor III

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

0 Kudos
Reply
2,889 Views
kartheek
Contributor III

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

0 Kudos
Reply