GPIO UART1, GPIO Interrupt

hi
i would like to use ntp time sync from gps message(GPRMC, GPGGA) in Ubuntu 22.04.
there are some problems using GPIO UART1 and interrupt settings
problem 1. UART1 is not working
i tried GPIO14, 15 as UART input but no message came out from ttyS4
(UART0 (10 pin, ttyS5) -> working good)
problem 2. interrupt is blocked
i tried linux kernel module setting GPIO as /dev/pps
it fails in the process of registering the interrupt (register IRQ)
dmesg said "pin XXX cannot be used as IRQ"
(link: https://github.com/Jobbel/pps-gpio-dtless)
(both upboard pinctrl driver number 0 to 26 and sysfs 6XX~1001 failed)
Best Answers
-
Hi Sir,
Q1: I will arrange time to test and confirm this problem, can you provide me with your Kernel version?
Q2 : Do you use original control? Or use Pinctrl?Best Regards,
Wilbert Lee. -
Hi Sir,
So far, pinctrl does not support the IRQ function.
As for the sysfs part, I will ask the software engineer to arrange a time to confirm it.Best Regards,
Wilbert Lee.
Answers
-
Thank you for your kind response.
My kernel version is 5.19.0-42.
In addition, i wonder if there are other boards that support IRQ function.
-
@hyeonwoo
pinctrl driver not implement interrupt yet, so currently there are a workarund to use it from native GPIO number, you can refer our old page in i11 -
@garyw
thank you for answerI think the native GPIO number you mentioned means the Linux GPIO Number (sysfs).
Currently, i found every native GPIO number corresponding RPi GPIO number, and also confirmed input/output signals.
But failed to set interrupt on native GPIO numbers Too.
These are the correspondences i found
RPi - sysfs
0 - 669
1 - 670
2 - 671
3 - 672
4 - 870
5 - 869
6 - 872
7 - 766
8 - 865
9 - 867
10 - 868
11 - 866
12 - 856
13 - 857
14 - 835
15 - 834
16 - 837
17 - 836
18 - 760
19 - 761
20 - 763
21 - 762
22 - 859
23 - 1001
24 - 764
25 - 765
26 - 871
27 - 858
Categories
- 303 All Categories
- 104 Announcements & News
- 52 Product News - New Product/Product Change Notice/ End-of-life
- 184 Welcome Developers!
- 53 Unboxing & Project Sharing
- 24 Tech Updates
- 592 UP Products
- 6 UP Xtreme i12
- 1 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 13 UP Squared V2
- 41 UP 4000
- 24 UP Xtreme i11
- 34 UP Squared 6000
- 49 UP Squared Pro
- 140 UP Xtreme
- 826 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 221 UP Core
- 3 UP Xtreme Lite
- 44 UP AI Edge
- 215 Starter Kits & Peripheral