TX53 configure gpio pins from c linux code

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

TX53 configure gpio pins from c linux code

972 次查看
jeffallan
Contributor I

Hello All

I know this question has been asked, I would like to set/read a pin on the TX53 module pin 153 which corresponds to GPIO2[20], which as I understand it can be configured as WEIM_A[18], DISP1_DAT[13], CSI1_D[13], BT_CFG1[3],

I have tried from user space using the Linux command line to export pin 90, and reading the value with command cat /sys/class/gpio/gpio90/value, the pin which is an input is floating high, and can easily be pulled down by say a 100k resistor. So I know it is an input, but it always reads as 0, so I am either not reading correct gpio port, or it is not configured. Without recompiling the Kernel, is it possible from application code to configure the pin and read the pins status?

There doesn't appear to be a step by step guide on doing this.

Any help would be welcome.

Jeff

标签 (2)
2 回复数

676 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Jeff

one can try to use memtool ( /unit_tests/memtool ) for accessing registers

Best regards

igor

676 次查看
jeffallan
Contributor I

Thanks for reply.

Jeff

0 项奖励
回复