GPIO as node

取消
显示结果 
搜索替代 
您的意思是: 

GPIO as node

614 次查看
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?

标签 (1)
0 项奖励
2 回复数

409 次查看
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 项奖励

409 次查看
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 项奖励