[OpenWrt-Devel] WRT54GS v1.0 GPIO definitions in r41004
Rafał Miłecki
zajec5 at gmail.com
Fri Jun 20 02:28:31 EDT 2014
On 5 June 2014 19:20, Catalin Patulea <cat at vv.carleton.ca> wrote:
> Here is dmesg also:
> http://pastebin.com/ZHXdd3PK
>
> Note:
> [ 12.580000] gpio-keys gpio-keys.0: unable to claim gpio 6, err=-16
> [ 12.660000] gpio-keys: probe of gpio-keys.0 failed with error -16
> [ 12.900000] leds-gpio: probe of leds-gpio failed with error -16
This is because __gpiod_request returned -EBUSY.
Your nvram has following entries:
gpio6=adm_rc
gpio5=adm_eedi
gpio3=adm_eesk
gpio2=adm_eecs
All of the above GPIOs are reserved by adm6996. It means registering
LEDs failed (because GPIOs 2 and 3 were already in use) and
registering buttons failed (because GPIO 6 was already in use).
Could you find out, which GPIO is connected to your reset button?
Simply export all GPIOs that you can and execute
cat /sys/class/gpio/gpio*/value
then press the reset buttong and execute
cat /sys/class/gpio/gpio*/value
again. Look for the GPIO that changed it's value.
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list