From 7bd8dcbb1f840fe6d4ae6a1f5f2d3708f09110f9 Mon Sep 17 00:00:00 2001 From: Jerome Brunet Date: Wed, 20 Sep 2017 17:22:47 +0200 Subject: [PATCH 28/39] ARM64: dts: meson-gx: add audio controller nodes Add audio controller nodes for Amlogic meson gxl. This includes the audio-core node, the i2s DAI and i2s aiu DMAs. Audio on this SoC family is still a work in progress. More nodes are likely to be added later on (pcm DAIs, input DMAs, SPDIF etc ...) Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 22 ++++++++++++++++++++++ arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 23 +++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi index f175db8..ff27ce0 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi @@ -224,6 +224,28 @@ #reset-cells = <1>; }; + audio: audio@5400 { + compatible = "amlogic,meson-audio-core"; + reg = <0x0 0x5400 0x0 0x2ac>, + <0x0 0xa000 0x0 0x304>; + reg-names = "aiu", "audin"; + status = "disabled"; + + aiu_i2s_dma: aiu_i2s_dma { + #sound-dai-cells = <0>; + compatible = "amlogic,meson-aiu-i2s-dma"; + interrupts = ; + status = "disabled"; + }; + + i2s_dai: i2s_dai { + #sound-dai-cells = <0>; + compatible = "amlogic,meson-i2s-dai"; + status = "disabled"; + }; + + }; + uart_A: serial@84c0 { compatible = "amlogic,meson-gx-uart", "amlogic,meson-uart"; reg = <0x0 0x84c0 0x0 0x14>; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi index 68ea67a..9d2fb46 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi @@ -691,6 +691,29 @@ }; }; +&audio { + clocks = <&clkc CLKID_AIU>, + <&clkc CLKID_AIU_GLUE>, + <&clkc CLKID_I2S_SPDIF>; + clock-names = "aiu_top", "aiu_glue", "audin"; + resets = <&reset RESET_AIU>, + <&reset RESET_AUDIN>; + reset-names = "aiu", "audin"; +}; + +&aiu_i2s_dma { + clocks = <&clkc CLKID_I2S_OUT>; + clock-names = "fast"; +}; + +&i2s_dai { + clocks = <&clkc CLKID_I2S_OUT>, + <&clkc CLKID_MIXER_IFACE>, + <&clkc CLKID_AOCLK_GATE>, + <&clkc CLKID_CTS_AMCLK>; + clock-names = "fast", "iface", "bclks", "mclk"; +}; + &saradc { compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc"; clocks = <&xtal>, -- 2.7.4