[PATCH linux 2/3] gpio/aspeed: Expose entire bank as one gpio chip

Jeremy Kerr jk at ozlabs.org
Wed Oct 28 12:40:57 AEDT 2015


Hi all,

>> Will the old gpio #'s still work with this?
> 
> You will need to update the numbers.
> 
> Jeremy, can you let Norm know how to calculate the numbers? Perhaps
> some documentation in the docs repo as a cheatsheet?

Good plan, I'll do that.

>> Can I export by gpio pin name? echo "A3" > /sys/class/gpio/export?
> 
> It appears the gpio subsystem does not allow for this; we need to
> export by numbers. Once you have exported the device it shows up with
> the GPIOX# name as used in the datasheet and schematic.

... and that seems a bit silly. I'll see if we can add functionality to
export by name. If not, let's drop the names (as you need to know the
numbers to be able to export anyway).

Regards,


Jeremy


More information about the openbmc mailing list