use GPIO in imx6ul

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,861件の閲覧回数
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 解決策
2,148件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Adrian

you can add some configuration for this pin in uboot.

Best regards
igor

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
2,148件の閲覧回数
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 件の賞賛
返信
2,148件の閲覧回数
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 件の賞賛
返信
2,149件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Adrian

you can add some configuration for this pin in uboot.

Best regards
igor

0 件の賞賛
返信
2,148件の閲覧回数
adi1525
Contributor III

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

Regards

Adrian

0 件の賞賛
返信
2,148件の閲覧回数
adi1525
Contributor III

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

Regards

Adrian

0 件の賞賛
返信