Page 1 of 1

Usage of GPIO pins in openwrt22.03

Posted: Thu Feb 23, 2023 9:27 am
by mernst
In openwrt19.07 it worked to go into /sys/class/gpio and say 'echo “42” >export' to make the respective I/O pin available as a new directory gpio42.
Upgraded now to openwrt22.03. The above does not work anymore.
Still there is export and unexport file handles available, and three directories gpiochip416, 448 and 480.
I added the lines for pinctrl into the vocore2.dts file, no improvement.
I applied the old 0882-pinctrl-fix-gpio-name.patch, no improvement.
I selected in kernel_menuconfig the respective GPIO Support section and there the /sys/class/gpio interface as well as the MT7621 GPIO support in the memory mapped driver area. Still not working.

Any idea what to do?
thank you

Re: Usage of GPIO pins in openwrt22.03

Posted: Wed Mar 08, 2023 12:23 pm
by Vonger
I guess somebody modified the gpio driver source code.
So the problem must be in linux kernel(maybe has a reason)