您的位置:首页 > 其它

imx6设备树中断说明

2016-07-14 08:35 218 查看
imx6设备树中断说明

转自:

http://zzjlzx.blog.chinaunix.net/uid-9688646-id-5680717.html

kernel_imx/Documentation/devicetree/bindings/input/touchscreen/egalax-ts.txt

594 egalax_ts@04 {

595 compatible = "eeti,egalax_ts"; -->对应驱动程序中的i2c设备名称.

596 reg = <0x04>; -->对应i2c地址.

597 interrupt-parent = <&gpio6>;-->根据电路图对应连接到NANDF_ALE中,查看datasheet中可知是GPIO6中

598 interrupts = <8
2>;-->对应在GPIO6中的第8个IO,2为中断类型.

599 wakeup-gpios = <&gpio6 8 0>; -->GPIO6中的第8个IO作为中断控制,也可以用作唤醒功能,0即低电平是唤醒.

600 };

601

16 The second cell bits[3:0] is used to specify trigger type and level flags:

17 1 = low-to-high edge triggered.

18 2 = high-to-low edge triggered.

19 4 = active high level-sensitive.

20 8 = active low level-sensitive.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: