xref: /freebsd/sys/contrib/device-tree/Bindings/sound/socionext,uniphier-aio.yaml (revision ec0ea6efa1ad229d75c394c1a9b9cac33af2b1d3)
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-aio.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: UniPhier AIO audio system
8
9maintainers:
10  - <alsa-devel@alsa-project.org>
11
12properties:
13  compatible:
14    enum:
15      - socionext,uniphier-ld11-aio
16      - socionext,uniphier-ld20-aio
17      - socionext,uniphier-pxs2-aio
18
19  reg:
20    maxItems: 1
21
22  interrupts:
23    maxItems: 1
24
25  clock-names:
26    const: aio
27
28  clocks:
29    maxItems: 1
30
31  reset-names:
32    const: aio
33
34  resets:
35    maxItems: 1
36
37  socionext,syscon:
38    description: |
39      Specifies a phandle to soc-glue, which is used for changing mode of S/PDIF
40      signal pin to output from Hi-Z. This property is optional if you use I2S
41      signal pins only.
42    $ref: "/schemas/types.yaml#/definitions/phandle"
43
44  "#sound-dai-cells":
45    const: 1
46
47patternProperties:
48  "^port@[0-9]$":
49    description: FIXME, Need to define what each port is.
50    $ref: audio-graph-port.yaml#
51    unevaluatedProperties: false
52
53additionalProperties: false
54
55required:
56  - compatible
57  - reg
58  - interrupts
59  - clock-names
60  - clocks
61  - reset-names
62  - resets
63  - "#sound-dai-cells"
64
65examples:
66  - |
67    audio@56000000 {
68        compatible = "socionext,uniphier-ld20-aio";
69        reg = <0x56000000 0x80000>;
70        interrupts = <0 144 4>;
71        pinctrl-names = "default";
72        pinctrl-0 = <&pinctrl_aout>;
73        clock-names = "aio";
74        clocks = <&sys_clk 40>;
75        reset-names = "aio";
76        resets = <&sys_rst 40>;
77        #sound-dai-cells = <1>;
78        socionext,syscon = <&soc_glue>;
79    };
80