use GPIO in imx6ul

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

use GPIO in imx6ul

跳至解决方案
4,025 次查看
adi1525
Contributor III

Hello, this is simple question. I want use GPIO1_7 so if I only must set configuration in device tree ? because I can sets /sys/class/gpio75 (GPIO3_IO11), but there is no any information about this pin in my device tree.

Can I take my ready *.dtsi file and add GPIO1_07 support without build all image ? I use bitbake.  

 

Regards,

Adrian

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
3,312 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Adrian

you can add some configuration for this pin in uboot.

Best regards
igor

在原帖中查看解决方案

0 项奖励
回复
5 回复数
3,312 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Adrian

one can look at description of this case on

Simple GPIO Example - quandry 

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

0 项奖励
回复
3,312 次查看
adi1525
Contributor III

Thanks Igor, I can now set device tree and it works, but in my board cc imx6ul SBS express there is User led on pin GPIO3_IO11 and it configuration should be in imx6ul-ccimx6ulstarter .dtsi/.dts but there is no any code about it. so there is another place where I can define this ?

Regards

Adrian

0 项奖励
回复
3,313 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Adrian

you can add some configuration for this pin in uboot.

Best regards
igor

0 项奖励
回复
3,312 次查看
adi1525
Contributor III

But If I make this with u-boot will it not be overridden by the kernel ? 

Regards

Adrian

0 项奖励
回复
3,312 次查看
adi1525
Contributor III

Ok I see, thanks Igor and I try it again :smileywink:

Regards

Adrian

0 项奖励
回复