I am using a AML-S905X-CC with Debian 12 as a local time and DNS server. I use LTS kernels and noticed that PPS stopped working with 6.12.71-g1688fd943ab9 and 6.12.73-g6b2d05eda916. I have not tried 6.12.74-g8d0dd6a4613b. I have no issues using 6.12.68-g33f31827bcf4. Is there anything I can provide to assist with troubleshooting and fixing this issue?
We will test this tomorrow and let you know.
I appreciate any assistance and am happy to provide any details needed in case you are unable to recreate this issue.
It has been some time since I posted this issue and wanted to revisit it. I think the likely issue is the gpiod_to_irq patch may have dropped or broken starting with the 6.12.71 kernel.
When using either kernel 6.12.71 or 6.12.73 the driver claims pin 12 and creates /dev/pps0 but ppstest outputs ‘time_pps_fetch() error -1 (Connection timed out)’. It’s possible upstream changes to gpiolib or the IRQ subsystem between 6.12.68 and 6.12.71 caused the problem. PPS works fine in 6.12.68.
To reproduce:
- Merge pps-gpio-7j1-12 overlay
- Boot into kernel 6.12.71-g1688fd943ab9 or 6.12.73-g6b2d05eda916
- Connect a PPS source to Header 7J1 Pin 12
- Run ‘ppstest /dev/pps0’
I have not seen any 6.12 branch kernel updates in quite some time so am not sure if this will be investigated but hopefully this additional information helps pinpoint what is wrong.
My workaround for now is to stay on 6.12.68-g33f31827bcf4 since the device serves only as a time server now.