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

Forum Jump:


Users browsing this thread: 1 Guest(s)