xref: /linux/Documentation/devicetree/bindings/sound/amlogic,aiu.yaml (revision fba5618451d2b3af5e55f8af5ce9c5d3677ad9c4)
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
1206b72824SJerome Brunetproperties:
1306b72824SJerome Brunet  $nodename:
1406b72824SJerome Brunet    pattern: "^audio-controller@.*"
1506b72824SJerome Brunet
1606b72824SJerome Brunet  "#sound-dai-cells":
1706b72824SJerome Brunet    const: 2
1806b72824SJerome Brunet
1906b72824SJerome Brunet  compatible:
2006b72824SJerome Brunet    items:
2106b72824SJerome Brunet      - enum:
2206b72824SJerome Brunet        - amlogic,aiu-gxbb
2306b72824SJerome Brunet        - amlogic,aiu-gxl
2462209c9aSMartin Blumenstingl        - amlogic,aiu-meson8
2562209c9aSMartin Blumenstingl        - amlogic,aiu-meson8b
2606b72824SJerome Brunet      - const:
2706b72824SJerome Brunet          amlogic,aiu
2806b72824SJerome Brunet
2906b72824SJerome Brunet  clocks:
3006b72824SJerome Brunet    items:
3106b72824SJerome Brunet      - description: AIU peripheral clock
3206b72824SJerome Brunet      - description: I2S peripheral clock
3306b72824SJerome Brunet      - description: I2S output clock
3406b72824SJerome Brunet      - description: I2S master clock
3506b72824SJerome Brunet      - description: I2S mixer clock
3606b72824SJerome Brunet      - description: SPDIF peripheral clock
3706b72824SJerome Brunet      - description: SPDIF output clock
3806b72824SJerome Brunet      - description: SPDIF master clock
3906b72824SJerome Brunet      - description: SPDIF master clock multiplexer
4006b72824SJerome Brunet
4106b72824SJerome Brunet  clock-names:
4206b72824SJerome Brunet    items:
4306b72824SJerome Brunet      - const: pclk
4406b72824SJerome Brunet      - const: i2s_pclk
4506b72824SJerome Brunet      - const: i2s_aoclk
4606b72824SJerome Brunet      - const: i2s_mclk
4706b72824SJerome Brunet      - const: i2s_mixer
4806b72824SJerome Brunet      - const: spdif_pclk
4906b72824SJerome Brunet      - const: spdif_aoclk
5006b72824SJerome Brunet      - const: spdif_mclk
5106b72824SJerome Brunet      - const: spdif_mclk_sel
5206b72824SJerome Brunet
5306b72824SJerome Brunet  interrupts:
5406b72824SJerome Brunet    items:
5506b72824SJerome Brunet      - description: I2S interrupt line
5606b72824SJerome Brunet      - description: SPDIF interrupt line
5706b72824SJerome Brunet
5806b72824SJerome Brunet  interrupt-names:
5906b72824SJerome Brunet    items:
6006b72824SJerome Brunet      - const: i2s
6106b72824SJerome Brunet      - const: spdif
6206b72824SJerome Brunet
6306b72824SJerome Brunet  reg:
6406b72824SJerome Brunet    maxItems: 1
6506b72824SJerome Brunet
6606b72824SJerome Brunet  resets:
6706b72824SJerome Brunet    maxItems: 1
6806b72824SJerome Brunet
6906b72824SJerome Brunetrequired:
7006b72824SJerome Brunet  - "#sound-dai-cells"
7106b72824SJerome Brunet  - compatible
7206b72824SJerome Brunet  - clocks
7306b72824SJerome Brunet  - clock-names
7406b72824SJerome Brunet  - interrupts
7506b72824SJerome Brunet  - interrupt-names
7606b72824SJerome Brunet  - reg
7706b72824SJerome Brunet  - resets
7806b72824SJerome Brunet
7906b72824SJerome Brunetexamples:
8006b72824SJerome Brunet  - |
8106b72824SJerome Brunet    #include <dt-bindings/clock/gxbb-clkc.h>
8206b72824SJerome Brunet    #include <dt-bindings/interrupt-controller/irq.h>
8306b72824SJerome Brunet    #include <dt-bindings/interrupt-controller/arm-gic.h>
8406b72824SJerome Brunet    #include <dt-bindings/reset/amlogic,meson-gxbb-reset.h>
8506b72824SJerome Brunet
8606b72824SJerome Brunet    aiu: audio-controller@5400 {
8706b72824SJerome Brunet        compatible = "amlogic,aiu-gxl", "amlogic,aiu";
8806b72824SJerome Brunet        #sound-dai-cells = <2>;
89*fba56184SRob Herring        reg = <0x5400 0x2ac>;
9006b72824SJerome Brunet        interrupts = <GIC_SPI 48 IRQ_TYPE_EDGE_RISING>,
9106b72824SJerome Brunet                     <GIC_SPI 50 IRQ_TYPE_EDGE_RISING>;
9206b72824SJerome Brunet        interrupt-names = "i2s", "spdif";
9306b72824SJerome Brunet        clocks = <&clkc CLKID_AIU_GLUE>,
9406b72824SJerome Brunet                 <&clkc CLKID_I2S_OUT>,
9506b72824SJerome Brunet                 <&clkc CLKID_AOCLK_GATE>,
9606b72824SJerome Brunet                 <&clkc CLKID_CTS_AMCLK>,
9706b72824SJerome Brunet                 <&clkc CLKID_MIXER_IFACE>,
9806b72824SJerome Brunet                 <&clkc CLKID_IEC958>,
9906b72824SJerome Brunet                 <&clkc CLKID_IEC958_GATE>,
10006b72824SJerome Brunet                 <&clkc CLKID_CTS_MCLK_I958>,
10106b72824SJerome Brunet                 <&clkc CLKID_CTS_I958>;
10206b72824SJerome Brunet        clock-names = "pclk",
10306b72824SJerome Brunet                      "i2s_pclk",
10406b72824SJerome Brunet                      "i2s_aoclk",
10506b72824SJerome Brunet                      "i2s_mclk",
10606b72824SJerome Brunet                      "i2s_mixer",
10706b72824SJerome Brunet                      "spdif_pclk",
10806b72824SJerome Brunet                      "spdif_aoclk",
10906b72824SJerome Brunet                      "spdif_mclk",
11006b72824SJerome Brunet                      "spdif_mclk_sel";
11106b72824SJerome Brunet        resets = <&reset RESET_AIU>;
11206b72824SJerome Brunet    };
113