Skip to content

linuxgpio/libgpiod: using GPIOs on different chips #2015

Closed Answered by mhei
guillaume-jcb asked this question in Q&A
Discussion options

You must be logged in to vote

Good catch, and correct analysis. This is a limitation of the current libgpiod implementatation - not the library itself, but the avrdude programmers part. The reason is that the implementation tried to be backwards compatible to the sysfs configuration part. The sysfs configuration uses good old integer numbers for each gpio and each chip starts at a defined, mostly static offset.

For this request here, we would need to modify/extend the configuration file format. For example we could add a prefix, e.g. reset = 0.22 where 0 is then the number of the chip and 22 is the gpio line within this chip. When the prefix is missing, we could discuss, whether it should be assumed that chip is 0, or…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@mhei
Comment options

Answer selected by guillaume-jcb
@guillaume-jcb
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
3 participants