imx6设备树中断说明
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.
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.