0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/display/mediatek/mediatek,cec.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Mediatek HDMI CEC Controller Device Tree Bindings
0008
0009 maintainers:
0010 - CK Hu <ck.hu@mediatek.com>
0011 - Jitao shi <jitao.shi@mediatek.com>
0012
0013 description: |
0014 The HDMI CEC controller handles hotplug detection and CEC communication.
0015
0016 properties:
0017 compatible:
0018 enum:
0019 - mediatek,mt7623-cec
0020 - mediatek,mt8167-cec
0021 - mediatek,mt8173-cec
0022
0023 reg:
0024 maxItems: 1
0025
0026 interrupts:
0027 maxItems: 1
0028
0029 clocks:
0030 maxItems: 1
0031
0032 required:
0033 - compatible
0034 - reg
0035 - interrupts
0036 - clocks
0037
0038 additionalProperties: false
0039
0040 examples:
0041 - |
0042 #include <dt-bindings/clock/mt8173-clk.h>
0043 #include <dt-bindings/interrupt-controller/arm-gic.h>
0044 #include <dt-bindings/interrupt-controller/irq.h>
0045 cec: cec@10013000 {
0046 compatible = "mediatek,mt8173-cec";
0047 reg = <0x10013000 0xbc>;
0048 interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_LOW>;
0049 clocks = <&infracfg CLK_INFRA_CEC>;
0050 };
0051
0052 ...