[libgpiod PATCH] gpioget: Add --line-name to lookup GPIO line

Jeremy Kerr jk at codeconstruct.com.au
Thu Dec 2 16:21:40 AEDT 2021


Hi Joel,

> Systems provide line names to make using GPIOs easier for userspace.
> Use this feature to make the tools user friendly by adding the ability to
> show the state of a named line.
> 
>  $ gpioget --line-name power-chassis-good
>  1
> 
>  $ gpioget -L pcieslot-power
>  0

Awesome!

As someone who has had wasted hours of debugging the wrong GPIO lines
because of incorrect chip/offset calculations, +100 from me.

(or was that +101? I'll have to check the schematic again...)

Cheers,


Jeremy



More information about the openbmc mailing list