From mboxrd@z Thu Jan 1 00:00:00 1970 From: "G, Manjunath Kondaiah" Subject: [RFC/PATCH v2 04/13] dt: omap3: beagle board: set clock freq for i2c devices Date: Tue, 23 Aug 2011 10:03:32 +0500 Message-ID: <1314074021-25186-5-git-send-email-manjugk@ti.com> References: <1314074021-25186-1-git-send-email-manjugk@ti.com> Return-path: Sender: linux-omap-owner@vger.kernel.org To: devicetree-discuss@lists.ozlabs.org Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, grant.likely@secretlab.ca List-Id: devicetree@vger.kernel.org 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 | 13 ++----------- arch/arm/boot/dts/omap3-beagle.dts | 18 +++++++++++++++--- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/omap3-beagle-nunchuck.dts b/arch/arm/boot/dts/omap3-beagle-nunchuck.dts index 2607be5..c693163 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" +/include/ "omap3.dtsi" / { - 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..c232c52 100644 --- a/arch/arm/boot/dts/omap3-beagle.dts +++ b/arch/arm/boot/dts/omap3-beagle.dts @@ -1,7 +1,19 @@ -/dts-v1/; -/include/ "skeleton.dtsi" +/include/ "omap3.dtsi" / { model = "TI OMAP3 BeagleBoard"; - compatible = "ti,omap3-beagle"; + compatible = "ti,omap3-beagle", "ti,omap3"; + + + i2c1 { + clock-frequency = <2600000>; + }; + + i2c2 { + clock-frequency = <400000>; + }; + + i2c3 { + clock-frequency = <400000>; + }; }; -- 1.7.4.1