3-Wire SPI support on iMX6 (Linux)

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

3-Wire SPI support on iMX6 (Linux)

Jump to solution
1,780 Views
erezsteinberg
Contributor IV

Hello experts,

I am connecting a peripheral to an iMX6S over a 3-Wire SPI interface (shared MOSI/MISO).

Do anyone know if SPI_3WIRE option is supported in iMX6 Linux SPI Driver?

If so, should we tie MOSI and MISO together via 10K resistors?

Regards,

Erez

Labels (2)
Tags (1)
0 Kudos
1 Solution
1,061 Views
igorpadykov
NXP Employee
NXP Employee

Hi Erez

no it is not supported.

Actually it is not difficult to realize it as spi bit bang.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
3 Replies
1,062 Views
igorpadykov
NXP Employee
NXP Employee

Hi Erez

no it is not supported.

Actually it is not difficult to realize it as spi bit bang.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,061 Views
jamesdeepu
Contributor II

Dear Igor,

Is bitbanging required only if MOSI and MISO not connected via resistor ?

My SPI connection is shown below

pastedImage_0.png

Here SDO is connected to SDI via resistor on Slave side. Will that work out?.

0 Kudos
1,061 Views
erezsteinberg
Contributor IV

Thanks Igor,

Just to clarify, the support is missing in the Linux driver implementation. It's not a h/w limitation...

(Bit-banging was my backup plan, so i'm not concerned about this too much).

Regards,

Erez

0 Kudos