GPIO value doesn't change

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

GPIO value doesn't change

Jump to solution
940 Views
mathew_k_t
Contributor II

Hi,

I was configuring some of the I2C pins(Sound and camera) in the header as GPIO (GPIO1_IO30 and GPIO1_IO31), i.e: GPIO30 and GPIO31 in console. So I disabled sound and camera, reconfigured pins as GPIO.

                  MX6UL_PAD_UART5_RX_DATA__GPIO1_IO31       0x000010B0
                  MX6UL_PAD_UART5_TX_DATA__GPIO1_IO30       0x000010B0

But the value doesn't get changed. What's the error in it? Or these pins have any other control other than device tree.GPIO issue.png

0 Kudos
Reply
1 Solution
730 Views
BiyongSUN
NXP Employee
NXP Employee

 you can add the 0x40000000 to set the SION to try.              

                  MX6UL_PAD_UART5_RX_DATA__GPIO1_IO31       0x400010B0
                  MX6UL_PAD_UART5_TX_DATA__GPIO1_IO30       0x400010B0

View solution in original post

0 Kudos
Reply
3 Replies
731 Views
BiyongSUN
NXP Employee
NXP Employee

 you can add the 0x40000000 to set the SION to try.              

                  MX6UL_PAD_UART5_RX_DATA__GPIO1_IO31       0x400010B0
                  MX6UL_PAD_UART5_TX_DATA__GPIO1_IO30       0x400010B0

0 Kudos
Reply
730 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Mathew,

Once pins are configured as GPIO, you could also use them with /sys/class/gpio/

You could take a look at the following document:

https://community.nxp.com/docs/DOC-329735

Hope this will be useful for you.

Best regards!

/Carlos

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

0 Kudos
Reply
730 Views
BiyongSUN
NXP Employee
NXP Employee

If you read the reference manual carefully, you should know about SION bit.

Please set it and check again.

please refer to the following link and search SION.


Simple GPIO Example - quandry
https://community.nxp.com/message/598834#598834

0 Kudos
Reply