How can I set IOMUX Pin for using gpio?

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

How can I set IOMUX Pin for using gpio?

ソリューションへジャンプ
3,350件の閲覧回数
chesterkang
Contributor II

Dear Community

How can I set IOMUX Pin for using gpio(Pull up)?

Actually I try to change dts like below but it's not work.

I want to use checking MDM status pin of GPIO5_28.

So I add Pin control as below

Mux Setting Pin : CSI0_DAT10

arch/arm/boot/dts/imx6q-pinfunc.h:803:#define MX6QDL_PAD_CSI0_DAT10__GPIO5_IO28           0x280 0x650 0x000 0x5 0x0

Control Setting Pin

--- a/arch/arm/boot/dts/imx6qdl.dtsi

+++ b/arch/arm/boot/dts/imx6qdl.dtsi

@@ -1602,6 +1602,12 @@

                                MX6QDL_PAD_RGMII_RXC__USB_H3_STROBE 0x40017030

                        >;

                };

+              

+               pinctrl_usbh3_3: usbh3grp-3 {

+                        fsl,pins = <

+                               MX6QDL_PAD_CSI0_DAT10__GPIO5_IO28    0x1b0b1

+                        >;

+                };

        };

Could you share What i do to use it?

ラベル(4)
0 件の賞賛
返信
1 解決策
1,778件の閲覧回数
Yuri
NXP Employee
NXP Employee

  Please refer to Chapter 2 (Configuring the IOMUX Controller)
of "i.MX_6_BSP_Porting_Guide.pdf". Also, "for details, see:

Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt

Documentation/devicetree/bindings/pinctrl/fsl,imx6*-pinctrl.txt"


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

1 返信
1,779件の閲覧回数
Yuri
NXP Employee
NXP Employee

  Please refer to Chapter 2 (Configuring the IOMUX Controller)
of "i.MX_6_BSP_Porting_Guide.pdf". Also, "for details, see:

Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt

Documentation/devicetree/bindings/pinctrl/fsl,imx6*-pinctrl.txt"


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------