GPIO value doesn't change

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

GPIO value doesn't change

跳至解决方案
1,425 次查看
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 项奖励
回复
1 解答
1,215 次查看
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 项奖励
回复
3 回复数
1,216 次查看
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 项奖励
回复
1,215 次查看
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 项奖励
回复
1,215 次查看
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 项奖励
回复