6a91557
From: Robert Nelson <robertcnelson@gmail.com>
6a91557
Date: Tue, 31 Dec 2013 11:17:45 -0600
6a91557
Subject: [PATCH] arm: dts: am335x-bone-common: enable and use i2c2
6a91557
6a91557
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
6a91557
---
6a91557
 arch/arm/boot/dts/am335x-bone-common.dtsi | 39 +++++++++++++++++++++++++++++++
6a91557
 1 file changed, 39 insertions(+)
6a91557
6a91557
diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi
5bc66d5
index 6cc25ed912ee..754b96c5dbb1 100644
6a91557
--- a/arch/arm/boot/dts/am335x-bone-common.dtsi
6a91557
+++ b/arch/arm/boot/dts/am335x-bone-common.dtsi
5bc66d5
@@ -81,6 +81,13 @@
6a91557
 		>;
6a91557
 	};
6a91557
 
6a91557
+	i2c2_pins: pinmux_i2c2_pins {
6a91557
+		pinctrl-single,pins = <
6a91557
+			0x178 0x73 /* (SLEWCTRL_SLOW | PIN_INPUT_PULLUP | MUX_MODE3) uart1_ctsn.i2c2_sda */
6a91557
+			0x17c 0x73 /* (SLEWCTRL_SLOW | PIN_INPUT_PULLUP | MUX_MODE3) uart1_rtsn.i2c2_scl */
6a91557
+		>;
6a91557
+	};
6a91557
+
6a91557
 	uart0_pins: pinmux_uart0_pins {
6a91557
 		pinctrl-single,pins = <
6a91557
 			0x170 (PIN_INPUT_PULLUP | MUX_MODE0)	/* uart0_rxd.uart0_rxd */
5bc66d5
@@ -217,6 +224,38 @@
6a91557
 		reg = <0x24>;
6a91557
 	};
6a91557
 
6a91557
+	baseboard_eeprom: baseboard_eeprom@50 {
6a91557
+		compatible = "at,24c256";
6a91557
+		reg = <0x50>;
6a91557
+	};
6a91557
+};
6a91557
+
6a91557
+&i2c2 {
6a91557
+	status = "okay";
6a91557
+	pinctrl-names = "default";
6a91557
+	pinctrl-0 = <&i2c2_pins>;
6a91557
+
6a91557
+	clock-frequency = <100000>;
6a91557
+
6a91557
+	cape_eeprom0: cape_eeprom0@54 {
6a91557
+		compatible = "at,24c256";
6a91557
+		reg = <0x54>;
6a91557
+	};
6a91557
+
6a91557
+	cape_eeprom1: cape_eeprom1@55 {
6a91557
+		compatible = "at,24c256";
6a91557
+		reg = <0x55>;
6a91557
+	};
6a91557
+
6a91557
+	cape_eeprom2: cape_eeprom2@56 {
6a91557
+		compatible = "at,24c256";
6a91557
+		reg = <0x56>;
6a91557
+	};
6a91557
+
6a91557
+	cape_eeprom3: cape_eeprom3@57 {
6a91557
+		compatible = "at,24c256";
6a91557
+		reg = <0x57>;
6a91557
+	};
6a91557
 };
6a91557
 
6a91557
 /include/ "tps65217.dtsi"
6a91557
-- 
1e63a38
2.1.0
6a91557