Set GPIO input pull-down

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

Set GPIO input pull-down

851 Views
wangtsungli
Contributor IV

Hi Community,

I'm working on i.MX6 Dual Lite sabre-SD.

I'm trying to set gpio to input pull-down.

Here is my settings in dtsi.

 MX6QDL_PAD_SD2_CMD__GPIO1_IO11  0x80000000

But this settings will set gpio input pull-high.

How can I set it to input pull-down?

Thanks in advanced!

Labels (5)
0 Kudos
1 Reply

532 Views
igorpadykov
NXP Employee
NXP Employee

Hi tsung

"8" means that pin does not need config according to documentation :

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

fsl,imx-pinctrl.txt\pinctrl\bindings\devicetree\Documentation - linux-imx - i.MX Linux kernel 

so one can remove it and set appropriate pull bits as described in sect.36.4.460 Pad Control Register

(IOMUXC_SW_PAD_CTL_PAD_SD2_CMD) i.MX6DQ Reference Manual 

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

0 Kudos