IMX8QM using GPIO3_IO24 as GPIO

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

IMX8QM using GPIO3_IO24 as GPIO

1,044件の閲覧回数
yusufbavas_t
Contributor I

Hi,

I am trying to use GPIO3_IO24 pin as input, but i always read state low. I can use GPIO5_IO16 pin without any problem but in GPIO3_IO24, i always read 0 no matter the pin state. I tried to define pin in DTS or define it in /sys/class/gpio folder (like described in https://variwiki.com/index.php?title=MX8M_GPIO#Using_a_command_line_or_a_script).

I tried to define pin as output. In this situation, i measure pin state is always high and it is not changed. I can't control pin neither input nor output mode. 

In datasheet, pin has 2 configurations controlled by other 2 pins (GPIO2_16 and GPIO2_7). I tried all alternatives in this configurations but result is same.

Am i doing something wrong, how do i use this pin as GPIO ?

Thanks.

Kernel version : 5.4.47 (android 10)

0 件の賞賛
返信
1 返信

1,009件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @yusufbavas_t,

I hope you are doing well.

 

In the i.MX8QM series (and i.MX8QXP) the GPIOs are handled by the SCFW. And you can refer to the documentation here.

Please refer to this similar case.

Hope it helps!

 

Best Regards,
Dhruvit.

0 件の賞賛
返信