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,meson-ir-tx.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Amlogic Meson IR transmitter
8
9maintainers:
10  - Viktor Prutyanov <[email protected]>
11
12description: |
13  Some Amlogic SoCs such as A311D and T950D4 have IR transmitter
14  (also called blaster) controller onboard. It is capable of
15  sending IR signals with arbitrary carrier frequency and duty cycle.
16
17properties:
18  compatible:
19    oneOf:
20      - const: amlogic,meson-ir-tx
21      - items:
22          - const: amlogic,meson-g12a-ir-tx
23          - const: amlogic,meson-ir-tx
24
25  reg:
26    maxItems: 1
27
28  interrupts:
29    maxItems: 1
30
31  clocks:
32    maxItems: 2
33
34  clock-names:
35    items:
36      - const: sysclk
37      - const: xtal
38
39required:
40  - compatible
41  - reg
42  - interrupts
43  - clocks
44  - clock-names
45
46additionalProperties: false
47
48examples:
49  - |
50    #include <dt-bindings/interrupt-controller/irq.h>
51    #include <dt-bindings/clock/g12a-clkc.h>
52
53    ir@ff80014c {
54      compatible = "amlogic,meson-g12a-ir-tx", "amlogic,meson-ir-tx";
55      reg = <0xff80014c 0x10>;
56      interrupts = <0 198 IRQ_TYPE_EDGE_RISING>;
57      clocks = <&clkc CLKID_CLK81>, <&xtal>;
58      clock-names = "sysclk", "xtal";
59    };
60