avafinger / orangepi-h6-ubuntu-base-minimal

Mainline kernel 5.1 5.2 5.3 5.4 H6 (Orange Pi One Plus)
19 stars 5 forks source link

Adding IR receiver ? #2

Closed clementperon closed 5 years ago

clementperon commented 5 years ago

Hi @avafinger,

Could you try to add the IR receiver on the OrangePi H6 please.

In the H6.dtsi https://github.com/clementperon/linux/commit/ad77a6818e7cc74cf4c7c99dd074466d5abc1a21

and in the dts. https://github.com/clementperon/linux/blob/beelink_gs1/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts#L108

You should also enable SUNXI_IR in the Kernel

Thanks,

clementperon commented 5 years ago

Ok this one work :)

Building with NEC decoder

# echo nec > /sys/class/rc/rc0/protocols
# cat /dev/input/event0 | hexdump
0000000 0093 0000 0000 0000 8bfb 0009 0000 0000
0000010 0004 0004 8028 0000 0093 0000 0000 0000
0000020 8bfb 0009 0000 0000 0000 0000 0000 0000
0000030 0093 0000 0000 0000 55be 000a 0000 0000
0000040 0004 0004 8028 0000 0093 0000 0000 0000
0000050 55be 000a 0000 0000 0000 0000 0000 0000
0000060 0093 0000 0000 0000 fa42 000d 0000 0000
0000070 0004 0004 8028 0000 0093 0000 0000 0000
0000080 fa42 000d 0000 0000 0000 0000 0000 0000
0000090 0093 0000 0000 0000 c41a 000e 0000 0000
00000a0 0004 0004 8028 0000 0093 0000 0000 0000
00000b0 c41a 000e 0000 0000 0000 0000 0000 0000
avafinger commented 5 years ago

Sounds great, nice work. I will check with mine. Closing now. Thank you.

avafinger commented 5 years ago

Yes! it works with LG.