Search code examples
linux-kernelembedded-linuxgpiodevice-tree

devicetree and libgpiod with gpio-line-names - Issue


I stay trying put name LED in my GPIO6_IO14 of the imx7d-pico (technexion) device/DEVICETREE (DTS/DTSi-files): https://github.com/neuberfran/StackOverflow

I stay using Yocto/Zeus, kernel 5.6, libgpiod v1.4. I can blink LED using GPIO6_IO14. But, when I try put label name (LED) in this GPIO I get the issue shown on the screen below:

enter image description here

Can you help


Solution

  • I was wrongly relying on this link: http://next.patchew.org/Linux/[email protected]/mbox to resolve the issue. Using the implementation that revolved around the 3D word that can be seen in such a link.

    From the moment I based on the 3 links below, I resolved the issue.

    Just include in the imx7d-pico.dtsi file the items from &gpio1 - &gpio7. And in &gpio6, include "LED" in the fourteenth line.

    https://sbexr.rabexc.org/latest/sources/1b/037aa2271810d7.html

    https://sbexr.rabexc.org/latest/sources/12/6351a0f24647cd.html

    https://sbexr.rabexc.org/latest/sources/d4/db1bab7dc0e22f.html