summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/media/cec/samsung,s5p-cec.yaml
blob: 016c8a77c1a62846a1fc2bc04eaab5b80f9e1ff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/cec/samsung,s5p-cec.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Samsung S5PV210 and Exynos HDMI CEC

maintainers:
  - Krzysztof Kozlowski <krzk@kernel.org>
  - Marek Szyprowski <m.szyprowski@samsung.com>

allOf:
  - $ref: cec-common.yaml#

properties:
  compatible:
    const: samsung,s5p-cec

  clocks:
    maxItems: 1

  clock-names:
    items:
      - const: hdmicec

  interrupts:
    maxItems: 1

  samsung,syscon-phandle:
    $ref: /schemas/types.yaml#/definitions/phandle
    description:
      Phandle to PMU system controller interface

  reg:
    maxItems: 1

required:
  - compatible
  - clocks
  - clock-names
  - hdmi-phandle
  - interrupts
  - samsung,syscon-phandle
  - reg

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/exynos5420.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>

    cec@101b0000 {
        compatible = "samsung,s5p-cec";
        reg = <0x101B0000 0x200>;

        clocks = <&clock CLK_HDMI_CEC>;
        clock-names = "hdmicec";
        interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
        hdmi-phandle = <&hdmi>;
        needs-hpd;
        pinctrl-names = "default";
        pinctrl-0 = <&hdmi_cec>;
        samsung,syscon-phandle = <&pmu_system_controller>;
    };