This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux/AM5728:器件树启用 GPIO 按钮

Guru**** 2555630 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/624430/linux-am5728-device-tree-enable-gpio-buttons

器件型号:AM5728

工具/软件:Linux

大家好、我已经为我们的定制板进行了器件树编辑、以添加一些按钮。  我有两个问题:

由于这些按钮将在应用中用于通过以太网发送消息(按下按钮 A 发送消息1、按下按钮 B 发送消息2等)、GPIO 钥匙驱动器是否是正确的驱动器?  每个引脚的 Linux 代码值是否必须与键盘上可用的值相对应、或者是否有自定义选项?

2.如果我使用 GPIO 密钥、甚至是 sysfs 驱动程序、我是否能够使用 GPIO 状态查看 u-boot 命令行界面中的 GPIO 变化?

如果有任何帮助,我们将不胜感激:)