- gpios: specifies GPIO used for IR signal reception.
Optional properties:
+ - min-delay: minimum delay(ms) to send IR event reset for raw IR decoding.
- linux,rc-map-name: Linux specific remote control map name.
+ - allowed-protos: 64 bit integer, platform specific allowed
+ IR protocols.
Example node:
ir: ir-receiver {
compatible = "gpio-ir-receiver";
gpios = <&gpio0 19 1>;
+ min-delay = <500>;
linux,rc-map-name = "rc-rc6-mce";
+ allowed-protos = <0x00000000 0x00000080>;
};
pdata->gpio_nr = gpio;
pdata->active_low = (flags & OF_GPIO_ACTIVE_LOW);
+ if (of_property_read_u32(np, "min-delay", &pdata->min_delay))
+ pdata->min_delay = 0;
/* probe() takes care of map_name == NULL or allowed_protos == 0 */
pdata->map_name = of_get_property(np, "linux,rc-map-name", NULL);
- pdata->allowed_protos = 0;
+
+ if (of_property_read_u64(np, "allowed-protos", &pdata->allowed_protos))
+ pdata->allowed_protos = 0;
return 0;
}
rcdev->input_id.version = 0x0100;
rcdev->dev.parent = &pdev->dev;
rcdev->driver_name = GPIO_IR_DRIVER_NAME;
+ rcdev->min_delay = pdata->min_delay;
if (pdata->allowed_protos)
rcdev->allowed_protos = pdata->allowed_protos;
else