Tool/software: Linux
Hi TI,
I am trying to use GPIO6_14, which is exposed to J9 header.
When i exported(32*6+14=206) it from user space and observed the direction, the default direction is always showing as INPUT.
in board/ti/am57xx/mux_data.h, the value set in is:
pad_conf_entry core_padconf_array_essential_am571x_idk[] = {
{GPIO6_14, (M14 | PIN_INPUT_PULLUP)}, /* gpio6_14.gpio6_14 */
{GPIO6_15, (M14 | PIN_INPUT_PULLUP)}, /* gpio6_15.gpio6_15 */
}
even if i change PIN_INPUT_PULLUP to PIN_OUTPUT. still i didn't see the direction change.
if echo 206 > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio206/direction
echo 1 > /sys/class/gpio/gpio206/value
echo 0 > /sys/class/gpio/gpio206/value
i am trying to measure the output voltage at that pin using multimeter.
Please can any one suggest me to how to change the direction and toggle the value.
Thanks and Regards,
Anil