xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/media/amlogic,meson-gx-ao-cec.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*4882a593Smuzhiyun# Copyright 2019 BayLibre, SAS
3*4882a593Smuzhiyun%YAML 1.2
4*4882a593Smuzhiyun---
5*4882a593Smuzhiyun$id: "http://devicetree.org/schemas/media/amlogic,meson-gx-ao-cec.yaml#"
6*4882a593Smuzhiyun$schema: "http://devicetree.org/meta-schemas/core.yaml#"
7*4882a593Smuzhiyun
8*4882a593Smuzhiyuntitle: Amlogic Meson AO-CEC Controller
9*4882a593Smuzhiyun
10*4882a593Smuzhiyunmaintainers:
11*4882a593Smuzhiyun  - Neil Armstrong <narmstrong@baylibre.com>
12*4882a593Smuzhiyun
13*4882a593Smuzhiyundescription: |
14*4882a593Smuzhiyun  The Amlogic Meson AO-CEC module is present is Amlogic SoCs and its purpose is
15*4882a593Smuzhiyun  to handle communication between HDMI connected devices over the CEC bus.
16*4882a593Smuzhiyun
17*4882a593Smuzhiyunproperties:
18*4882a593Smuzhiyun  compatible:
19*4882a593Smuzhiyun    enum:
20*4882a593Smuzhiyun      - amlogic,meson-gx-ao-cec # GXBB, GXL, GXM, G12A and SM1 AO_CEC_A module
21*4882a593Smuzhiyun      - amlogic,meson-g12a-ao-cec # G12A AO_CEC_B module
22*4882a593Smuzhiyun      - amlogic,meson-sm1-ao-cec # SM1 AO_CEC_B module
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun  reg:
25*4882a593Smuzhiyun    maxItems: 1
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun  clocks:
28*4882a593Smuzhiyun    maxItems: 1
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun  clock-names:
31*4882a593Smuzhiyun    maxItems: 1
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun  interrupts:
34*4882a593Smuzhiyun    maxItems: 1
35*4882a593Smuzhiyun
36*4882a593Smuzhiyun  hdmi-phandle:
37*4882a593Smuzhiyun    description: phandle to the HDMI controller
38*4882a593Smuzhiyun    $ref: /schemas/types.yaml#/definitions/phandle
39*4882a593Smuzhiyun
40*4882a593SmuzhiyunallOf:
41*4882a593Smuzhiyun  - if:
42*4882a593Smuzhiyun      properties:
43*4882a593Smuzhiyun        compatible:
44*4882a593Smuzhiyun          contains:
45*4882a593Smuzhiyun            enum:
46*4882a593Smuzhiyun              - amlogic,meson-gx-ao-cec
47*4882a593Smuzhiyun
48*4882a593Smuzhiyun    then:
49*4882a593Smuzhiyun      properties:
50*4882a593Smuzhiyun        clocks:
51*4882a593Smuzhiyun          items:
52*4882a593Smuzhiyun            - description: AO-CEC clock
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun        clock-names:
55*4882a593Smuzhiyun          items:
56*4882a593Smuzhiyun            - const: core
57*4882a593Smuzhiyun
58*4882a593Smuzhiyun  - if:
59*4882a593Smuzhiyun      properties:
60*4882a593Smuzhiyun        compatible:
61*4882a593Smuzhiyun          contains:
62*4882a593Smuzhiyun            enum:
63*4882a593Smuzhiyun              - amlogic,meson-g12a-ao-cec
64*4882a593Smuzhiyun              - amlogic,meson-sm1-ao-cec
65*4882a593Smuzhiyun
66*4882a593Smuzhiyun    then:
67*4882a593Smuzhiyun      properties:
68*4882a593Smuzhiyun        clocks:
69*4882a593Smuzhiyun          items:
70*4882a593Smuzhiyun            - description: AO-CEC clock generator source
71*4882a593Smuzhiyun
72*4882a593Smuzhiyun        clock-names:
73*4882a593Smuzhiyun          items:
74*4882a593Smuzhiyun            - const: oscin
75*4882a593Smuzhiyun
76*4882a593Smuzhiyunrequired:
77*4882a593Smuzhiyun  - compatible
78*4882a593Smuzhiyun  - reg
79*4882a593Smuzhiyun  - interrupts
80*4882a593Smuzhiyun  - hdmi-phandle
81*4882a593Smuzhiyun  - clocks
82*4882a593Smuzhiyun  - clock-names
83*4882a593Smuzhiyun
84*4882a593SmuzhiyunadditionalProperties: false
85*4882a593Smuzhiyun
86*4882a593Smuzhiyunexamples:
87*4882a593Smuzhiyun  - |
88*4882a593Smuzhiyun    cec_AO: cec@100 {
89*4882a593Smuzhiyun        compatible = "amlogic,meson-gx-ao-cec";
90*4882a593Smuzhiyun        reg = <0x00100 0x14>;
91*4882a593Smuzhiyun        interrupts = <199>;
92*4882a593Smuzhiyun        clocks = <&clkc_cec>;
93*4882a593Smuzhiyun        clock-names = "core";
94*4882a593Smuzhiyun        hdmi-phandle = <&hdmi_tx>;
95*4882a593Smuzhiyun    };
96