imx8mini GPIO

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

imx8mini GPIO

634 Views
bobwang
Contributor I

Thank you for your prompt reply Yuri.

We are using a Variscite Dev Kit, which we need more GPIO's. We would like to change Pad AD13 on the IMX8M-MINI (MIMX8MM6DVTLZAA) to a GPIO Input with high impedance, as we would like to pull this up to 3V3. Variscite in their BSP is using this pad for SAI5_RXD2 and we would like to change it to a GPIO. Can you pls advise the register/changes needed in order to achieve this?

Thank you.

0 Kudos
1 Reply

607 Views
Yuri
NXP Employee
NXP Employee

Hello,

   

Configuring a pad for a specific functionality requires the following actions:

1.

   Check in the Device Tree  if the pad is used by other peripheral modules, because a pad can be configured only once in device. Such functionality has to be "disabled" in order to avoid pins conflict.

2.

  Check what functionalities can be export the targeted pad in include/dt-bindings/pinctrl/pins-imx8mm.h:

Macros are defined using the convention documented here.

Besides, this type of macro, a sixth value, the pad configuration has to be added for full pinmux setup. The pad configuration (IOMUXC_SW_PAD_CTL_PAD_*) is done in order to select Internal Pull Up Resistors, Hysteresis Enable, Internal Pull Down Resistors, Open Drain Enable, Slew Rate and Drive Strength.

  I've sent You more information about GPIO directly.

Regards,

Yuri.

0 Kudos