Configure GPIOs as inputs or outputs in device tree

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

Configure GPIOs as inputs or outputs in device tree

2,540 次查看
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 项奖励
回复
3 回复数

2,385 次查看
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 项奖励
回复

2,355 次查看
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 项奖励
回复

2,511 次查看
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 项奖励
回复