Using external i/o expander line as a chip select in the device tree?

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

Using external i/o expander line as a chip select in the device tree?

644 Views
charlieschultz
Contributor II

I have a few I2C i/o expanders (PCA953x) in my device tree. I would like to use one of the lines from one of those i/o expanders as a chip select for another device in the device tree and I'm uncertain how to do it (or even if it can be done).

Any help would be appreciated, thanks. Specifically this is for an imx6ul-based board.

Labels (2)
0 Kudos
1 Reply

529 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Charlie,

    About your question, I can only give some advice, because we don't have ready-made example code for you!

    In theory, your solution is feasible, Low Level expander output can be used for chip select. But this controlling method is much more complex than using GPIOs of CPU directly. Because you need to synchronize Chip Select and data transmission in software, you should consider how to realize it.


Have a great day,
Wedong

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

0 Kudos