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
7title: UniPhier EVEA SoC-internal sound codec
8
9maintainers:
10  - <alsa-devel@alsa-project.org>
11
12properties:
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
41patternProperties:
42  "^port@[0-9]$":
43    description: FIXME, Need to define what each port is.
44    $ref: audio-graph-port.yaml#
45    unevaluatedProperties: false
46
47additionalProperties: false
48
49required:
50  - compatible
51  - reg
52  - clock-names
53  - clocks
54  - reset-names
55  - resets
56  - "#sound-dai-cells"
57
58examples:
59  - |
60    codec@57900000 {
61        compatible = "socionext,uniphier-evea";
62        reg = <0x57900000 0x1000>;
63        clock-names = "evea", "exiv";
64        clocks = <&sys_clk 41>, <&sys_clk 42>;
65        reset-names = "evea", "exiv", "adamv";
66        resets = <&sys_rst 41>, <&sys_rst 42>, <&adamv_rst 0>;
67        #sound-dai-cells = <1>;
68    };
69