Skip to content

GPIO names: dash or underscore? #11

@mmajis

Description

@mmajis

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions