How should I set IR-receiver GPIO on i.MX 8M NANO EVK(8MNANOD4-CPU) ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How should I set IR-receiver GPIO on i.MX 8M NANO EVK(8MNANOD4-CPU) ?

跳至解决方案
1,054 次查看
RabbitThief
Contributor II

Hello,

I read this article. ( How to set IR-receiver GPIO (i.MX8 mini)  )

I'm trying to get IR to work in EVK.

- EVK : 8MNANOD4-CPU

- Linux BSP Version : L5.4.3

I have not been able to solve the same problem as the above article. I tried to search using Google, but it keeps failing.

If you can help with setting up the IR GPIO, please comment.

标签 (1)
标记 (2)
0 项奖励
1 解答
1,015 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Got it, thank you for sharing more information, I have 2 suggestions that you may try.

1 - Try with a more recent BSP, for example with Linux 5.10.35_2.0.0

2 - You may modify as you tried, but you may take as reference the following commit:
https://source.codeaurora.org/external/imx/linux-imx/commit/?h=imx_5.4.47_2.2.0&id=5f0cbb7b9bc83fc43...

Best regards,
Aldo.

在原帖中查看解决方案

4 回复数
1,029 次查看
RabbitThief
Contributor II

Thank you, @AldoG 

As you requested, I'll go into more detail.

My final goal has already been asked in this article. (  How should I implement IR enabled on i.MX 8M NANO EVK(8MNANOD4-CPU) ? )

However, since NXP did not provide a reference solution, I am trying to solve it one by one from the beginning.

Therefore, I made the inquiry I wrote down in the main text. 

As in the referenced article, I want to display GPIO1_13 by executing "cat /sys/kernel/debug/gpio".

./tmp/work-shared/imx8mnevk/kernel-source/arch/arm64/boot/dts/freescale/imx8mn-evk.dts

스크린샷 2021-10-05 09.16.27.png

I set as above (of course, I changed all mini-related parts to nano), but there is no result.

Best regards,
RabbitThief.

0 项奖励
1,016 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Got it, thank you for sharing more information, I have 2 suggestions that you may try.

1 - Try with a more recent BSP, for example with Linux 5.10.35_2.0.0

2 - You may modify as you tried, but you may take as reference the following commit:
https://source.codeaurora.org/external/imx/linux-imx/commit/?h=imx_5.4.47_2.2.0&id=5f0cbb7b9bc83fc43...

Best regards,
Aldo.

1,006 次查看
RabbitThief
Contributor II

@AldoG 

Thanks for your help.

 

0 项奖励
1,044 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Could you give more details on what did you change?
And what is not working?

If you just need to modify the dtb/dts you may try with dtc tool.
https://git.kernel.org/pub/scm/utils/dtc/dtc.git/plain/Documentation/manual.txt?id=HEAD

Best regards,
Aldo.