Hi all,
I am trying to control user LEDs of AM335x starter kit. I know that these are gpio 36,37,38 ans 39.
I am able to control gpio LED from uboot using gpio command and is working fine . But after booting linux ,this is not seems to be working . I tried to turn on and off LED using sysfs interface . There is no error messages when I doing this. Also LED status is not changing . Please find following log for my activity .
root@EVM:/sys/class/gpio# echo 36 > export
root@EVM:/sys/class/gpio# echo 38 > export
root@EVM:/sys/class/gpio# echo 37 > export
root@EVM:/sys/class/gpio# echo 39 > export
root@EVM:/sys/class/gpio# cat /sys/class/gpio/gpio36/direction
in
root@EVM:/sys/class/gpio# echo out > gpio36/direction
root@EVM:/sys/class/gpio# cat /sys/class/gpio/gpio36/direction
out
root@EVM:/sys/class/gpio# echo 1 > gpio36/value
root@EVM:/sys/class/gpio#
root@EVM:/sys/class/gpio# echo 0 > gpio36/value
root@EVM:/sys/class/gpio# echo 1 > gpio36/value
root@EVM:/sys/class/gpio# echo out > gpio37/direction
root@EVM:/sys/class/gpio# echo out > gpio38/direction
root@EVM:/sys/class/gpio# echo out > gpio39/direction
root@EVM:/sys/class/gpio# echo 1 > gpio38/value
root@EVM:/sys/class/gpio# echo 0 > gpio38/value
root@EVM:/sys/class/gpio# echo 1 > gpio38/value
root@EVM:/sys/class/gpio# echo 1 > gpio39/value
root@EVM:/sys/class/gpio# echo 37 > unexport
root@EVM:/sys/class/gpio# ls /sys/kernel/debug
bdi gpio mmc0 regmap ubi
bonding hid pinctrl regulator ubifs
clk kprobes pm_debug sleep_time usb
extfrag memblock pwm suspend_stats wakeup_sources
root@EVM:/sys/class/gpio# cat /sys/kernel/debug/gpio
export gpio38/ gpiochip0/ gpiochip64/ unexport
gpio36/ gpio39/ gpiochip32/ gpiochip96/
root@EVM:/sys/class/gpio# cat /sys/kernel/debug/gpio
GPIOs 0-31, gpio:
gpio-6 (mmc_cd ) in lo
GPIOs 32-63, gpio:
gpio-36 (sysfs ) out hi
gpio-38 (sysfs ) out hi
gpio-39 (sysfs ) out hi
GPIOs 64-95, gpio:
GPIOs 96-127, gpio:
root@EVM:/sys/class/gpio#
root@EVM:/sys/class/gpio#
is there any additional setting needs to be done ?
Thanks and regards
Gokul CG