]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: sun8i-a23: Add device node for internal audio codec
authorChen-Yu Tsai <wens@csie.org>
Fri, 25 Nov 2016 12:34:38 +0000 (20:34 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 10 Jan 2017 17:52:51 +0000 (18:52 +0100)
Now that we have a device tree binding and driver for the A23's
internal audio codec, add a device node for it.

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

index 54d045dab825d71119218a3564d6ed437245cdc0..4d1f929780a8df4f831710c74cf6bbd0659c79dc 100644 (file)
@@ -48,6 +48,22 @@ / {
        memory {
                reg = <0x40000000 0x40000000>;
        };
+
+       soc@01c00000 {
+               codec: codec@01c22c00 {
+                       #sound-dai-cells = <0>;
+                       compatible = "allwinner,sun8i-a23-codec";
+                       reg = <0x01c22c00 0x400>;
+                       interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
+                       clock-names = "apb", "codec";
+                       resets = <&ccu RST_BUS_CODEC>;
+                       dmas = <&dma 15>, <&dma 15>;
+                       dma-names = "rx", "tx";
+                       allwinner,codec-analog-controls = <&codec_analog>;
+                       status = "disabled";
+               };
+       };
 };
 
 &ccu {