xref: /linux/Documentation/devicetree/bindings/display/mediatek/mediatek,cec.yaml (revision 3a2c4d55e32ad65efebdb6de44eef3bfa08bb49d)
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
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    oneOf:
19      - const: mediatek,mt8173-cec
20      - items:
21          - enum:
22              - mediatek,mt7623-cec
23              - mediatek,mt8167-cec
24          - const: mediatek,mt8173-cec
25
26  reg:
27    maxItems: 1
28
29  interrupts:
30    maxItems: 1
31
32  clocks:
33    maxItems: 1
34
35required:
36  - compatible
37  - reg
38  - interrupts
39  - clocks
40
41additionalProperties: false
42
43examples:
44  - |
45    #include <dt-bindings/clock/mt8173-clk.h>
46    #include <dt-bindings/interrupt-controller/arm-gic.h>
47    #include <dt-bindings/interrupt-controller/irq.h>
48    cec: cec@10013000 {
49        compatible = "mediatek,mt8173-cec";
50        reg = <0x10013000 0xbc>;
51        interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_LOW>;
52        clocks = <&infracfg CLK_INFRA_CEC>;
53    };
54
55...
56