GPIO-Direction issue
Kumar Thangavel
thangavel.k at hcl.com
Fri Dec 13 18:52:54 AEDT 2019
Sure. Thanks for your suggestions.
Thanks,
Kumar.
________________________________
From: James Feist <james.feist at linux.intel.com>
Sent: 12 December 2019 22:37
To: Kumar Thangavel <thangavel.k at hcl.com>; openbmc at lists.ozlabs.org <openbmc at lists.ozlabs.org>
Subject: Re: GPIO-Direction issue
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://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flibs%2Flibgpiod%2Flibgpiod.git%2Ftree%2Fbindings%2Fcxx&data=02%7C01%7Cthangavel.k%40hcl.com%7Cbf18dac88ecc4a35bc2508d77f25bb67%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637117672349243185&sdata=Jeruefedzy4Bnb%2FIVjn4j1zT4YUhh9KwEH1tB6oNKxQ%3D&reserved=0
::DISCLAIMER::
________________________________
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191213/9a74cadf/attachment-0001.htm>
More information about the openbmc
mailing list