Export gpio, output invalid param

Setting 19 pin number to export, bug output invalid parameters.

# echo 19 > /sys/class/gpio/export
ash: write error: Invalid argument

Here is my system information:

root@OpenWrt:~# lsmod | fgrep gpio
gpio_button_hotplug     6674  0
leds_gpio               3250  0

root@OpenWrt:~# uname -a
Linux OpenWrt 5.10.176 #0 Sun Apr 9 12:27:46 2023 mips GNU/Linux

What is the problem with export gpio output invalid parameters?

What's the device are you using?

And can you provide the output of the following commands?

$ cat /sys/kernel/debug/gpio
1 Like

On my device, the following command outputs empty, is there no gpio device?

# cat /sys/kernel/debug/gpio

Oh, maybe my dts is wrong. Thank you for tips.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.