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

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

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

Jump to solution
1,414 Views
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.

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
1,375 Views
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.

View solution in original post

4 Replies
1,389 Views
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 Kudos
Reply
1,376 Views
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,366 Views
RabbitThief
Contributor II

@AldoG 

Thanks for your help.

 

0 Kudos
Reply
1,404 Views
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.