Issues about GPIO Status

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

Issues about GPIO Status

602 Views
tony_l_cai
Contributor III

Hi,all

     When GPIO is input, the value we cat via userspace is correct.But when GPIO is output, the value we cat is wrong. I want to know how to rectify it in the code. Please help me . 3Q~

Labels (3)
0 Kudos
3 Replies

424 Views
igorpadykov
NXP Employee
NXP Employee

Hi tony

for output GPIO please try to set the SION bit 

i.MX6 output gpio value behaviour

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

424 Views
tony_l_cai
Contributor III

Hi,igor

     Our codebase is base on Linux-3.0.35-2473-gb720655,but ,I cant find the file gpio-mxc.c,and on the other hand,out project didnt use the Device tree.Maybe I also need the method how to set the SION bit in detail. Thanks!

0 Kudos

424 Views
igorpadykov
NXP Employee
NXP Employee

one can try memtool in unit tests

https://community.freescale.com/message/374610#374610

Best regards

igor

0 Kudos