From patchwork Thu Jan 24 11:35:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Vishwanathrao Badarkhe, Manish" X-Patchwork-Id: 2031321 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by patchwork1.kernel.org (Postfix) with ESMTP id 6C6FF3FDBC for ; Thu, 24 Jan 2013 11:38:52 +0000 (UTC) Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id r0OBYWBv024117; Thu, 24 Jan 2013 05:34:32 -0600 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id r0OBYWPZ013893; Thu, 24 Jan 2013 05:34:32 -0600 Received: from dlelxv23.itg.ti.com (172.17.1.198) by dfle72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.1.323.3; Thu, 24 Jan 2013 05:34:31 -0600 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id r0OBYV8l027692; Thu, 24 Jan 2013 05:34:31 -0600 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id DFA9180627; Thu, 24 Jan 2013 05:34:30 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dbdp20.itg.ti.com (dbdp20.itg.ti.com [172.24.170.38]) by linux.omap.com (Postfix) with ESMTP id 96F1980626 for ; Thu, 24 Jan 2013 05:34:28 -0600 (CST) Received: from DBDE71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id r0OBYLo3016769; Thu, 24 Jan 2013 17:04:22 +0530 (IST) Received: from dbdp32.itg.ti.com (172.24.170.251) by DBDE71.ent.ti.com (172.24.170.149) with Microsoft SMTP Server id 14.1.323.3; Thu, 24 Jan 2013 17:04:21 +0530 Received: from ucmsshproxy.india.ext.ti.com (dbdp20.itg.ti.com [172.24.170.38]) by dbdp32.itg.ti.com (8.13.8/8.13.8) with SMTP id r0OBYKWx030465; Thu, 24 Jan 2013 17:04:20 +0530 Received: from symphony.india.ext.ti.com (unknown [192.168.247.13]) by ucmsshproxy.india.ext.ti.com (Postfix) with ESMTP id 384C915800D; Thu, 24 Jan 2013 17:04:19 +0530 (IST) Received: from ubuntu-psp-linux.india.ext.ti.com (ubuntu-psp-linux [192.168.247.46]) by symphony.india.ext.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id r0OBYAR23188; Thu, 24 Jan 2013 17:04:10 +0530 (IST) From: "Vishwanathrao Badarkhe, Manish" To: , , , , Subject: [PATCH 2/6] ARM: davinci: da850: add DT node for I2C0 Date: Thu, 24 Jan 2013 17:05:24 +0530 Message-ID: <1359027324-14534-1-git-send-email-manishv.b@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 CC: , , , , , , , , , , X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com Add I2C0 device tree node information to da850-evm. Also, add I2C0 pin muxing information in da850-evm. Signed-off-by: Vishwanathrao Badarkhe, Manish --- Depends on patch http://comments.gmane.org/gmane.linux.davinci/25993 arch/arm/boot/dts/da850-evm.dts | 15 +++++++++++++++ arch/arm/boot/dts/da850.dtsi | 10 ++++++++++ 2 files changed, 25 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index 8cac9d2..3d8290a 100755 --- a/arch/arm/boot/dts/da850-evm.dts +++ b/arch/arm/boot/dts/da850-evm.dts @@ -27,5 +27,20 @@ serial2: serial@1d0d000 { status = "okay"; }; + i2c0@1c22000 { + status = "okay"; + }; + }; +}; +&pmx_core { + pinctrl-names = "default"; + pinctrl-0 = < + &i2c0_pins + >; + + i2c0_pins: pinmux_i2c0_pins{ + pinctrl-single,bits = < + 0x10 0x00002200 0x0000ff00 /* I2C0_SDA,I2C0_SCL */ + >; }; }; diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index 1e6d090..f5ee811 100755 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/boot/dts/da850.dtsi @@ -66,5 +66,15 @@ interrupt-parent = <&intc>; status = "disabled"; }; + i2c0@1c22000 { + compatible = "ti,davinci-i2c"; + reg = <0x22000 0x1000>; + clock-frequency = <100000>; + interrupts = <15>; + interrupt-parent = <&intc>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; }; };