xref: /freebsd/sys/contrib/device-tree/Bindings/media/allwinner,sun4i-a10-ir.yaml (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/allwinner,sun4i-a10-ir.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner A10 Infrared Controller Device Tree Bindings
8
9maintainers:
10  - Chen-Yu Tsai <wens@csie.org>
11  - Maxime Ripard <mripard@kernel.org>
12
13allOf:
14  - $ref: "rc.yaml#"
15
16properties:
17  compatible:
18    oneOf:
19      - const: allwinner,sun4i-a10-ir
20      - const: allwinner,sun5i-a13-ir
21      - items:
22          - const: allwinner,sun8i-a83t-ir
23          - const: allwinner,sun6i-a31-ir
24      - const: allwinner,sun6i-a31-ir
25      - items:
26          - const: allwinner,sun50i-a64-ir
27          - const: allwinner,sun6i-a31-ir
28      - items:
29          - const: allwinner,sun50i-h6-ir
30          - const: allwinner,sun6i-a31-ir
31
32  reg:
33    maxItems: 1
34
35  interrupts:
36    maxItems: 1
37
38  clocks:
39    items:
40      - description: Bus Clock
41      - description: Module Clock
42
43  clock-names:
44    items:
45      - const: apb
46      - const: ir
47
48  resets:
49    maxItems: 1
50
51  clock-frequency:
52    default: 8000000
53    description:
54      IR Receiver clock frequency, in Hertz.
55
56required:
57  - compatible
58  - reg
59  - interrupts
60  - clocks
61  - clock-names
62
63unevaluatedProperties: false
64
65examples:
66  - |
67      ir0: ir@1c21800 {
68          compatible = "allwinner,sun4i-a10-ir";
69          clocks = <&apb0_gates 6>, <&ir0_clk>;
70          clock-names = "apb", "ir";
71          clock-frequency = <3000000>;
72          resets = <&apb0_rst 1>;
73          interrupts = <0 5 1>;
74          reg = <0x01C21800 0x40>;
75          linux,rc-map-name = "rc-rc6-mce";
76      };
77
78...
79