sunxi: rework target - update kernel to 3.12 - add patches for clocks, i2c, usb,...
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.12 / 131-sun7i-add-i2c-pinmuxing.patch
1 From 1baebecc2892567373f5f9c3650d21496125af18 Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime.ripard@free-electrons.com>
3 Date: Sat, 31 Aug 2013 23:08:49 +0200
4 Subject: [PATCH] ARM: sun7i: Add the pin muxing options for the I2C
5 controllers
6
7 The A20 boards we currently have share the same pins for the i2c
8 controllers they share. Add them to the DTSI.
9
10 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
11 ---
12 arch/arm/boot/dts/sun7i-a20.dtsi | 21 +++++++++++++++++++++
13 1 file changed, 21 insertions(+)
14
15 diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
16 index 0d0ee15..a6cd039 100644
17 --- a/arch/arm/boot/dts/sun7i-a20.dtsi
18 +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
19 @@ -226,6 +226,27 @@
20 allwinner,pull = <0>;
21 };
22
23 + i2c0_pins_a: i2c0@0 {
24 + allwinner,pins = "PB0", "PB1";
25 + allwinner,function = "i2c0";
26 + allwinner,drive = <0>;
27 + allwinner,pull = <0>;
28 + };
29 +
30 + i2c1_pins_a: i2c1@0 {
31 + allwinner,pins = "PB18", "PB19";
32 + allwinner,function = "i2c1";
33 + allwinner,drive = <0>;
34 + allwinner,pull = <0>;
35 + };
36 +
37 + i2c2_pins_a: i2c2@0 {
38 + allwinner,pins = "PB20", "PB21";
39 + allwinner,function = "i2c2";
40 + allwinner,drive = <0>;
41 + allwinner,pull = <0>;
42 + };
43 +
44 emac_pins_a: emac0@0 {
45 allwinner,pins = "PA0", "PA1", "PA2",
46 "PA3", "PA4", "PA5", "PA6",
47 --
48 1.8.4
49