GPIO configuration for SPI inetrrupt

This is the place for software discussions not having a dedicated subforum

GPIO configuration for SPI inetrrupt

Postby Rajasekhar » Thu Jul 19, 2018 5:28 am


I am using IMX6qdl-wandboard-redvd1 board. I have configured MISO, MOSI, CLK, CS0 in device tree IMX6qdl-wandboard-redvd1.dtsi file.

I am able to get the SPI init success. Then i am configuring the GPIO1_24 pin for SPI interrupt as like this in my deriver code.


and parsing this as parameter in my 'spi_irq' function and then trying to test this PIO pin (GPIO1_24, pin number 10 in JP4) by toggling it to 5v and ground, but i am not getting any interrupt coming to irq callback.

Can you please some tell us the way i have configured GPIO is correct or not ?
Do i need to configure it in device tree(I did not do)?
Do i need to expose it to user space (/sys/class/gpio/export)?

Please suggest me how to configure the GPIO and how to check it.

Posts: 2
Joined: Fri Jul 13, 2018 2:57 pm

Re: GPIO configuration for SPI inetrrupt

Postby kadencemarvin » Thu Oct 18, 2018 6:12 am

The usual downside with SPI slave is that as presently because the master has sent the "send Maine thusmething" command computer memory unit he rapidly then sends the "clock out the requested data" computer memory unit with so very little gap that your slave does not have time to induce the response computer memory unit prepared for it. write my essay - Thus deceleration this down more by exploitation interrupts then calls to functions to access ring buffers could solely exacerbate the matter.
Posts: 1
Joined: Thu Oct 18, 2018 6:10 am

Re: GPIO configuration for SPI inetrrupt

Postby Sofianeo » Thu Nov 29, 2018 10:55 am

Hello, I want to use a 4 wire SPI without any additional GPIO lines. ... the solution is to use one more GPIO pin and configure it for GPIO interrupts online shopping store.
Posts: 1
Joined: Thu Nov 29, 2018 10:51 am

Return to Software - General

Who is online

Users browsing this forum: No registered users and 13 guests