Re: Getting gpios from user space based on gpio-line-names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3.7.2017 15:06, Bartosz Golaszewski wrote:
> 2017-07-03 15:01 GMT+02:00 Michal Simek <monstr@xxxxxxxxx>:
>> Hi,
>>
>> I am trying to find some docs about how to ask for gpio line
>> based on gpio-line-names in DT. I see line names available via debugfs
>> which is not suitable for production.
>> And also I didn't find a way how to ask for gpio Linux number from user
>> space to start to work with them.
>> This is for gpio mraa integration which depends on Linux gpio line numbers.
>>
>> Thanks,
>> Michal
>>
>> --
>> Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
>> w: www.monstr.eu p: +42-0-721842854
>> Maintainer of Linux kernel - Xilinx Microblaze
>> Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
>> U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP SoCs
>>
>>
> 
> Hi Michal,
> 
> you can try libgpiod[1] and specifically the gpiofind tool included in
> the repository. Buildroot has this package should you need to build a
> rootfs for some specific target.
> 
> Best regards,
> Bartosz Golaszewski
> 
> [1] https://github.com/brgl/libgpiod
> 

Thanks. That's what I was looking for. I knew that there is new
interface but didn't have this link.

Thanks,
Michal


-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP SoCs


Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux