use GPIO in imx6ul

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

use GPIO in imx6ul

Jump to solution
2,439 Views
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

Labels (1)
Tags (2)
0 Kudos
1 Solution
1,726 Views
igorpadykov
NXP Employee
NXP Employee

Hi Adrian

you can add some configuration for this pin in uboot.

Best regards
igor

View solution in original post

0 Kudos
5 Replies
1,726 Views
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 Kudos
1,726 Views
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 Kudos
1,727 Views
igorpadykov
NXP Employee
NXP Employee

Hi Adrian

you can add some configuration for this pin in uboot.

Best regards
igor

0 Kudos
1,726 Views
adi1525
Contributor III

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

Regards

Adrian

0 Kudos
1,726 Views
adi1525
Contributor III

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

Regards

Adrian

0 Kudos