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 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html