TX53 configure gpio pins from c linux code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TX53 configure gpio pins from c linux code

1,151 Views
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

Labels (2)
2 Replies

855 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jeff

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

Best regards

igor

855 Views
jeffallan
Contributor I

Thanks for reply.

Jeff

0 Kudos
Reply