arm64: dts: mt8173: Add afe device node
authorKoro Chen <koro.chen@mediatek.com>
Thu, 9 Jul 2015 03:32:05 +0000 (11:32 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 17 Jul 2015 21:54:19 +0000 (23:54 +0200)
This adds afe (audio front end) device node to the MT8173 dtsi file.

Signed-off-by: Koro Chen <koro.chen@mediatek.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8173.dtsi

index 359b8b6..01033df 100644 (file)
@@ -14,6 +14,7 @@
 #include <dt-bindings/clock/mt8173-clk.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/power/mt8173-power.h>
 #include <dt-bindings/reset-controller/mt8173-resets.h>
 #include "mt8173-pinfunc.h"
 
                        #size-cells = <0>;
                        status = "disabled";
                };
+
+               afe: audio-controller@11220000  {
+                       compatible = "mediatek,mt8173-afe-pcm";
+                       reg = <0 0x11220000 0 0x1000>;
+                       interrupts = <GIC_SPI 134 IRQ_TYPE_EDGE_FALLING>;
+                       power-domains = <&scpsys MT8173_POWER_DOMAIN_AUDIO>;
+                       clocks = <&infracfg CLK_INFRA_AUDIO>,
+                                <&topckgen CLK_TOP_AUDIO_SEL>,
+                                <&topckgen CLK_TOP_AUD_INTBUS_SEL>,
+                                <&topckgen CLK_TOP_APLL1_DIV0>,
+                                <&topckgen CLK_TOP_APLL2_DIV0>,
+                                <&topckgen CLK_TOP_I2S0_M_SEL>,
+                                <&topckgen CLK_TOP_I2S1_M_SEL>,
+                                <&topckgen CLK_TOP_I2S2_M_SEL>,
+                                <&topckgen CLK_TOP_I2S3_M_SEL>,
+                                <&topckgen CLK_TOP_I2S3_B_SEL>;
+                       clock-names = "infra_sys_audio_clk",
+                                     "top_pdn_audio",
+                                     "top_pdn_aud_intbus",
+                                     "bck0",
+                                     "bck1",
+                                     "i2s0_m",
+                                     "i2s1_m",
+                                     "i2s2_m",
+                                     "i2s3_m",
+                                     "i2s3_b";
+                       assigned-clocks = <&topckgen CLK_TOP_AUD_1_SEL>,
+                                         <&topckgen CLK_TOP_AUD_2_SEL>;
+                       assigned-clock-parents = <&topckgen CLK_TOP_APLL1>,
+                                                <&topckgen CLK_TOP_APLL2>;
+               };
        };
 };