pine64 gpio interrupts
#1
Not sure if this is a general question or a linux question but here goes.

I am coming back to a project after an extended interruption -- life got in the way of my play.

I have a number of GPS units running on a variety of hardware.   The board I use for most of them is also allwiner based and run the same armbian as the pine64.  But, I like pine64's as a general purpose board and have several on my desk so decided to track down why I couldn't get them to work the way I wanted last time.

That background information is not particularly normative but it offers some background.  You don't need any special hardware to reproduce this issue.

My notes from many years ago says there was a post on IRC which confirmed we can not get interrupts from some of the GPIO banks.    I can no longer find that reference but that seems to be true.

I can confirm that

Code:
overlays=pps-gpio
param_pps_pin=PH9

in armbianEnv.txt works with dmesg containing

Code:
[Mon Dec  9 23:58:56 2024] pps pps0: new PPS source pps@0.-1
[Mon Dec  9 23:58:56 2024] pps pps0: Registered IRQ 100 as PPS source

I can also confirm that

Code:
overlays=pps-gpio
param_pps_pin=PC8

in armbianEnv.txt fails with dmesg containing

Code:
[Tue Dec 10 00:04:25 2024] pps-gpio pps@0: failed to map GPIO to IRQ: -22
[Tue Dec 10 00:04:25 2024] pps-gpio: probe of pps@0 failed with error -22

I got as far as https://github.com/torvalds/linux/blob/m...pio.c#L175 returning -EINVAL (-22) where I found it using deprecated functions to get the interrupt so it might just be something to do with the pps-gpio client.

The board that pps-gpio likes has pin 12 of the pi2 bus going to gpio PA6 whereas the pine64 connects pin 12 to gpio PC8 -- different banks on controller 0.

Anyway, for the question - are GPIO's on bank C expected to be able to generate interrupts?   If so, I'll queue further investigation.   Otherwise I'll limit my selection to pins in the PH bank, or use the euler bus.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question How to connect a pine64-LTS to a serial console? zuvmajujo 1 1,507 04-02-2023, 05:09 PM
Last Post: zuvmajujo
  Pine64 LTS won't boot zuvmajujo 1 1,378 04-02-2023, 04:59 PM
Last Post: zuvmajujo
  Has anyone gotten "reset" to work in U-Boot for Pine64? Pine 1 3,948 04-19-2021, 12:55 PM
Last Post: Pine
  power usage for Pine64 LTS + Screen Little_Johnny 1 3,362 02-17-2021, 07:19 PM
Last Post: Little_Johnny
  Pine64 LTS GbE Problem scchoi 1 4,487 06-20-2020, 12:39 PM
Last Post: tllim
  Selling my Pine64 2gb LTS with a bunch of accessories poponon 0 2,856 08-08-2019, 09:01 PM
Last Post: poponon
  change the charge LED indicator to Mode B on Pine64 LTS JTX 0 2,780 04-12-2019, 06:34 PM
Last Post: JTX
  mmc r/w errors after setting GPIO chema 0 2,666 12-02-2018, 05:23 PM
Last Post: chema
  How to control the SOPINE UART and SPI pins as GPIO? Pine 1 3,702 08-22-2018, 10:15 AM
Last Post: martinayotte
  Pine64 LTS Boot Media order Akash Gajjar 1 3,717 07-22-2018, 05:29 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)