2014-08-27 20:09:46 +08:00
|
|
|
From 6267355f0e513bed9a5009924abc7a1e7de22ab3 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Chen-Yu Tsai <wens@csie.org>
|
|
|
|
Date: Mon, 6 Jan 2014 13:58:12 +0800
|
|
|
|
Subject: [PATCH] arm: sun7i: cubietruck: Enable the i2c controllers
|
|
|
|
|
|
|
|
The Cubietruck makes use of the first three i2c controllers found on the
|
|
|
|
Allwinner A20; i2c-0 is used internally for the PMIC, i2c-1 is exposed on
|
|
|
|
the board headers, and i2c-2 is used for DDC on the VGA connector. This
|
|
|
|
patch enables them in the device tree.
|
|
|
|
|
|
|
|
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
|
|
|
|
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
|
|
|
|
---
|
|
|
|
arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 18 ++++++++++++++++++
|
|
|
|
1 file changed, 18 insertions(+)
|
|
|
|
|
|
|
|
--- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
|
|
|
|
+++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
|
2014-12-08 20:04:25 +08:00
|
|
|
@@ -130,6 +130,24 @@
|
2014-09-11 05:40:19 +08:00
|
|
|
reg = <1>;
|
|
|
|
};
|
2014-08-27 20:09:46 +08:00
|
|
|
};
|
|
|
|
+
|
|
|
|
+ i2c0: i2c@01c2ac00 {
|
|
|
|
+ pinctrl-names = "default";
|
|
|
|
+ pinctrl-0 = <&i2c0_pins_a>;
|
|
|
|
+ status = "okay";
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ i2c1: i2c@01c2b000 {
|
|
|
|
+ pinctrl-names = "default";
|
|
|
|
+ pinctrl-0 = <&i2c1_pins_a>;
|
|
|
|
+ status = "okay";
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ i2c2: i2c@01c2b400 {
|
|
|
|
+ pinctrl-names = "default";
|
|
|
|
+ pinctrl-0 = <&i2c2_pins_a>;
|
|
|
|
+ status = "okay";
|
|
|
|
+ };
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|