GNU Linux-libre 6.1.90-gnu
[releases.git] / Documentation / devicetree / bindings / sound / socionext,uniphier-evea.yaml
1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/sound/socionext,uniphier-evea.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: UniPhier EVEA SoC-internal sound codec
8
9 maintainers:
10   - <alsa-devel@alsa-project.org>
11
12 properties:
13   compatible:
14     const: socionext,uniphier-evea
15
16   reg:
17     maxItems: 1
18
19   clock-names:
20     items:
21       - const: evea
22       - const: exiv
23
24   clocks:
25     minItems: 2
26     maxItems: 2
27
28   reset-names:
29     items:
30       - const: evea
31       - const: exiv
32       - const: adamv
33
34   resets:
35     minItems: 3
36     maxItems: 3
37
38   "#sound-dai-cells":
39     const: 1
40
41 patternProperties:
42   "^port@[0-9]$":
43     description: |
44       Port number of DT node is specified by the following DAI channels.
45         0: line1
46         1: hp
47         2: line2
48     $ref: audio-graph-port.yaml#
49     unevaluatedProperties: false
50
51 additionalProperties: false
52
53 required:
54   - compatible
55   - reg
56   - clock-names
57   - clocks
58   - reset-names
59   - resets
60   - "#sound-dai-cells"
61
62 examples:
63   - |
64     codec@57900000 {
65         compatible = "socionext,uniphier-evea";
66         reg = <0x57900000 0x1000>;
67         clock-names = "evea", "exiv";
68         clocks = <&sys_clk 41>, <&sys_clk 42>;
69         reset-names = "evea", "exiv", "adamv";
70         resets = <&sys_rst 41>, <&sys_rst 42>, <&adamv_rst 0>;
71         #sound-dai-cells = <1>;
72     };