GPIO as node

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIO as node

344 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
2 Replies

139 Views
igorpadykov
NXP TechSupport
NXP TechSupport

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

139 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