Bug 269993

Summary: Configuration and reading GPIO events doesn't work on Rockchip RK3399
Product: Base System Reporter: Daniel Engberg <diizzy>
Component: kernAssignee: Emmanuel Vadot <manu>
Status: New ---    
Severity: Affects Some People CC: jfc
Priority: ---    
Version: 13.1-RELEASE   
Hardware: arm64   
OS: Any   

Description Daniel Engberg freebsd_committer freebsd_triage 2023-03-06 12:03:24 UTC
gpioevents -f /dev/gpioc4 -s 25 ef
gpioevents: configuration of pin 25 on /dev/gpioc4 failed
                (flags=524321): Operation not supported

https://github.com/cyclaero/shutdd also throws errors

Note: gpioctl is able to list controller(s) and pin(s)

Hardware: Pine64 RockPro64
OS: 13.1-RELEASE
References: https://wiki.pine64.org/wiki/ROCKPro64#GPIO_Pins
Comment 1 John F. Carr 2024-03-01 21:35:33 UTC
This may be fixed.  As of March, 2024 on CURRENT the command runs without error on a RockPro64 (RK3399).  I have not tested whether events are delivered properly.  A pin mode ft/pd/pu is now required on the gpioevents command line.
Comment 2 Daniel Engberg freebsd_committer freebsd_triage 2024-03-01 21:49:34 UTC
Hi John,

I'll give this a try again

Best regards,
Daniel