sunxi: add support for 4.1
[openwrt.git] / target / linux / sunxi / patches-4.1 / 167-4-dt-sun7i-add-codec-to-cubietruck.patch
1 From 42ac277ad129cf69d5540938c943f6291a7a9898 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:10:05 -0300
4 Subject: [PATCH] ARM: sun7i: dt: enable audio codec on Cubietruck
5
6 This commit enables the on-chip audio codec present on the A20 SoC
7 and outlines the SoC to connector routes for the Cubietruck.
8
9 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
10 ---
11  arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 7 +++++++
12  1 file changed, 7 insertions(+)
13
14 diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
15 index 4611e2f..d05e06d 100644
16 --- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
17 +++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
18 @@ -105,6 +105,13 @@
19         status = "okay";
20  };
21  
22 +&codec {
23 +       routing =
24 +               "Headphone Jack", "HP Left",
25 +               "Headphone Jack", "HP Right";
26 +       status = "okay";
27 +};
28 +
29  &cpu0 {
30         cpu-supply = <&reg_dcdc2>;
31  };