IMX8MP ECSPI3 dts file

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

IMX8MP ECSPI3 dts file

跳至解决方案
3,190 次查看
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 项奖励
回复
1 解答
2,890 次查看
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 项奖励
回复
5 回复数
3,166 次查看
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 项奖励
回复
2,989 次查看
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 项奖励
回复
2,947 次查看
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 项奖励
回复
2,929 次查看
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 项奖励
回复
2,891 次查看
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 项奖励
回复