summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/media/amlogic,meson6-ir.yaml
blob: 3f9fa92703bbbfcb9cac985e711d58f30d433c37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/amlogic,meson6-ir.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Amlogic Meson IR remote control receiver

maintainers:
  - Neil Armstrong <neil.armstrong@linaro.org>

allOf:
  - $ref: rc.yaml#

properties:
  compatible:
    oneOf:
      - enum:
          - amlogic,meson6-ir
          - amlogic,meson8b-ir
          - amlogic,meson-gxbb-ir
      - items:
          - const: amlogic,meson-gx-ir
          - const: amlogic,meson-gxbb-ir

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

required:
  - compatible
  - reg
  - interrupts

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    ir-receiver@c8100480 {
        compatible = "amlogic,meson6-ir";
        reg = <0xc8100480 0x20>;
        interrupts = <GIC_SPI 15 IRQ_TYPE_EDGE_RISING>;
    };