GPIO-Direction issue

James Feist james.feist at linux.intel.com
Fri Dec 13 04:07:08 AEDT 2019


On 12/11/19 4:50 AM, Kumar Thangavel wrote:
> Hi All,
> 
>          I am using entity manager configuration file(.json) to enable 
> the GPIO pin.
> 
>          The gpio node was created in /sys/class/gpio/* using 
> configuration files.
> 
>          I set Direction as "Out" in json. But it was not getting 
> changed in /sys/class/gpio/gpio*/Direction. The Direction was still 
> remains as "in".

Gpio usage via sysfs is deprecated. We're currently working to remove 
all usages of it ourselves that we have in entity-manager. I would 
suggest using libgpiod to use gpio via character device instead.

https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/tree/bindings/cxx



More information about the openbmc mailing list