GPIO as node

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

GPIO as node

1,183 Views
mathew_k_t
Contributor II

I would like configure GPIO(GPIO1_IO31) as an interrupt to toggle value of another GPIO (GPIO1_IO30). How to implement this?

How to create a node in dts file for gpio?

Labels (1)
0 Kudos
Reply
2 Replies

978 Views
igorpadykov
NXP Employee
NXP Employee

Hi mathew_k_t 

please look at linux/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.txt

linux-imx.git - i.MX Linux Kernel 

and some examples

https://community.nxp.com/thread/381277 

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

0 Kudos
Reply

978 Views
mathew_k_t
Contributor II

Hi

Thank you for your response.

I have gone through the references and I understood the things discussed. But I was expecting something helpful to configure one gpio pin as interrupt. As per the first reference, I tried to  create a node in imx6ull14x14evk.dts, but I'm not getting any irq_reference when I added some print statements in gpio-mxc.c.

0 Kudos
Reply