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 26f516fb70SRob Herring - const: amlogic,aiu 2706b72824SJerome Brunet 2806b72824SJerome Brunet clocks: 2906b72824SJerome Brunet items: 3006b72824SJerome Brunet - description: AIU peripheral clock 3106b72824SJerome Brunet - description: I2S peripheral clock 3206b72824SJerome Brunet - description: I2S output clock 3306b72824SJerome Brunet - description: I2S master clock 3406b72824SJerome Brunet - description: I2S mixer clock 3506b72824SJerome Brunet - description: SPDIF peripheral clock 3606b72824SJerome Brunet - description: SPDIF output clock 3706b72824SJerome Brunet - description: SPDIF master clock 3806b72824SJerome Brunet - description: SPDIF master clock multiplexer 3906b72824SJerome Brunet 4006b72824SJerome Brunet clock-names: 4106b72824SJerome Brunet items: 4206b72824SJerome Brunet - const: pclk 4306b72824SJerome Brunet - const: i2s_pclk 4406b72824SJerome Brunet - const: i2s_aoclk 4506b72824SJerome Brunet - const: i2s_mclk 4606b72824SJerome Brunet - const: i2s_mixer 4706b72824SJerome Brunet - const: spdif_pclk 4806b72824SJerome Brunet - const: spdif_aoclk 4906b72824SJerome Brunet - const: spdif_mclk 5006b72824SJerome Brunet - const: spdif_mclk_sel 5106b72824SJerome Brunet 5206b72824SJerome Brunet interrupts: 5306b72824SJerome Brunet items: 5406b72824SJerome Brunet - description: I2S interrupt line 5506b72824SJerome Brunet - description: SPDIF interrupt line 5606b72824SJerome Brunet 5706b72824SJerome Brunet interrupt-names: 5806b72824SJerome Brunet items: 5906b72824SJerome Brunet - const: i2s 6006b72824SJerome Brunet - const: spdif 6106b72824SJerome Brunet 6206b72824SJerome Brunet reg: 6306b72824SJerome Brunet maxItems: 1 6406b72824SJerome Brunet 6506b72824SJerome Brunet resets: 6606b72824SJerome Brunet maxItems: 1 6706b72824SJerome Brunet 6806b72824SJerome Brunetrequired: 6906b72824SJerome Brunet - "#sound-dai-cells" 7006b72824SJerome Brunet - compatible 7106b72824SJerome Brunet - clocks 7206b72824SJerome Brunet - clock-names 7306b72824SJerome Brunet - interrupts 7406b72824SJerome Brunet - interrupt-names 7506b72824SJerome Brunet - reg 7606b72824SJerome Brunet - resets 7706b72824SJerome Brunet 78*6a0e321eSRob HerringadditionalProperties: false 79*6a0e321eSRob Herring 8006b72824SJerome Brunetexamples: 8106b72824SJerome Brunet - | 8206b72824SJerome Brunet #include <dt-bindings/clock/gxbb-clkc.h> 8306b72824SJerome Brunet #include <dt-bindings/interrupt-controller/irq.h> 8406b72824SJerome Brunet #include <dt-bindings/interrupt-controller/arm-gic.h> 8506b72824SJerome Brunet #include <dt-bindings/reset/amlogic,meson-gxbb-reset.h> 8606b72824SJerome Brunet 8706b72824SJerome Brunet aiu: audio-controller@5400 { 8806b72824SJerome Brunet compatible = "amlogic,aiu-gxl", "amlogic,aiu"; 8906b72824SJerome Brunet #sound-dai-cells = <2>; 90fba56184SRob Herring reg = <0x5400 0x2ac>; 9106b72824SJerome Brunet interrupts = <GIC_SPI 48 IRQ_TYPE_EDGE_RISING>, 9206b72824SJerome Brunet <GIC_SPI 50 IRQ_TYPE_EDGE_RISING>; 9306b72824SJerome Brunet interrupt-names = "i2s", "spdif"; 9406b72824SJerome Brunet clocks = <&clkc CLKID_AIU_GLUE>, 9506b72824SJerome Brunet <&clkc CLKID_I2S_OUT>, 9606b72824SJerome Brunet <&clkc CLKID_AOCLK_GATE>, 9706b72824SJerome Brunet <&clkc CLKID_CTS_AMCLK>, 9806b72824SJerome Brunet <&clkc CLKID_MIXER_IFACE>, 9906b72824SJerome Brunet <&clkc CLKID_IEC958>, 10006b72824SJerome Brunet <&clkc CLKID_IEC958_GATE>, 10106b72824SJerome Brunet <&clkc CLKID_CTS_MCLK_I958>, 10206b72824SJerome Brunet <&clkc CLKID_CTS_I958>; 10306b72824SJerome Brunet clock-names = "pclk", 10406b72824SJerome Brunet "i2s_pclk", 10506b72824SJerome Brunet "i2s_aoclk", 10606b72824SJerome Brunet "i2s_mclk", 10706b72824SJerome Brunet "i2s_mixer", 10806b72824SJerome Brunet "spdif_pclk", 10906b72824SJerome Brunet "spdif_aoclk", 11006b72824SJerome Brunet "spdif_mclk", 11106b72824SJerome Brunet "spdif_mclk_sel"; 11206b72824SJerome Brunet resets = <&reset RESET_AIU>; 11306b72824SJerome Brunet }; 114