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.

[参考译文] DRA821U:GPIO 切换问题

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1644577/dra821u-issue-with-gpio-toggle

器件型号: DRA821U
主题: DRA821 中讨论的其他器件

尊敬的团队:  
我正在使用 SDK 11.02 进行 DRA821 定制电路板、并尝试使用以下命令 cat /sys/kernel/debug/gpio 从 GPIO 控制器切换 GPIO  
gpiochip0:GPIO 512-596、父级:platform/42110000、GPIO 42110000:
 GPIO-537 (           |eth_reset_gpio   ) 输出低  
 GPIO-596 (           |fixedregulator-sd ) 输出低  

gpiochip1:GPIO 597-665、父级:platform/600000.GPIO、600000.GPIO:
 GPIO-605 (           |Mic detection   (麦克风检测)处于 低电平有效

gpiochip2:GPIO 666-676、父级:I2C/0-0048、0-0048、CAN 睡眠:
 GPIO-666 (           |WP         ) 你(们)好  

Echo 513 >/sys/class/gpio/export
回显 OUT >/sys/class/gpio/gpio513/direction
CAT /sys/class/gpio/gpio513/value
0
Echo 1 >/sys/class/gpio/gpio513/value
CAT /sys/class/gpio/gpio513/value
0

但是、即使更改 GPIO 值、GPIO 状态也会保持不变、我无法确认 GPIO 是否正常切换。

您能否帮助我们了解如何验证 GPIO 切换状态或提供在电路板上测试 GPIO 功能的正确方法建议?

此致、
Ashwini

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

    您好 Ashwini A

    GPIO 引脚多路复用是否正确初始化?

    如果您测试 GPIO 触发、GPIO 是否会变为高电平?

    您可以改为测试 gpioset 吗?

    此致、
    Jared