ARM: dts: sun6i: Add audio codec device node
authorChen-Yu Tsai <wens@csie.org>
Mon, 7 Nov 2016 10:07:01 +0000 (18:07 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 22 Nov 2016 14:34:03 +0000 (15:34 +0100)
The A31 SoC includes the Allwinner audio codec, capable of 24-bit
playback up to 192 kHz and 24-bit capture up to 48 kHz.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun6i-a31.dtsi

index 2e8bf93dcfb23047a17c6ad3b9890aebfc9385e2..ef24669234a05d5216195cba836399dc9a62e759 100644 (file)
                        reset-names = "ahb";
                };
 
+               codec: codec@01c22c00 {
+                       #sound-dai-cells = <0>;
+                       compatible = "allwinner,sun6i-a31-codec";
+                       reg = <0x01c22c00 0x400>;
+                       interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&ccu CLK_APB1_CODEC>, <&ccu CLK_CODEC>;
+                       clock-names = "apb", "codec";
+                       resets = <&ccu RST_APB1_CODEC>;
+                       dmas = <&dma 15>, <&dma 15>;
+                       dma-names = "rx", "tx";
+                       status = "disabled";
+               };
+
                timer@01c60000 {
                        compatible = "allwinner,sun6i-a31-hstimer",
                                     "allwinner,sun7i-a20-hstimer";