Tool/software: Linux
Hello,
I have encountered some problems when I enable pull-up/down resistor for the GPIO. The followings are my steps to reproduce the problem.
For example, I need to enable pull-up for the PIN P4 (WKUP_GPIO0_29)
1. Configure device tree or write 0x00060007 WKUP_PADCONFIG17 (input enable, output enable, pull-up selected, pull enabled)
2. Configure GPIO device as input using the following command
echo 215 > /sys/class/gpio/export
echo in> /sys/class/gpio/gpio215/direction
3. Read input value
cat /sys/class/gpio/gpio215/value
4. Result
the value read from GPIO is 0 when the input pin is floating
What I'm expecting is 1 because of the internal pull-up resistor.
Am I missing anything? Thank you.