xref: /freebsd/sys/contrib/device-tree/Bindings/media/st,stm32-cec.yaml (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/st,stm32-cec.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: STMicroelectronics STM32 CEC bindings
8
9maintainers:
10  - Benjamin Gaignard <benjamin.gaignard@st.com>
11  - Yannick Fertre <yannick.fertre@st.com>
12
13properties:
14  compatible:
15    const: st,stm32-cec
16
17  reg:
18    maxItems: 1
19
20  interrupts:
21    maxItems: 1
22
23  clocks:
24    items:
25      - description: Module Clock
26      - description: Bus Clock
27
28  clock-names:
29    items:
30      - const: cec
31      - const: hdmi-cec
32
33required:
34  - compatible
35  - reg
36  - interrupts
37  - clocks
38  - clock-names
39
40additionalProperties: false
41
42examples:
43  - |
44    #include <dt-bindings/interrupt-controller/arm-gic.h>
45    #include <dt-bindings/clock/stm32mp1-clks.h>
46    cec: cec@40006c00 {
47        compatible = "st,stm32-cec";
48        reg = <0x40006c00 0x400>;
49        interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
50        clocks = <&rcc CEC_K>, <&clk_lse>;
51        clock-names = "cec", "hdmi-cec";
52    };
53
54...
55