Re: GPIO mapping on Onion Omega2+ (MT7688)

2021-09-06 Thread Mike Bernardo
Hi John, Thanks! This is great info. I was able to apply that patch but I gather something changed with the gpiochip struct since this patch was valid: drivers/gpio/gpio-mt7621.c: In function 'mediatek_gpio_bank_probe': drivers/gpio/gpio-mt7621.c:244:11: error: 'struct gpio_chip' has no member

Re: GPIO mapping on Onion Omega2+ (MT7688)

2021-08-31 Thread John Thomson
Hi Mike, On Mon, 30 Aug 2021, at 21:05, Mike Bernardo wrote: > root@onion1:~# echo 15 > /sys/class/gpio/export > ash: write error: Invalid argument > > I guess the number I specify to export would need to be at least 416? Yes, that's it. You need to add the Linux gpiochip base to the (SoC) GPIO

GPIO mapping on Onion Omega2+ (MT7688)

2021-08-30 Thread Mike Bernardo
Hi, Does anyone know how to get GPIO working on the Omega2+, I seem to have 3 GPIO chips but I can't create a GPIO for example "15", just getting invalid argument: root@onion1:~# echo 15 > /sys/class/gpio/export ash: write error: Invalid argument I guess the number I specify to export would nee