dt-bindings: Whitespace clean-ups in schema files
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / sound / amlogic,g12a-toacodec.yaml
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/sound/amlogic,g12a-toacodec.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Amlogic G12a Internal DAC Control Glue
8
9 maintainers:
10   - Jerome Brunet <jbrunet@baylibre.com>
11
12 properties:
13   $nodename:
14     pattern: "^audio-controller@.*"
15
16   "#sound-dai-cells":
17     const: 1
18
19   compatible:
20     oneOf:
21       - items:
22           - const: amlogic,g12a-toacodec
23       - items:
24           - enum:
25               - amlogic,sm1-toacodec
26           - const: amlogic,g12a-toacodec
27
28   reg:
29     maxItems: 1
30
31   resets:
32     maxItems: 1
33
34 required:
35   - "#sound-dai-cells"
36   - compatible
37   - reg
38   - resets
39
40 examples:
41   - |
42     #include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h>
43
44     toacodec: audio-controller@740 {
45         compatible = "amlogic,g12a-toacodec";
46         reg = <0x740 0x4>;
47         #sound-dai-cells = <1>;
48         resets = <&clkc_audio AUD_RESET_TOACODEC>;
49     };