Hi praveen
in the file mx53_loco.c file the GPIO2_14 and GPIO2_15 are
configured and registered under gpio-keys. If you want to control
this GPIO using SYS interface you need to comment out the next lines
static struct gpio_keys_button loco_buttons[] = {
GPIO_BUTTON(MX53_nONKEY, KEY_POWER, 1, "power", 0),
/* GPIO_BUTTON(USER_UI1, KEY_VOLUMEUP, 1, "volume-up", 0),
GPIO_BUTTON(USER_UI2, KEY_VOLUMEDOWN, 1, "volume-down", 0), */
};
Moreover, be sure that you have selected
--Device Drivers
---GPIO Support
-- /sys/class/gpio (sysfs interface)
Recompile your kernel and replace it by the current one and you would
control these GPIO as the LED on the QSB.
FAQ All Boards GPIO Test
For example: using KEY_ROW4 GPIO4[15] : 32*3 +15=111
echo 111 > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio111/direction
value=/sys/class/gpio/gpio111/value
echo 1 > $value;
echo 0 > $value ;
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------