gpio: rcar: Fix runtime PM imbalance on error
[linux/fpc-iii.git] / Documentation / devicetree / bindings / media / amlogic,meson-gx-ao-cec.yaml
blob95ffa8bc0533f5d620ab2df72edd48602940b3ec
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 # Copyright 2019 BayLibre, SAS
3 %YAML 1.2
4 ---
5 $id: "http://devicetree.org/schemas/media/amlogic,meson-gx-ao-cec.yaml#"
6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
8 title: Amlogic Meson AO-CEC Controller
10 maintainers:
11   - Neil Armstrong <narmstrong@baylibre.com>
13 description: |
14   The Amlogic Meson AO-CEC module is present is Amlogic SoCs and its purpose is
15   to handle communication between HDMI connected devices over the CEC bus.
17 properties:
18   compatible:
19     enum:
20       - amlogic,meson-gx-ao-cec # GXBB, GXL, GXM, G12A and SM1 AO_CEC_A module
21       - amlogic,meson-g12a-ao-cec # G12A AO_CEC_B module
22       - amlogic,meson-sm1-ao-cec # SM1 AO_CEC_B module
24   reg:
25     maxItems: 1
27   clocks:
28     maxItems: 1
30   clock-names:
31     maxItems: 1
33   interrupts:
34     maxItems: 1
36   hdmi-phandle:
37     description: phandle to the HDMI controller
38     allOf:
39       - $ref: /schemas/types.yaml#/definitions/phandle
41 allOf:
42   - if:
43       properties:
44         compatible:
45           contains:
46             enum:
47               - amlogic,meson-gx-ao-cec
49     then:
50       properties:
51         clocks:
52           items:
53             - description: AO-CEC clock
55         clock-names:
56           items:
57             - const: core
59   - if:
60       properties:
61         compatible:
62           contains:
63             enum:
64               - amlogic,meson-g12a-ao-cec
65               - amlogic,meson-sm1-ao-cec
67     then:
68       properties:
69         clocks:
70           items:
71             - description: AO-CEC clock generator source
73         clock-names:
74           items:
75             - const: oscin
77 required:
78   - compatible
79   - reg
80   - interrupts
81   - hdmi-phandle
82   - clocks
83   - clock-names
85 additionalProperties: false
87 examples:
88   - |
89     cec_AO: cec@100 {
90         compatible = "amlogic,meson-gx-ao-cec";
91         reg = <0x0 0x00100 0x0 0x14>;
92         interrupts = <199>;
93         clocks = <&clkc_cec>;
94         clock-names = "core";
95         hdmi-phandle = <&hdmi_tx>;
96     };