sunxi: initial 3.14 patchset
[openwrt.git] / target / linux / sunxi / patches-3.14 / 216-dt-sun7i-add-i2c-to-cubietruck.patch
1 From 6267355f0e513bed9a5009924abc7a1e7de22ab3 Mon Sep 17 00:00:00 2001
2 From: Chen-Yu Tsai <wens@csie.org>
3 Date: Mon, 6 Jan 2014 13:58:12 +0800
4 Subject: [PATCH] arm: sun7i: cubietruck: Enable the i2c controllers
5
6 The Cubietruck makes use of the first three i2c controllers found on the
7 Allwinner A20; i2c-0 is used internally for the PMIC, i2c-1 is exposed on
8 the board headers, and i2c-2 is used for DDC on the VGA connector. This
9 patch enables them in the device tree.
10
11 Signed-off-by: Chen-Yu Tsai <wens@csie.org>
12 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
13 ---
14  arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 18 ++++++++++++++++++
15  1 file changed, 18 insertions(+)
16
17 diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
18 index 8a1009d..f9dcb61 100644
19 --- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
20 +++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
21 @@ -33,6 +33,24 @@
22                         pinctrl-0 = <&uart0_pins_a>;
23                         status = "okay";
24                 };
25 +
26 +               i2c0: i2c@01c2ac00 {
27 +                       pinctrl-names = "default";
28 +                       pinctrl-0 = <&i2c0_pins_a>;
29 +                       status = "okay";
30 +               };
31 +
32 +               i2c1: i2c@01c2b000 {
33 +                       pinctrl-names = "default";
34 +                       pinctrl-0 = <&i2c1_pins_a>;
35 +                       status = "okay";
36 +               };
37 +
38 +               i2c2: i2c@01c2b400 {
39 +                       pinctrl-names = "default";
40 +                       pinctrl-0 = <&i2c2_pins_a>;
41 +                       status = "okay";
42 +               };
43         };
44  
45         leds {
46 -- 
47 2.0.3
48