sunxi: add support for 4.1
[openwrt.git] / target / linux / sunxi / patches-4.1 / 167-1-dt-sun7i-add-codec-node.patch
1 From ca3f125c08bab943572a15ac3a52f33f132cf77f Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= <elopez93@gmail.com>
3 Date: Mon, 18 Aug 2014 01:07:55 -0300
4 Subject: [PATCH] ARM: sun7i: dt: Add sunxi codec device node
5
6 The A20 SoC includes the Allwinner audio codec, capable of both 24-bit
7 playback and capture. This commit adds a device node for it.
8
9 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
10 ---
11  arch/arm/boot/dts/sun7i-a20.dtsi | 12 ++++++++++++
12  1 file changed, 12 insertions(+)
13
14 diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
15 index 1cced70..a99bbae 100644
16 --- a/arch/arm/boot/dts/sun7i-a20.dtsi
17 +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
18 @@ -1214,6 +1214,18 @@
19                         status = "disabled";
20                 };
21  
22 +               codec: codec@01c22c00 {
23 +                       #sound-dai-cells = <0>;
24 +                       compatible = "allwinner,sun7i-a20-codec";
25 +                       reg = <0x01c22c00 0x40>;
26 +                       interrupts = <0 30 4>;
27 +                       clocks = <&apb0_gates 0>, <&codec_clk>;
28 +                       clock-names = "apb", "codec";
29 +                       dmas = <&dma 0 19>, <&dma 0 19>;
30 +                       dma-names = "rx", "tx";
31 +                       status = "disabled";
32 +               };
33 +
34                 sid: eeprom@01c23800 {
35                         compatible = "allwinner,sun7i-a20-sid";
36                         reg = <0x01c23800 0x200>;