[PATCH linux dev-4.10] arm/dts: Add I2C master and ports to FSI cfam

Eddie James eajames at linux.vnet.ibm.com
Tue Jun 27 05:33:05 AEST 2017


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

FSI I2C master algorithm probes port devices based on dts.

Signed-off-by: Edward A. James <eajames at us.ibm.com>
---
 arch/arm/boot/dts/ibm-power9-cfam.dtsi | 134 +++++++++++++++++++++++++++++++++
 1 file changed, 134 insertions(+)

diff --git a/arch/arm/boot/dts/ibm-power9-cfam.dtsi b/arch/arm/boot/dts/ibm-power9-cfam.dtsi
index f29c6e3..a0b5c97 100644
--- a/arch/arm/boot/dts/ibm-power9-cfam.dtsi
+++ b/arch/arm/boot/dts/ibm-power9-cfam.dtsi
@@ -4,6 +4,73 @@
 		#address-cells = <1>;
 		#size-cells = <1>;
 
+		i2cm 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>;
+			};
+		};
+
 		sbefifo at 2400 {
 			compatible = "ibm,p9-sbefifo";
 			reg = <0x2400 0x400>;
@@ -31,6 +98,73 @@
 				#address-cells = <1>;
 				#size-cells = <1>;
 
+				i2cm 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>;
+					};
+				};
+
 				sbefifo at 2400 {
 					compatible = "ibm,p9-sbefifo";
 					reg = <0x2400 0x400>;
-- 
1.8.3.1



More information about the openbmc mailing list