xref: /linux/Documentation/devicetree/bindings/media/mediatek,mt7622-cir.yaml (revision c94cd9508b1335b949fd13ebd269313c65492df0)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/mediatek,mt7622-cir.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: MediaTek Consumer Infrared Receiver on-SoC Controller
8
9maintainers:
10  - Sean Wang <sean.wang@mediatek.com>
11
12allOf:
13  - $ref: rc.yaml#
14
15properties:
16  compatible:
17    enum:
18      - mediatek,mt7622-cir
19      - mediatek,mt7623-cir
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    maxItems: 1
26
27  clocks:
28    maxItems: 2
29
30  clock-names:
31    items:
32      - const: clk
33      - const: bus
34
35required:
36  - reg
37  - interrupts
38  - clocks
39  - clock-names
40
41unevaluatedProperties: false
42
43examples:
44  - |
45    #include <dt-bindings/clock/mt2701-clk.h>
46    #include <dt-bindings/interrupt-controller/arm-gic.h>
47
48    ir@10013000 {
49        compatible = "mediatek,mt7623-cir";
50        reg = <0x10013000 0x1000>;
51        interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_LOW>;
52        clocks = <&infracfg CLK_INFRA_IRRX>, <&topckgen CLK_TOP_AXI_SEL>;
53        clock-names = "clk", "bus";
54        linux,rc-map-name = "rc-rc6-mce";
55    };
56