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