PINE64
How to use dts or other setup to declare gpio pin Interrupt (e.g. a button)? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Hardware, Accessories and POT (https://forum.pine64.org/forumdisplay.php?fid=32)
+---- Forum: Pi2, Euler and Exp GPIO Ports (https://forum.pine64.org/forumdisplay.php?fid=34)
+---- Thread: How to use dts or other setup to declare gpio pin Interrupt (e.g. a button)? (/showthread.php?tid=7589)



How to use dts or other setup to declare gpio pin Interrupt (e.g. a button)? - dkebler - 06-11-2019

Using armbian bionic mainline kernel on A64-v1.1 board
Linux pine64 4.19.38-sunxi64 #5.83 SMP Fri May 3 21:02:31 CEST 2019 aarch64 aarch64 aarch64 GNU/Linux

In RPI bionic could just set values in boot.txt.  Is this possible in armbian bionic mainline?

I know that one can use device tree overlays but can't find any examples specific to the A64.

Anyone have a dts file or otherwise know how to declare a pin as an interruptible input?  I've come across nothing in any A64 docs.


RE: How to use dts or other setup to declare gpio pin Interrupt (e.g. a button)? - dkebler - 06-12-2019

Looks like I tracked down an example dts file here
https://github.com/armbian/sunxi-DT-overlays/blob/master/examples/gpio-button.dts

here is more explanation of how to implment
https://docs.armbian.com/Hardware_Allwinner_overlays/#using-custom-overlays

Still need to edit, compile and try it, but at least good example to go from