Set Input pin to PULL-UP

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

Set Input pin to PULL-UP

807 Views
Chayma
Contributor III
Hello, I am working on IMX8M mini EVK. I would like to know how to set a GPIO pin to INPUT and PULL-UP. Thank you.
0 Kudos
1 Reply

801 Views
igorpadykov
NXP Employee
NXP Employee

Hi Chayma

 

one can look at documentation

https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/devicetree/bindings/pinctrl/...

for example MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140, value 0x140 is described in

sect.8.2.5.291 Pad Control Register (IOMUXC_SW_PAD_CTL_PAD_UART1_RXD)

i.MX 8M Mini Applications Processor Reference Manual

Direction can be set in uboot.

 

Best regards
igor

0 Kudos