Trying to use IR driver for my SoC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm trying to use an IR driver written for my SoC:
https://github.com/mansr/linux-tangox/blob/master/drivers/media/rc/tangox-ir.c

I added these options to my defconfig:

+CONFIG_MEDIA_SUPPORT=y
+CONFIG_MEDIA_RC_SUPPORT=y
+CONFIG_RC_DEVICES=y
+CONFIG_IR_TANGO=y

(I don't think I need the RC decoders, because the HW is supposed
to support HW decoding of NEC, RC5, RC6).

These are the logs printed at boot:

[    1.827842] IR NEC protocol handler initialized
[    1.832407] IR RC5(x/sz) protocol handler initialized
[    1.837491] IR RC6 protocol handler initialized
[    1.842049] IR JVC protocol handler initialized
[    1.846606] IR Sony protocol handler initialized
[    1.851248] IR SANYO protocol handler initialized
[    1.855979] IR Sharp protocol handler initialized
[    1.860708] IR MCE Keyboard/mouse protocol handler initialized
[    1.866575] IR XMP protocol handler initialized
[    1.871232] tango-ir 10518.ir: SMP86xx IR decoder at 0x10518/0x105e0 IRQ 21
[    1.878241] Registered IR keymap rc-empty
[    1.882457] input: tango-ir as /devices/platform/soc/10518.ir/rc/rc0/input0
[    1.889473] tango_ir_open
[    1.892105] rc rc0: tango-ir as /devices/platform/soc/10518.ir/rc/rc0


I was naively expecting some kind of dev/input/event0 node
I could cat to grab all the remote control key presses.

But I don't see anything relevant in /dev

/sys/devices/platform/soc/10518.ir/rc/rc0/input0$ ls -l
total 0
drwxr-xr-x    2 root     root             0 Jan  1 00:00 capabilities
lrwxrwxrwx    1 root     root             0 Jan  1 00:07 device -> ../../rc0
drwxr-xr-x    2 root     root             0 Jan  1 00:07 id
-r--r--r--    1 root     root          4096 Jan  1 00:07 modalias
-r--r--r--    1 root     root          4096 Jan  1 00:00 name
-r--r--r--    1 root     root          4096 Jan  1 00:07 phys
-r--r--r--    1 root     root          4096 Jan  1 00:00 properties
lrwxrwxrwx    1 root     root             0 Jan  1 00:07 subsystem -> ../../../../../../../class/input
-rw-r--r--    1 root     root          4096 Jan  1 00:00 uevent
-r--r--r--    1 root     root          4096 Jan  1 00:07 uniq

$ cat *
cat: read error: Is a directory
cat: read error: Is a directory
cat: read error: Is a directory
input:b0000v0000p0000e0000-e0,1,4,14,k98,ram4,lsfw
tango-ir
tango-ir/input0
0
cat: read error: Is a directory
PRODUCT=0/0/0/0
NAME="tango-ir"
PHYS="tango-ir/input0"
PROP=0
EV=100013
KEY=1000000 0 0 0 0
MSC=10
MODALIAS=input:b0000v0000p0000e0000-e0,1,4,14,k98,ram4,lsfw


The IR interrupt count remains at 0, even I use the RC nearby.
(It works in a legacy system, using a different driver.)


I suppose I am missing some important piece of the puzzle?
I hope someone can point me in the right direction.

Regards.



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux