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.

[参考译文] AM4378:无法导出/sys/class/GPIO中的某些GPIO

Guru**** 2540720 points
Other Parts Discussed in Thread: AM4378, AM4372

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1091042/am4378-unable-to-export-certain-gpios-in-sys-class-gpio

部件号:AM4378
主题中讨论的其他部件: AM4372

AM4378I使用基于AM4378的定制板。 尝试从/sys/class/GPIO导出(切换) GPIO4[16]时,我收到错误:

# echo 144> export
[GPIO ] export_store:7.0099万.801668</xmt-block>80.1668万 144无效
sh:写入错误:无效参数

AM4372_IOPAD (0x9f0,PIN_OUTPT_PULLDOWN | MUX_MODE7)/* uart1--(AD21) CAM1_data2.GPIO4[16]=144 */

本GPIO4[16]是UART1组的一部分。 如果使用硬件握手,则可能是CTS针脚,但我的目的不是使用硬件握手,因为这会驱动RS485端口。 因此,该引脚被接线以控制线路驱动器芯片的方向。

提前感谢您的帮助!

Mukundan

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

    您好,

    首先,请检查其padcfg寄存器,以确保在GPIO模式下配置引脚。

    另请注意,如果内核驱动程序中已使用GPIO引脚,则不允许通过/sys/class/gpio访问。