1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/amlogic,meson6-ir.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Amlogic Meson IR remote control receiver
8
9maintainers:
10  - Neil Armstrong <neil.armstrong@linaro.org>
11
12allOf:
13  - $ref: rc.yaml#
14
15properties:
16  compatible:
17    oneOf:
18      - enum:
19          - amlogic,meson6-ir
20          - amlogic,meson8b-ir
21          - amlogic,meson-gxbb-ir
22      - items:
23          - const: amlogic,meson-gx-ir
24          - const: amlogic,meson-gxbb-ir
25
26  reg:
27    maxItems: 1
28
29  interrupts:
30    maxItems: 1
31
32required:
33  - compatible
34  - reg
35  - interrupts
36
37unevaluatedProperties: false
38
39examples:
40  - |
41    #include <dt-bindings/interrupt-controller/irq.h>
42    #include <dt-bindings/interrupt-controller/arm-gic.h>
43    ir-receiver@c8100480 {
44        compatible = "amlogic,meson6-ir";
45        reg = <0xc8100480 0x20>;
46        interrupts = <GIC_SPI 15 IRQ_TYPE_EDGE_RISING>;
47    };
48