How to use dts or other setup to declare gpio pin Interrupt (e.g. a button)?
#1
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.
  Reply
#2
Looks like I tracked down an example dts file here
https://github.com/armbian/sunxi-DT-over...button.dts

here is more explanation of how to implment
https://docs.armbian.com/Hardware_Allwin...m-overlays

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


Possibly Related Threads...
Thread Author Replies Views Last Post
Lightbulb Sample GPIO codes highlighting RPi.GPIO-PineA64 and the PI bus MarkHaysHarris777 6 1,512 06-07-2019, 12:37 AM
Last Post: tllim
Star GPIO, SPI and I2C C++ Lib databit 7 2,197 02-04-2019, 05:45 AM
Last Post: Jeff R
Information Howto: Controlling Pine64 GPIO via the filesystem (sysfs) on linux pfeerick 4 3,503 01-24-2019, 03:36 AM
Last Post: Fifth
  RPi.GPIO python module for Pine A64/A64+ aquilegia 93 19,835 01-23-2019, 06:46 AM
Last Post: cathenna10
  +LTS/SOPINE +PINEBOOK configuring Euler Bus pin generate interrupt RANJITT76 0 107 01-10-2019, 02:45 AM
Last Post: RANJITT76
  GPIO and SPI SamR1 20 5,071 03-15-2018, 10:32 AM
Last Post: jomoengineer
Question GPIO shockr 7 3,739 03-11-2018, 01:52 AM
Last Post: jomoengineer
  Read GPIO problem shworker 14 1,401 08-17-2017, 01:21 PM
Last Post: martinayotte
  fm transmitter with gpio weasel18 1 665 06-20-2017, 06:35 AM
Last Post: louwie17
  GPIO fiq capability joseph 3 752 11-10-2016, 06:07 PM
Last Post: joseph

Forum Jump:


Users browsing this thread: 1 Guest(s)