Hello, does anyone meet the same problem?
I do some further test. The GPIO22 can switch to “0” when its direction is “in”.
However, the value still can not be changed under “out” mode.
The following is my record.
root@GL-AR750S:/sys/devices/platform/ath79-gpio/gpiochip0/gpio/gpio22# echo 0 >> value
root@GL-AR750S:/sys/devices/platform/ath79-gpio/gpiochip0/gpio/gpio22# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-31, parent: platform/ath79-gpio, ath79-gpio:
gpio-1 ( |gl-ar750s:white:powe) out lo
gpio-2 ( |reset ) in hi
gpio-5 ( |sda ) in hi
gpio-7 ( |gl-ar750s:white:usbp) out hi
gpio-8 ( |right ) in hi
gpio-18 ( |sysfs ) out hi
gpio-19 ( |gl-ar750s:white:wlan) out hi
gpio-20 ( |gl-ar750s:white:wlan) out hi
gpio-21 ( |scl ) in hi
gpio-22 ( |sysfs ) out hi
gpiochip1: GPIOs 489-511, parent: platform/qca956x_wmac, ath9k-phy1:
gpio-490 ( |ath9k-phy1 ) in lo
root@GL-AR750S:/sys/devices/platform/ath79-gpio/gpiochip0/gpio/gpio22# echo in >> direction
root@GL-AR750S:/sys/devices/platform/ath79-gpio/gpiochip0/gpio/gpio22# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-31, parent: platform/ath79-gpio, ath79-gpio:
gpio-1 ( |gl-ar750s:white:powe) out lo
gpio-2 ( |reset ) in hi
gpio-5 ( |sda ) in hi
gpio-7 ( |gl-ar750s:white:usbp) out hi
gpio-8 ( |right ) in hi
gpio-18 ( |sysfs ) out hi
gpio-19 ( |gl-ar750s:white:wlan) out lo
gpio-20 ( |gl-ar750s:white:wlan) out hi
gpio-21 ( |scl ) in hi
gpio-22 ( |sysfs ) in lo
gpiochip1: GPIOs 489-511, parent: platform/qca956x_wmac, ath9k-phy1:
gpio-490 ( |ath9k-phy1 ) in lo
Any suggestions and comments are welcome!
Thank you.