96BoardsGPIO
96BoardsGPIO copied to clipboard
GPIO names: dash or underscore?
gpio.c
converts dashes to underscores in GPIO names and translates pin numbers and letters to names with underscore. However it appears that libsoc configuration uses the dash convention by default: https://github.com/jackmitch/libsoc/blob/master/contrib/board_files/dragonboard410c.conf
Which one is more right? :)
If one tries to get a GPIO using gpio_by_pin(23)
libsoc is eventually asked for GPIO_A
which is not in the above configuration.
Couldn't find the packaged libsoc for e.g. the Linaro Debian release for the DragonBoard right now to check, so it could be fixed there.
One idea is to include both dashed and underscored mappings in libsoc configuration as aliases.
Thanks!