xref: /freebsd/sys/contrib/device-tree/Bindings/media/amlogic,meson-ir-tx.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2354d7675SEmmanuel Vadot
3354d7675SEmmanuel Vadot%YAML 1.2
4354d7675SEmmanuel Vadot---
5*fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/media/amlogic,meson-ir-tx.yaml#
6*fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7354d7675SEmmanuel Vadot
8354d7675SEmmanuel Vadottitle: Amlogic Meson IR transmitter
9354d7675SEmmanuel Vadot
10354d7675SEmmanuel Vadotmaintainers:
11354d7675SEmmanuel Vadot  - Viktor Prutyanov <viktor.prutyanov@phystech.edu>
12354d7675SEmmanuel Vadot
13354d7675SEmmanuel Vadotdescription: |
14354d7675SEmmanuel Vadot  Some Amlogic SoCs such as A311D and T950D4 have IR transmitter
15354d7675SEmmanuel Vadot  (also called blaster) controller onboard. It is capable of
16354d7675SEmmanuel Vadot  sending IR signals with arbitrary carrier frequency and duty cycle.
17354d7675SEmmanuel Vadot
18354d7675SEmmanuel Vadotproperties:
19354d7675SEmmanuel Vadot  compatible:
20354d7675SEmmanuel Vadot    oneOf:
21354d7675SEmmanuel Vadot      - const: amlogic,meson-ir-tx
22354d7675SEmmanuel Vadot      - items:
23354d7675SEmmanuel Vadot          - const: amlogic,meson-g12a-ir-tx
24354d7675SEmmanuel Vadot          - const: amlogic,meson-ir-tx
25354d7675SEmmanuel Vadot
26354d7675SEmmanuel Vadot  reg:
27354d7675SEmmanuel Vadot    maxItems: 1
28354d7675SEmmanuel Vadot
29354d7675SEmmanuel Vadot  interrupts:
30354d7675SEmmanuel Vadot    maxItems: 1
31354d7675SEmmanuel Vadot
32354d7675SEmmanuel Vadot  clocks:
33354d7675SEmmanuel Vadot    maxItems: 2
34354d7675SEmmanuel Vadot
35354d7675SEmmanuel Vadot  clock-names:
36354d7675SEmmanuel Vadot    items:
37354d7675SEmmanuel Vadot      - const: sysclk
38354d7675SEmmanuel Vadot      - const: xtal
39354d7675SEmmanuel Vadot
40354d7675SEmmanuel Vadotrequired:
41354d7675SEmmanuel Vadot  - compatible
42354d7675SEmmanuel Vadot  - reg
43354d7675SEmmanuel Vadot  - interrupts
44354d7675SEmmanuel Vadot  - clocks
45354d7675SEmmanuel Vadot  - clock-names
46354d7675SEmmanuel Vadot
47354d7675SEmmanuel VadotadditionalProperties: false
48354d7675SEmmanuel Vadot
49354d7675SEmmanuel Vadotexamples:
50354d7675SEmmanuel Vadot  - |
51354d7675SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
52354d7675SEmmanuel Vadot    #include <dt-bindings/clock/g12a-clkc.h>
53354d7675SEmmanuel Vadot
54354d7675SEmmanuel Vadot    ir@ff80014c {
55354d7675SEmmanuel Vadot      compatible = "amlogic,meson-g12a-ir-tx", "amlogic,meson-ir-tx";
56354d7675SEmmanuel Vadot      reg = <0xff80014c 0x10>;
57354d7675SEmmanuel Vadot      interrupts = <0 198 IRQ_TYPE_EDGE_RISING>;
58354d7675SEmmanuel Vadot      clocks = <&clkc CLKID_CLK81>, <&xtal>;
59354d7675SEmmanuel Vadot      clock-names = "sysclk", "xtal";
60354d7675SEmmanuel Vadot    };
61