xref: /linux/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-ir.yaml (revision 8a922b7728a93d837954315c98b84f6b78de0c4f)
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
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      - const: allwinner,sun6i-a31-ir
22      - items:
23          - enum:
24              - allwinner,suniv-f1c100s-ir
25              - allwinner,sun8i-a83t-ir
26              - allwinner,sun8i-r40-ir
27              - allwinner,sun50i-a64-ir
28              - allwinner,sun50i-h6-ir
29              - allwinner,sun50i-h616-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