带有 gpio-line-names 的 devicetree 和 libgpiod - 问题

问题描述

我一直在尝试将名称 LED 放入 imx7d-pico 的 GPIO6_IO14 (technexion) 设备/设备树 (DTS/DTSi 文件): https://github.com/neuberfran/StackOverflow

我一直使用 Yocto/Zeus,内核 5.6,libgpiod v1.4。我可以眨眼 LED 使用 GPIO6_IO14。但是,当我尝试在这个 GPIO 中放置标签名称LED)时 我收到以下屏幕上显示的问题:

enter image description here

你能帮忙吗

解决方法

我错误地依赖此链接:http://next.patchew.org/Linux/20201201074125.11806-1-o.rempel@pengutronix.de/mbox 来解决问题。使用可以在此类链接中看到的围绕 3D 词的实现。

从我根据下面的 3 个链接开始,我解决了这个问题。

只需在 imx7d-pido.dtsi 文件中包含 &gpio1 - &gpio7 中的项目。在&gpio6中,在第十四行包含“LED”。

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