On Fri, Nov 19, 2021 at 11:31 AM Laszlo Sitzer <dlsit...@gmail.com> wrote: > > Hello, > > I wanted to ask if there is anything speaking against making linuxgpio.c > support > using pin of multiple GPIO ports/chip (and not only of one as it is right > now).
Hello Laszlo, no such patch in gerrit yet, so I don't expect anyone is doing it. Nevertheless it's an interesting improvement. > Here is how the config would look like. > > ---------------------------------------------------- > adapter driver linuxgpiod > transport select swd > > # SWCLK (PC6) > linuxgpiod_swclk_gpiochip 2 > linuxgpiod_swclk_num 6 I would prefer to avoid adding new commands, you can extend the "linuxgpiod XXX_num" command: 1) or simply dropping the command "linuxgpiod gpiochip <chip>" and making mandatory the dual parameter "linuxgpiod XXX_num <chip> <num>" 2) or keeping the command "linuxgpiod gpiochip <chip>" and adding an optional parameter "linuxgpiod XXX_num [<chip>] <num>". If the optional parameter is missing, the chip value is taken from the command "linuxgpiod gpiochip <chip>" Probably 1) is easier to handle and describe in the documentation. > I actually created patches for various OpenOCD versions and having to > maintain them drives me a bit crazy. Hence I wanted to check if there > is the possibility of upstreaming a patch for the latest version of > OpenOCD. Feel free to propose upstream any patch you want. Best Regards Antonio