Hi team
I would like to use the GPIO5_IO25 as a input pin in our design. By default when exported from sysfs I am getting the following value.
root@root:/sys/class/gpio/gpio153# cat direction
in
root@root:/sys/class/gpio/gpio153# cat value
0
The GPIO5_IO05 is connected to a 10k pullup but the value is 0. Please could someone suggest me on how to debug this. Should any dts changes be added for this?
Regards,
Deepika
Hi @DEEPIKA19,
In the case of the GPIO5_IO25, it should be mentioned that when a GPIO is exported in the sysfs, by default, the direction of the GPIO is set as "input," and the value is set to "zero." The processor itself drives the voltage level of that particular GPIO.
For the GPIO5_IO05, please confirm the voltage at the processor side of the GPIO5_IO05 before and after exporting the GPIO.
And also, please confirm if the GPIO5_IO05 is not used in the device tree by any other peripheral.
Thanks & Regards,
Dhruvit.