xref: /freebsd/sys/contrib/device-tree/Bindings/display/mediatek/mediatek,cec.yaml (revision 3a3af6b2a160bea72509a9d5ef84e25906b0478a)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/mediatek/mediatek,cec.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Mediatek HDMI CEC Controller Device Tree Bindings
8
9maintainers:
10  - CK Hu <ck.hu@mediatek.com>
11  - Jitao shi <jitao.shi@mediatek.com>
12
13description: |
14  The HDMI CEC controller handles hotplug detection and CEC communication.
15
16properties:
17  compatible:
18    enum:
19      - mediatek,mt7623-cec
20      - mediatek,mt8167-cec
21      - mediatek,mt8173-cec
22
23  reg:
24    maxItems: 1
25
26  interrupts:
27    maxItems: 1
28
29  clocks:
30    maxItems: 1
31
32required:
33  - compatible
34  - reg
35  - interrupts
36  - clocks
37
38additionalProperties: false
39
40examples:
41  - |
42    #include <dt-bindings/clock/mt8173-clk.h>
43    #include <dt-bindings/interrupt-controller/arm-gic.h>
44    #include <dt-bindings/interrupt-controller/irq.h>
45    cec: cec@10013000 {
46        compatible = "mediatek,mt8173-cec";
47        reg = <0x10013000 0xbc>;
48        interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_LOW>;
49        clocks = <&infracfg CLK_INFRA_CEC>;
50    };
51
52...
53