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/samsung,s5p-cec.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Samsung S5PV210 and Exynos HDMI CEC
8
9maintainers:
10  - Krzysztof Kozlowski <krzk@kernel.org>
11  - Marek Szyprowski <m.szyprowski@samsung.com>
12
13allOf:
14  - $ref: cec-common.yaml#
15
16properties:
17  compatible:
18    const: samsung,s5p-cec
19
20  clocks:
21    maxItems: 1
22
23  clock-names:
24    items:
25      - const: hdmicec
26
27  interrupts:
28    maxItems: 1
29
30  samsung,syscon-phandle:
31    $ref: /schemas/types.yaml#/definitions/phandle
32    description:
33      Phandle to PMU system controller interface
34
35  reg:
36    maxItems: 1
37
38required:
39  - compatible
40  - clocks
41  - clock-names
42  - hdmi-phandle
43  - interrupts
44  - samsung,syscon-phandle
45  - reg
46
47unevaluatedProperties: false
48
49examples:
50  - |
51    #include <dt-bindings/clock/exynos5420.h>
52    #include <dt-bindings/interrupt-controller/arm-gic.h>
53
54    cec@101b0000 {
55        compatible = "samsung,s5p-cec";
56        reg = <0x101B0000 0x200>;
57
58        clocks = <&clock CLK_HDMI_CEC>;
59        clock-names = "hdmicec";
60        interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
61        hdmi-phandle = <&hdmi>;
62        needs-hpd;
63        pinctrl-names = "default";
64        pinctrl-0 = <&hdmi_cec>;
65        samsung,syscon-phandle = <&pmu_system_controller>;
66    };
67