Dear Karan Gajjar
Thank you for your reply. I read the link and it was very helpful.
I found the functions "gpio_set_value" and "gpio_get_value" in "gpio.h". When I want to control GPIO from a kernel module created by myself, can I use these APIs?
For example,
In the case of blinking the GPIO_2 pin (USR_DEF_RED_LED) on the i.MX6 SABER board, is the following code correct?
#gpio_set_value (2, On/Off).
Is it impossible to control the port already used like Log2?
Command ⇒ root @ imx6qsabresd:/# cat /sys/kernel/debug/gpio
Log1 ⇒ gpiochip0: GPIO 0-31, parent: platform/209c000.gpio, 209c000.gpio:
Log2 ⇒ gpio-2 (|charger-led) out lo <----already used?????
Log3 ⇒ gpio-4 (| Increase volume) in hi IRQ
Best regards,
Ono Takumi