kernel: update 4.1 to 4.1.5
[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 --- a/arch/arm/boot/dts/sun7i-a20.dtsi
15 +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
16 @@ -1182,6 +1182,18 @@
17                         status = "disabled";
18                 };
19  
20 +               codec: codec@01c22c00 {
21 +                       #sound-dai-cells = <0>;
22 +                       compatible = "allwinner,sun7i-a20-codec";
23 +                       reg = <0x01c22c00 0x40>;
24 +                       interrupts = <0 30 4>;
25 +                       clocks = <&apb0_gates 0>, <&codec_clk>;
26 +                       clock-names = "apb", "codec";
27 +                       dmas = <&dma 0 19>, <&dma 0 19>;
28 +                       dma-names = "rx", "tx";
29 +                       status = "disabled";
30 +               };
31 +
32                 sid: eeprom@01c23800 {
33                         compatible = "allwinner,sun7i-a20-sid";
34                         reg = <0x01c23800 0x200>;