From patchwork Sun May 26 10:20:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 246388 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4580A2C0174 for ; Sun, 26 May 2013 20:20:58 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751985Ab3EZKUz (ORCPT ); Sun, 26 May 2013 06:20:55 -0400 Received: from mail.free-electrons.com ([94.23.35.102]:47551 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751977Ab3EZKUy (ORCPT ); Sun, 26 May 2013 06:20:54 -0400 Received: by mail.free-electrons.com (Postfix, from userid 106) id 4027875E; Sun, 26 May 2013 12:20:51 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.3.2 Received: from localhost (189.58.26.109.rev.sfr.net [109.26.58.189]) by mail.free-electrons.com (Postfix) with ESMTPSA id 428D2E49; Sun, 26 May 2013 12:20:51 +0200 (CEST) From: Maxime Ripard To: Wolfram Sang Cc: linux-arm-kernel@lists.infradead.org, Emilio Lopez , kevin@allwinnertech.com, sunny@allwinnertech.com, shuge@allwinnertech.com, linux-i2c@vger.kernel.org, linux-sunxi@googlegroups.com, Maxime Ripard Subject: [PATCHv2 6/6] ARM: sun4i: cubieboard: Enable the i2c controllers Date: Sun, 26 May 2013 12:20:42 +0200 Message-Id: <1369563642-4390-7-git-send-email-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 1.8.2.3 In-Reply-To: <1369563642-4390-1-git-send-email-maxime.ripard@free-electrons.com> References: <1369563642-4390-1-git-send-email-maxime.ripard@free-electrons.com> MIME-Version: 1.0 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org From: Emilio López The Cubieboard makes use of the first two i2c controllers found on the Allwinner A10; i2c-0 is used internally for the PMIC, while i2c-1 is exposed on the board headers. This patch enables them in the device tree. Signed-off-by: Emilio López Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts index b70fe0d..0e22a28 100644 --- a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts +++ b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts @@ -41,6 +41,18 @@ pinctrl-0 = <&uart0_pins_a>; status = "okay"; }; + + 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"; + }; }; leds {