1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/gpio-ir-receiver.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: GPIO Based IR receiver
8
9maintainers:
10  - Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
11
12allOf:
13  - $ref: rc.yaml#
14
15properties:
16  compatible:
17    const: gpio-ir-receiver
18
19  gpios:
20    maxItems: 1
21
22  linux,autosuspend-period:
23    description: autosuspend delay time in milliseconds
24    $ref: /schemas/types.yaml#/definitions/uint32
25
26required:
27  - compatible
28  - gpios
29
30unevaluatedProperties: false
31
32examples:
33  - |
34    ir-receiver {
35        compatible = "gpio-ir-receiver";
36        gpios = <&gpio0 19 1>;
37        linux,rc-map-name = "rc-rc6-mce";
38        linux,autosuspend-period = <125>;
39    };
40...
41