xref: /freebsd/sys/contrib/device-tree/Bindings/sound/socionext,uniphier-aio.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
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
128bab661aSEmmanuel VadotallOf:
138bab661aSEmmanuel Vadot  - $ref: dai-common.yaml#
148bab661aSEmmanuel Vadot
15c66ec88fSEmmanuel Vadotproperties:
16c66ec88fSEmmanuel Vadot  compatible:
17c66ec88fSEmmanuel Vadot    enum:
18c66ec88fSEmmanuel Vadot      - socionext,uniphier-ld11-aio
19c66ec88fSEmmanuel Vadot      - socionext,uniphier-ld20-aio
20c66ec88fSEmmanuel Vadot      - socionext,uniphier-pxs2-aio
21c66ec88fSEmmanuel Vadot
22c66ec88fSEmmanuel Vadot  reg:
23c66ec88fSEmmanuel Vadot    maxItems: 1
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadot  interrupts:
26c66ec88fSEmmanuel Vadot    maxItems: 1
27c66ec88fSEmmanuel Vadot
28c66ec88fSEmmanuel Vadot  clock-names:
29c66ec88fSEmmanuel Vadot    const: aio
30c66ec88fSEmmanuel Vadot
31c66ec88fSEmmanuel Vadot  clocks:
32c66ec88fSEmmanuel Vadot    maxItems: 1
33c66ec88fSEmmanuel Vadot
34c66ec88fSEmmanuel Vadot  reset-names:
35c66ec88fSEmmanuel Vadot    const: aio
36c66ec88fSEmmanuel Vadot
37c66ec88fSEmmanuel Vadot  resets:
38c66ec88fSEmmanuel Vadot    maxItems: 1
39c66ec88fSEmmanuel Vadot
40c66ec88fSEmmanuel Vadot  socionext,syscon:
41c66ec88fSEmmanuel Vadot    description: |
42c66ec88fSEmmanuel Vadot      Specifies a phandle to soc-glue, which is used for changing mode of S/PDIF
43c66ec88fSEmmanuel Vadot      signal pin to output from Hi-Z. This property is optional if you use I2S
44c66ec88fSEmmanuel Vadot      signal pins only.
45*fac71e4eSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadot  "#sound-dai-cells":
48c66ec88fSEmmanuel Vadot    const: 1
49c66ec88fSEmmanuel Vadot
50c66ec88fSEmmanuel VadotpatternProperties:
51c66ec88fSEmmanuel Vadot  "^port@[0-9]$":
528cc087a1SEmmanuel Vadot    description: |
538cc087a1SEmmanuel Vadot      Port number of DT node is specified by the following DAI channels that
548cc087a1SEmmanuel Vadot      depends on SoC.
558cc087a1SEmmanuel Vadot      ld11-aio,ld20-aio:
568cc087a1SEmmanuel Vadot        0: hdmi
578cc087a1SEmmanuel Vadot        1: pcmin2
588cc087a1SEmmanuel Vadot        2: line
598cc087a1SEmmanuel Vadot        3: hpcmout1
608cc087a1SEmmanuel Vadot        4: pcmout3
618cc087a1SEmmanuel Vadot        5: hiecout1
628cc087a1SEmmanuel Vadot        6: epcmout2
638cc087a1SEmmanuel Vadot        7: epcmout3
648cc087a1SEmmanuel Vadot        8: hieccompout1
658cc087a1SEmmanuel Vadot      pxs2-aio:
668cc087a1SEmmanuel Vadot        0: hdmi
678cc087a1SEmmanuel Vadot        1: line
688cc087a1SEmmanuel Vadot        2: aux
698cc087a1SEmmanuel Vadot        3: hiecout1
708cc087a1SEmmanuel Vadot        4: iecout1
718cc087a1SEmmanuel Vadot        5: hieccompout1
728cc087a1SEmmanuel Vadot        6: ieccompout1
732eb4d8dcSEmmanuel Vadot    $ref: audio-graph-port.yaml#
742eb4d8dcSEmmanuel Vadot    unevaluatedProperties: false
75c66ec88fSEmmanuel Vadot
768bab661aSEmmanuel VadotunevaluatedProperties: false
77c66ec88fSEmmanuel Vadot
78c66ec88fSEmmanuel Vadotrequired:
79c66ec88fSEmmanuel Vadot  - compatible
80c66ec88fSEmmanuel Vadot  - reg
81c66ec88fSEmmanuel Vadot  - interrupts
82c66ec88fSEmmanuel Vadot  - clock-names
83c66ec88fSEmmanuel Vadot  - clocks
84c66ec88fSEmmanuel Vadot  - reset-names
85c66ec88fSEmmanuel Vadot  - resets
86c66ec88fSEmmanuel Vadot  - "#sound-dai-cells"
87c66ec88fSEmmanuel Vadot
88c66ec88fSEmmanuel Vadotexamples:
89c66ec88fSEmmanuel Vadot  - |
90c66ec88fSEmmanuel Vadot    audio@56000000 {
91c66ec88fSEmmanuel Vadot        compatible = "socionext,uniphier-ld20-aio";
92c66ec88fSEmmanuel Vadot        reg = <0x56000000 0x80000>;
93c66ec88fSEmmanuel Vadot        interrupts = <0 144 4>;
94c66ec88fSEmmanuel Vadot        pinctrl-names = "default";
95c66ec88fSEmmanuel Vadot        pinctrl-0 = <&pinctrl_aout>;
96c66ec88fSEmmanuel Vadot        clock-names = "aio";
97c66ec88fSEmmanuel Vadot        clocks = <&sys_clk 40>;
98c66ec88fSEmmanuel Vadot        reset-names = "aio";
99c66ec88fSEmmanuel Vadot        resets = <&sys_rst 40>;
100c66ec88fSEmmanuel Vadot        #sound-dai-cells = <1>;
101c66ec88fSEmmanuel Vadot        socionext,syscon = <&soc_glue>;
102c66ec88fSEmmanuel Vadot    };
103