How can I set IOMUX Pin for using gpio?

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

How can I set IOMUX Pin for using gpio?

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

Labels (4)
0 Kudos
Reply
1 Solution
1,340 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

1 Reply
1,341 Views
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!
-----------------------------------------------------------------------------------------------------------------------