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,hdmi-ddc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Mediatek HDMI DDC Device Tree Bindings
8
9maintainers:
10  - CK Hu <ck.hu@mediatek.com>
11  - Jitao shi <jitao.shi@mediatek.com>
12
13description: |
14  The HDMI DDC i2c controller is used to interface with the HDMI DDC pins.
15
16properties:
17  compatible:
18    enum:
19      - mediatek,mt7623-hdmi-ddc
20      - mediatek,mt8173-hdmi-ddc
21
22  reg:
23    maxItems: 1
24
25  interrupts:
26    maxItems: 1
27
28  clocks:
29    maxItems: 1
30
31  clock-names:
32    items:
33      - const: ddc-i2c
34
35required:
36  - compatible
37  - reg
38  - interrupts
39  - clocks
40  - clock-names
41
42additionalProperties: false
43
44examples:
45  - |
46    #include <dt-bindings/clock/mt8173-clk.h>
47    #include <dt-bindings/interrupt-controller/arm-gic.h>
48    #include <dt-bindings/interrupt-controller/irq.h>
49    hdmi_ddc0: i2c@11012000 {
50        compatible = "mediatek,mt8173-hdmi-ddc";
51        reg = <0x11012000 0x1c>;
52        interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_LOW>;
53        clocks = <&pericfg CLK_PERI_I2C5>;
54        clock-names = "ddc-i2c";
55    };
56
57...
58