Thread (16 messages) 16 messages, 5 authors, 2011-08-03
STALE5416d

[PATCH 2/4] dt: OMAP3: Beagle board: set clock freq for i2c devices

From: G, Manjunath Kondaiah <hidden>
Date: 2011-07-13 22:06:13
Also in: linux-omap
Subsystem: the rest · Maintainer: Linus Torvalds

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 <redacted>
---
 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 >;
+		};
+	};
 };
-- 
1.7.4.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help