Bug 256372 - gpioctl fails to set input pull-up condition properly
Summary: gpioctl fails to set input pull-up condition properly
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: 13.0-RELEASE
Hardware: arm64 Any
: --- Affects Only Me
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-02 09:17 UTC by ZappaFan
Modified: 2021-06-02 09:17 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ZappaFan 2021-06-02 09:17:43 UTC
load SD card image on either a RPi4 or Pi 400
pick a GPIO pin e.g. 24
enter the following as root;

#gpioctl -l | grep 24

*/you will see the status of pin 24 usually defaults as an <IN>put with value 0
*/pin 24: 0 24<IN>


*/Let's set this input as Pulled-Up 

#gpioctl -c 24 IN PU
#gpioctl -l | grep 24

*/you will see the configuration change to 
*/pin 24: 0 24<IN,PU>
*/but the pin value of 0 should be 1 now, since it has been pulled-up

I verified that this is exclusive to the RPi 4 family only. Tested on a RPi3B+ and it works properly. Lastly, these are all certified Raspberry Pi products not knock-offs.