Configure GPIOs as inputs or outputs in device tree

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

Configure GPIOs as inputs or outputs in device tree

2,541 Views
Sameer_Kelaskar
Contributor I

Hi,

    We are using a customized board based on TQ-Systems i.MX8MPlus TQMa8MPxL - MBa8MPxL. Also we prepared the Yocto BSP Build procedure. And now we need to use some GPIOs available as inputs/outputs for our application.

    Following are some GPIOs that we intend to use some as inputs and some as outputs (either active high or active low), so how do we configure them? Any suggestions would be helpful.

0 Kudos
Reply
3 Replies

2,386 Views
Sameer_Kelaskar
Contributor I

Thank you @JorgeCas the problem for GPIOs was resolved. The numbering scheme for gpio banks in dts and that in the datasheet of i.MX8MP is different, and we had it corrected in our dts later.

But there is now an another query is that out of the 2 ethernet ports on-board only one works (i.e. interface shows in ifconfig result) while other does not. We are trying to change the existing "rgmii" PHY mode to "mii" so, accordingly how to make changes in the ethernet controller and corresponding iomux signals please let know.

0 Kudos
Reply

2,356 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Got it @Sameer_Kelaskar, thank you for the feedback.

I suggest you open a new thread because it is a different topic.

Best regards.

0 Kudos
Reply

2,512 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Hello, I hope you are doing well.

I suggest you check the next file:

How to use a GPIO in Linux on i.MX8*.

Best regards.

 

0 Kudos
Reply