Comment 2 by Nikolaus Schaller, Dec 1, 2013
Todo in Board file:
#include <media/gpio-ir-recv.h>
static struct gpio_ir_recv_platform_data ir_platform_data = {
.gpio_nr = 165,
.active_low = 1,
// constants defined in include/media/rc-map.h
.allowed_protos = RC_BIT_ALL /* RC_BIT_RC5 */,
.map_name = RC_MAP_RC5_TV /* "rc-rc5-tv" */,
};
// and register a platform device for driver "gpio-rc-recv"
Summary:
Infrared receiver
Comment 3 by Marek Belisko, Dec 2, 2013
Seems there is already a way: http://forum.odroid.com/viewtopic.php?f=24&t=2426
Comment 5 by Nikolaus Schaller, Jun 11, 2014
There is also an 'gpio-ir-receiver' driver in the device tree: https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/tree /Documentation/devicetree/bindings/media/gpio-ir-receiver.txt?id=6561 11f4b9cbc5a9b86cc2d6ac54dea0855209f0
Sign in to reply to this comment.
Reported by Nikolaus Schaller, Dec 1, 2013