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
  fm transmitter with gpio weasel18 2 755 09-10-2019, 04:28 AM
Last Post: desai_amogh
Lightbulb Sample GPIO codes highlighting RPi.GPIO-PineA64 and the PI bus MarkHaysHarris777 6 1,658 06-07-2019, 12:37 AM
Last Post: tllim
Star GPIO, SPI and I2C C++ Lib databit 7 2,457 02-04-2019, 05:45 AM
Last Post: Jeff R
Information Howto: Controlling Pine64 GPIO via the filesystem (sysfs) on linux pfeerick 4 3,918 01-24-2019, 03:36 AM
Last Post: Fifth
  RPi.GPIO python module for Pine A64/A64+ aquilegia 93 21,641 01-23-2019, 06:46 AM
Last Post: cathenna10
  +LTS/SOPINE +PINEBOOK configuring Euler Bus pin generate interrupt RANJITT76 0 144 01-10-2019, 02:45 AM
Last Post: RANJITT76
  GPIO and SPI SamR1 20 5,603 03-15-2018, 10:32 AM
Last Post: jomoengineer
Question GPIO shockr 7 3,983 03-11-2018, 01:52 AM
Last Post: jomoengineer
  Read GPIO problem shworker 14 1,740 08-17-2017, 01:21 PM
Last Post: martinayotte
  GPIO fiq capability joseph 3 808 11-10-2016, 06:07 PM
Last Post: joseph

Forum Jump:


Users browsing this thread: 1 Guest(s)