From patchwork Wed Jul 13 22:06:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: manjugk manjugk X-Patchwork-Id: 973522 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6DLmuV9002303 for ; Wed, 13 Jul 2011 21:48:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752229Ab1GMVsz (ORCPT ); Wed, 13 Jul 2011 17:48:55 -0400 Received: from [117.192.79.57] ([117.192.79.57]:45497 "EHLO manju-desktop" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752173Ab1GMVsz (ORCPT ); Wed, 13 Jul 2011 17:48:55 -0400 To: devicetree-discuss@lists.ozlabs.org Date: Thu, 14 Jul 2011 03:06:13 +0500 Subject: [PATCH 2/4] dt: OMAP3: Beagle board: set clock freq for i2c devices Envelope-To: devicetree-discuss@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, grant.likely@secretlab.ca, ben-linux@fluff.org References: <1310592975-25773-1-git-send-email-manjugk@ti.com> CC: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, grant.likely@secretlab.ca, ben-linux@fluff.org Message-ID: <1310592975-25773-3-git-send-email-manjugk@ti.com> From: "G, Manjunath Kondaiah" Received: from manju-desktop (Citadel from userid 1000) by manju-desktop; Thu, 14 Jul 2011 03:06:16 +0500 X-Mailer: git-send-email 1.7.4.1 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 13 Jul 2011 21:48:56 +0000 (UTC) Update omap3 beagle dts file with required clock frequencies for the i2c client devices existing on beagle board. Beagle custom board dts file is cleaned up so that it can coexist with omap3 soc dts file. Signed-off-by: G, Manjunath Kondaiah --- arch/arm/boot/dts/omap3-beagle-nunchuck.dts | 11 +--------- arch/arm/boot/dts/omap3-beagle.dts | 29 +++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/omap3-beagle-nunchuck.dts b/arch/arm/boot/dts/omap3-beagle-nunchuck.dts index 2607be5..324ff86 100644 --- a/arch/arm/boot/dts/omap3-beagle-nunchuck.dts +++ b/arch/arm/boot/dts/omap3-beagle-nunchuck.dts @@ -1,16 +1,7 @@ /include/ "omap3-beagle.dts" / { - i2c@48072000 { - compatible = "ti,omap3-i2c"; - reg = <0x48072000 0x80>; - #address-cells = <1>; - #size-cells = <0>; - - eeprom@50 { - compatible = "at,at24c01"; - reg = < 0x50 >; - }; + i2c@2 { joystick@52 { compatible = "sparkfun,wiichuck"; reg = < 0x52 >; diff --git a/arch/arm/boot/dts/omap3-beagle.dts b/arch/arm/boot/dts/omap3-beagle.dts index 4439466..b45fbc9 100644 --- a/arch/arm/boot/dts/omap3-beagle.dts +++ b/arch/arm/boot/dts/omap3-beagle.dts @@ -1,7 +1,32 @@ -/dts-v1/; -/include/ "skeleton.dtsi" +/include/ "omap3-soc.dtsi" / { model = "TI OMAP3 BeagleBoard"; compatible = "ti,omap3-beagle"; + + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <2600000>; + status = "disabled"; + }; + + i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + }; + + i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + + eeprom@50 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "at,at24c01"; + reg = < 0x50 >; + }; + }; };