xref: /linux/Documentation/devicetree/bindings/sound/amlogic,aiu.yaml (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
106b72824SJerome Brunet# SPDX-License-Identifier: GPL-2.0
206b72824SJerome Brunet%YAML 1.2
306b72824SJerome Brunet---
406b72824SJerome Brunet$id: http://devicetree.org/schemas/sound/amlogic,aiu.yaml#
506b72824SJerome Brunet$schema: http://devicetree.org/meta-schemas/core.yaml#
606b72824SJerome Brunet
706b72824SJerome Brunettitle: Amlogic AIU audio output controller
806b72824SJerome Brunet
906b72824SJerome Brunetmaintainers:
1006b72824SJerome Brunet  - Jerome Brunet <jbrunet@baylibre.com>
1106b72824SJerome Brunet
12559ec82aSAlexander SteinallOf:
13*3fda8532SKrzysztof Kozlowski  - $ref: dai-common.yaml#
14559ec82aSAlexander Stein
1506b72824SJerome Brunetproperties:
1606b72824SJerome Brunet  $nodename:
1706b72824SJerome Brunet    pattern: "^audio-controller@.*"
1806b72824SJerome Brunet
1906b72824SJerome Brunet  "#sound-dai-cells":
2006b72824SJerome Brunet    const: 2
2106b72824SJerome Brunet
2206b72824SJerome Brunet  compatible:
2306b72824SJerome Brunet    items:
2406b72824SJerome Brunet      - enum:
2506b72824SJerome Brunet          - amlogic,aiu-gxbb
2606b72824SJerome Brunet          - amlogic,aiu-gxl
2762209c9aSMartin Blumenstingl          - amlogic,aiu-meson8
2862209c9aSMartin Blumenstingl          - amlogic,aiu-meson8b
29f516fb70SRob Herring      - const: amlogic,aiu
3006b72824SJerome Brunet
3106b72824SJerome Brunet  clocks:
3206b72824SJerome Brunet    items:
3306b72824SJerome Brunet      - description: AIU peripheral clock
3406b72824SJerome Brunet      - description: I2S peripheral clock
3506b72824SJerome Brunet      - description: I2S output clock
3606b72824SJerome Brunet      - description: I2S master clock
3706b72824SJerome Brunet      - description: I2S mixer clock
3806b72824SJerome Brunet      - description: SPDIF peripheral clock
3906b72824SJerome Brunet      - description: SPDIF output clock
4006b72824SJerome Brunet      - description: SPDIF master clock
4106b72824SJerome Brunet      - description: SPDIF master clock multiplexer
4206b72824SJerome Brunet
4306b72824SJerome Brunet  clock-names:
4406b72824SJerome Brunet    items:
4506b72824SJerome Brunet      - const: pclk
4606b72824SJerome Brunet      - const: i2s_pclk
4706b72824SJerome Brunet      - const: i2s_aoclk
4806b72824SJerome Brunet      - const: i2s_mclk
4906b72824SJerome Brunet      - const: i2s_mixer
5006b72824SJerome Brunet      - const: spdif_pclk
5106b72824SJerome Brunet      - const: spdif_aoclk
5206b72824SJerome Brunet      - const: spdif_mclk
5306b72824SJerome Brunet      - const: spdif_mclk_sel
5406b72824SJerome Brunet
5506b72824SJerome Brunet  interrupts:
5606b72824SJerome Brunet    items:
5706b72824SJerome Brunet      - description: I2S interrupt line
5806b72824SJerome Brunet      - description: SPDIF interrupt line
5906b72824SJerome Brunet
6006b72824SJerome Brunet  interrupt-names:
6106b72824SJerome Brunet    items:
6206b72824SJerome Brunet      - const: i2s
6306b72824SJerome Brunet      - const: spdif
6406b72824SJerome Brunet
6506b72824SJerome Brunet  reg:
6606b72824SJerome Brunet    maxItems: 1
6706b72824SJerome Brunet
6806b72824SJerome Brunet  resets:
6906b72824SJerome Brunet    maxItems: 1
7006b72824SJerome Brunet
71559ec82aSAlexander Stein  sound-name-prefix: true
72559ec82aSAlexander Stein
7306b72824SJerome Brunetrequired:
7406b72824SJerome Brunet  - "#sound-dai-cells"
7506b72824SJerome Brunet  - compatible
7606b72824SJerome Brunet  - clocks
7706b72824SJerome Brunet  - clock-names
7806b72824SJerome Brunet  - interrupts
7906b72824SJerome Brunet  - interrupt-names
8006b72824SJerome Brunet  - reg
8106b72824SJerome Brunet  - resets
8206b72824SJerome Brunet
836a0e321eSRob HerringadditionalProperties: false
846a0e321eSRob Herring
8506b72824SJerome Brunetexamples:
8606b72824SJerome Brunet  - |
8706b72824SJerome Brunet    #include <dt-bindings/clock/gxbb-clkc.h>
8806b72824SJerome Brunet    #include <dt-bindings/interrupt-controller/irq.h>
8906b72824SJerome Brunet    #include <dt-bindings/interrupt-controller/arm-gic.h>
9006b72824SJerome Brunet    #include <dt-bindings/reset/amlogic,meson-gxbb-reset.h>
9106b72824SJerome Brunet
9206b72824SJerome Brunet    aiu: audio-controller@5400 {
9306b72824SJerome Brunet        compatible = "amlogic,aiu-gxl", "amlogic,aiu";
9406b72824SJerome Brunet        #sound-dai-cells = <2>;
95fba56184SRob Herring        reg = <0x5400 0x2ac>;
9606b72824SJerome Brunet        interrupts = <GIC_SPI 48 IRQ_TYPE_EDGE_RISING>,
9706b72824SJerome Brunet                     <GIC_SPI 50 IRQ_TYPE_EDGE_RISING>;
9806b72824SJerome Brunet        interrupt-names = "i2s", "spdif";
9906b72824SJerome Brunet        clocks = <&clkc CLKID_AIU_GLUE>,
10006b72824SJerome Brunet                 <&clkc CLKID_I2S_OUT>,
10106b72824SJerome Brunet                 <&clkc CLKID_AOCLK_GATE>,
10206b72824SJerome Brunet                 <&clkc CLKID_CTS_AMCLK>,
10306b72824SJerome Brunet                 <&clkc CLKID_MIXER_IFACE>,
10406b72824SJerome Brunet                 <&clkc CLKID_IEC958>,
10506b72824SJerome Brunet                 <&clkc CLKID_IEC958_GATE>,
10606b72824SJerome Brunet                 <&clkc CLKID_CTS_MCLK_I958>,
10706b72824SJerome Brunet                 <&clkc CLKID_CTS_I958>;
10806b72824SJerome Brunet        clock-names = "pclk",
10906b72824SJerome Brunet                      "i2s_pclk",
11006b72824SJerome Brunet                      "i2s_aoclk",
11106b72824SJerome Brunet                      "i2s_mclk",
11206b72824SJerome Brunet                      "i2s_mixer",
11306b72824SJerome Brunet                      "spdif_pclk",
11406b72824SJerome Brunet                      "spdif_aoclk",
11506b72824SJerome Brunet                      "spdif_mclk",
11606b72824SJerome Brunet                      "spdif_mclk_sel";
11706b72824SJerome Brunet        resets = <&reset RESET_AIU>;
11806b72824SJerome Brunet    };
119