Bug 269993 - Configuration and reading GPIO events doesn't work on Rockchip RK3399
Summary: Configuration and reading GPIO events doesn't work on Rockchip RK3399
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.1-RELEASE
Hardware: arm64 Any
: --- Affects Some People
Assignee: Emmanuel Vadot
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-06 12:03 UTC by Daniel Engberg
Modified: 2024-03-01 21:49 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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