xref: /freebsd/sys/contrib/device-tree/Bindings/media/cec/st,stih-cec.yaml (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/cec/st,stih-cec.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: STMicroelectronics STIH4xx HDMI CEC
8
9maintainers:
10  - Alain Volmat <alain.volmat@foss.st.com>
11
12allOf:
13  - $ref: cec-common.yaml#
14
15properties:
16  compatible:
17    const: st,stih-cec
18
19  clocks:
20    maxItems: 1
21
22  clock-names:
23    items:
24      - const: cec-clk
25
26  interrupts:
27    maxItems: 1
28
29  interrupt-names:
30    items:
31      - const: cec-irq
32
33  resets:
34    maxItems: 1
35
36  reg:
37    maxItems: 1
38
39required:
40  - compatible
41  - clocks
42  - hdmi-phandle
43  - interrupts
44  - resets
45  - reg
46
47unevaluatedProperties: false
48
49examples:
50  - |
51    #include <dt-bindings/interrupt-controller/arm-gic.h>
52    #include <dt-bindings/reset/stih407-resets.h>
53
54    cec@94a087c {
55        compatible = "st,stih-cec";
56        reg = <0x94a087c 0x64>;
57
58        clocks = <&clk_sysin>;
59        clock-names = "cec-clk";
60        hdmi-phandle = <&sti_hdmi>;
61        interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
62        interrupt-names = "cec-irq";
63        pinctrl-names = "default";
64        pinctrl-0 = <&pinctrl_cec0_default>;
65        resets = <&softreset STIH407_LPM_SOFTRESET>;
66    };
67