All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mason <slash.tmp@free.fr>
To: linux-media <linux-media@vger.kernel.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
	Hans Verkuil <hans.verkuil@cisco.com>,
	Thibaud Cornic <thibaud_cornic@sigmadesigns.com>
Subject: Trying to use IR driver for my SoC
Date: Thu, 29 Jun 2017 17:29:01 +0200	[thread overview]
Message-ID: <cf82988e-8be2-1ec8-b343-7c3c54110746@free.fr> (raw)

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.

             reply	other threads:[~2017-06-29 15:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-29 15:29 Mason [this message]
2017-06-29 15:35 ` Trying to use IR driver for my SoC Mason
2017-06-29 15:55 ` Sean Young
2017-06-29 16:25   ` Mason
2017-06-29 17:50     ` Sean Young
2017-06-29 19:12       ` Mason
2017-06-29 19:44         ` Sean Young
2017-07-10  8:40           ` Mason
2017-07-11 18:35             ` Sean Young
2017-07-11 21:51               ` Mason
2017-07-12  7:21                 ` Sean Young
2017-07-05 12:55       ` Mason

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cf82988e-8be2-1ec8-b343-7c3c54110746@free.fr \
    --to=slash.tmp@free.fr \
    --cc=hans.verkuil@cisco.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=thibaud_cornic@sigmadesigns.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.