]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - Bindings/media/amlogic,meson-gx-ao-cec.yaml
DTS: Update the device-tree files to Linux 5.5
[FreeBSD/FreeBSD.git] / Bindings / media / amlogic,meson-gx-ao-cec.yaml
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 # Copyright 2019 BayLibre, SAS
3 %YAML 1.2
4 ---
5 $id: "http://devicetree.org/schemas/media/amlogic,meson-gx-ao-cec.yaml#"
6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
7
8 title: Amlogic Meson AO-CEC Controller
9
10 maintainers:
11   - Neil Armstrong <narmstrong@baylibre.com>
12
13 description: |
14   The Amlogic Meson AO-CEC module is present is Amlogic SoCs and its purpose is
15   to handle communication between HDMI connected devices over the CEC bus.
16
17 properties:
18   compatible:
19     enum:
20       - amlogic,meson-gx-ao-cec # GXBB, GXL, GXM, G12A and SM1 AO_CEC_A module
21       - amlogic,meson-g12a-ao-cec # G12A AO_CEC_B module
22       - amlogic,meson-sm1-ao-cec # SM1 AO_CEC_B module
23
24   reg:
25     maxItems: 1
26
27   interrupts:
28     maxItems: 1
29
30   hdmi-phandle:
31     description: phandle to the HDMI controller
32     allOf:
33       - $ref: /schemas/types.yaml#/definitions/phandle
34
35 allOf:
36   - if:
37       properties:
38         compatible:
39           contains:
40             enum:
41               - amlogic,meson-gx-ao-cec
42
43     then:
44       properties:
45         clocks:
46           items:
47             - description: AO-CEC clock
48
49         clock-names:
50           maxItems: 1
51           items:
52             - const: core
53
54   - if:
55       properties:
56         compatible:
57           contains:
58             enum:
59               - amlogic,meson-g12a-ao-cec
60               - amlogic,meson-sm1-ao-cec
61
62     then:
63       properties:
64         clocks:
65           items:
66             - description: AO-CEC clock generator source
67
68         clock-names:
69           maxItems: 1
70           items:
71             - const: oscin
72
73 required:
74   - compatible
75   - reg
76   - interrupts
77   - hdmi-phandle
78   - clocks
79   - clock-names
80
81 examples:
82   - |
83     cec_AO: cec@100 {
84         compatible = "amlogic,meson-gx-ao-cec";
85         reg = <0x0 0x00100 0x0 0x14>;
86         interrupts = <199>;
87         clocks = <&clkc_cec>;
88         clock-names = "core";
89         hdmi-phandle = <&hdmi_tx>;
90     };
91