kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Interrutp from USB I/O Expander.
@ 2016-07-19 13:28 Daniel.
  0 siblings, 0 replies; only message in thread
From: Daniel. @ 2016-07-19 13:28 UTC (permalink / raw)
  To: kernelnewbies

Hi everybody.

I know that there are some GPIO lines that needs sleeping to get
actived/deactived, this is why we have the gpio_cansleep_*()
functions.

So, I'm planing using the Microchip MCP2210 which act as USB->SPI
bridge. The problem is that the SPI slave device has two extra lines,
one for IRQ and another for enabling the chip (CE). Since MCP2210 has
GPIOs too I was wondering about wiring IRQ and CE to some GPIO lines
and using it as general GPIO at host. My concern is if the IRQ line
through USB, if it would sleep, if would be possible to use it as
IRQ!?

The summarized setup is this

HOST -> usb bus -> MCP2210 <-- SPI bridge <- slave device spi lines
                                                           '- GPIO 0
   <- slave device IRQ line
                                                           '- GPIO 1
   <- slave device CE line

Any help is appreciated,
Best regards and thanks in advance!
-- 
"Do or do not. There is no try"
  Yoda Master

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-19 13:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-19 13:28 Interrutp from USB I/O Expander Daniel.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).