Configure GPIOs as inputs or outputs in device tree

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Configure GPIOs as inputs or outputs in device tree

2,548件の閲覧回数
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,393件の閲覧回数
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,363件の閲覧回数
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,519件の閲覧回数
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 件の賞賛
返信