[PATCH linux dev-4.10 v2 6/6] dts: aspeed: witherspoon: Add I2C master under FSI masters

Eddie James eajames at linux.vnet.ibm.com
Thu May 11 01:52:42 AEST 2017


From: "Edward A. James" <eajames at us.ibm.com>

Include all the ports that are present off I2C engine on P9.

Signed-off-by: Edward A. James <eajames at us.ibm.com>
---
 arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 156 +++++++++++++++++++++++
 1 file changed, 156 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
index f20aaf4..ac903c8 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
@@ -65,6 +65,8 @@
 
 	gpio-fsi {
 		compatible = "fsi-master-gpio", "fsi-master";
+		#address-cells = <2>;
+		#size-cells = <0>;
 
 		status = "okay";
 
@@ -73,6 +75,160 @@
 		mux-gpios = <&gpio ASPEED_GPIO(A, 6) GPIO_ACTIVE_HIGH>;
 		enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
 		trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
+
+		cfam at 0,0 {
+			reg = <0 0>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			i2c-master at 1800 {
+				compatible = "ibm,fsi-i2c-master";
+				reg = <0x1800 0x400>;
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				port at 0 {
+					port = <0>;
+				};
+
+				port at 1 {
+					port = <1>;
+				};
+
+				port at 2 {
+					port = <2>;
+				};
+
+				port at 3 {
+					port = <3>;
+				};
+
+				port at 4 {
+					port = <4>;
+				};
+
+				port at 5 {
+					port = <5>;
+				};
+
+				port at 6 {
+					port = <6>;
+				};
+
+				port at 7 {
+					port = <7>;
+				};
+
+				port at 8 {
+					port = <8>;
+				};
+
+				port at 9 {
+					port = <9>;
+				};
+
+				port at 10 {
+					port = <10>;
+				};
+
+				port at 11 {
+					port = <11>;
+				};
+
+				port at 12 {
+					port = <12>;
+				};
+
+				port at 13 {
+					port = <13>;
+				};
+
+				port at 14 {
+					port = <14>;
+				};
+			};
+
+			hub at 3400 {
+				compatible = "fsi-master-hub";
+				reg = <0x3400 0x400>;
+				#address-cells = <2>;
+				#size-cells = <0>;
+
+				cfam at 1,0 {
+					reg = <1 0>;
+					#address-cells = <1>;
+					#size-cells = <1>;
+
+					i2c-master at 1800 {
+						compatible = "ibm,fsi-i2c-master";
+						reg = <0x1800 0x400>;
+						#address-cells = <1>;
+						#size-cells = <0>;
+
+						port at 0 {
+							port = <0>;
+						};
+
+						port at 1 {
+							port = <1>;
+						};
+
+						port at 2 {
+							port = <2>;
+						};
+
+						port at 3 {
+							port = <3>;
+						};
+
+						port at 4 {
+							port = <4>;
+						};
+
+						port at 5 {
+							port = <5>;
+						};
+
+						port at 6 {
+							port = <6>;
+						};
+
+						port at 7 {
+							port = <7>;
+						};
+
+						port at 8 {
+							port = <8>;
+						};
+
+						port at 9 {
+							port = <9>;
+						};
+
+						port at 10 {
+							port = <10>;
+						};
+
+						port at 11 {
+							port = <11>;
+						};
+
+						port at 12 {
+							port = <12>;
+						};
+
+						port at 13 {
+							port = <13>;
+						};
+
+						port at 14 {
+							port = <14>;
+						};
+					};
+
+				};
+			};
+		};
 	};
 
 	iio-hwmon {
-- 
1.8.3.1



More information about the openbmc mailing list