Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPIO names: dash or underscore? #11

Open
mmajis opened this issue May 23, 2016 · 0 comments
Open

GPIO names: dash or underscore? #11

mmajis opened this issue May 23, 2016 · 0 comments

Comments

@mmajis
Copy link

mmajis commented May 23, 2016

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant