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
12allOf:
13  - $ref: dai-common.yaml#
14
15properties:
16  compatible:
17    const: socionext,uniphier-evea
18
19  reg:
20    maxItems: 1
21
22  clock-names:
23    items:
24      - const: evea
25      - const: exiv
26
27  clocks:
28    minItems: 2
29    maxItems: 2
30
31  reset-names:
32    items:
33      - const: evea
34      - const: exiv
35      - const: adamv
36
37  resets:
38    minItems: 3
39    maxItems: 3
40
41  "#sound-dai-cells":
42    const: 1
43
44patternProperties:
45  "^port@[0-9]$":
46    description: |
47      Port number of DT node is specified by the following DAI channels.
48        0: line1
49        1: hp
50        2: line2
51    $ref: audio-graph-port.yaml#
52    unevaluatedProperties: false
53
54unevaluatedProperties: false
55
56required:
57  - compatible
58  - reg
59  - clock-names
60  - clocks
61  - reset-names
62  - resets
63  - "#sound-dai-cells"
64
65examples:
66  - |
67    codec@57900000 {
68        compatible = "socionext,uniphier-evea";
69        reg = <0x57900000 0x1000>;
70        clock-names = "evea", "exiv";
71        clocks = <&sys_clk 41>, <&sys_clk 42>;
72        reset-names = "evea", "exiv", "adamv";
73        resets = <&sys_rst 41>, <&sys_rst 42>, <&adamv_rst 0>;
74        #sound-dai-cells = <1>;
75    };
76