IMX7 Dual EVK - GPIO ID for PUSH button and LED

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

IMX7 Dual EVK - GPIO ID for PUSH button and LED

Jump to solution
1,222 Views
jordan_chen
Contributor II

Hi,
  I am trying to modify DTS and verify PUSH button and LED features on IMX7 Dual EVK board (MCIMX7SABRE), but I have no idea which GPIO ID pins are used for EVK. Does anyone know the GPIO tables for IMX7 Dual EVK? Thanks.
 
  PS. What I know is a green LED is always ON after device power on, a red LED is on if I long press ON/OFF button, then short press it again and there are 4 buttons (RST, ON/OFF, FUNC1, FUNC2). It seems like FUNC1 and FUNC2 buttons are not used.
 
Regards,
Jordan

Labels (1)
1 Solution
942 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jordan

these settings configure pad registers, like IOMUXC_SW_PAD_CTL_PAD_SD2_RESET_B

so if configured properly in uboot, they also should work with default configs.

Best regards
igor

View solution in original post

4 Replies
942 Views
igorpadykov
NXP Employee
NXP Employee

Hi jordan

one can look at i.MX7D EVK schematic

Schematics (2)
Design files for i.MX 7Dual
Design files, including hardware schematics, Gerbers, and OrCAD files for i.MX 7Dual (REV D)
i.MX 7Dual Applications Processors | Dual Arm® Cortex®-A7 + Cortex-M4 |NXP 

gpio mapping description on

Definitive GPIO guide - Studio Kousagi Wiki 

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

942 Views
jordan_chen
Contributor II

Hi igor,

    After setting gpio-key as following link, evtest can receive key event. Thanks.

 

I have further questions, do you know why these two registers (GPIO5_IO11 and GPIO5_IO10) must be configured to 0x59?

    If I don't config them (that means I don't specify "pinctrl-0 = <&pinctrl_gpio_keys>;") or config them to 0x80000000 which means use default config, key event can not be triggered?

 

[Reference]

https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/imx7d-sdb.dts

pinctrl_gpio_keys: gpio_keysgrp {
fsl,pins = <
MX7D_PAD_SD2_RESET_B__GPIO5_IO11 0x59
MX7D_PAD_SD2_WP__GPIO5_IO10 0x59
>;
};

Regards,

Jordan

0 Kudos
943 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jordan

these settings configure pad registers, like IOMUXC_SW_PAD_CTL_PAD_SD2_RESET_B

so if configured properly in uboot, they also should work with default configs.

Best regards
igor

942 Views
jordan_chen
Contributor II

Hi igor,

    Thanks a lot for the info.

Regards,

Jordan

0 Kudos