IMX7 Dual EVK - GPIO ID for PUSH button and LED

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX7 Dual EVK - GPIO ID for PUSH button and LED

ソリューションへジャンプ
1,248件の閲覧回数
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

ラベル(1)
1 解決策
968件の閲覧回数
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

元の投稿で解決策を見る

4 返答(返信)
968件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------

968件の閲覧回数
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 件の賞賛
969件の閲覧回数
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

968件の閲覧回数
jordan_chen
Contributor II

Hi igor,

    Thanks a lot for the info.

Regards,

Jordan

0 件の賞賛