arm/dts: Add I2C master and ports to FSI cfam
PATCH 1/1 arm/dts: Add I2C master and ports to FSI cfam
From: "Edward A. James" <[email protected]>
FSI I2C master algorithm probes port devices based on dts.
--- arch/arm/boot/dts/ibm-power9-cfam.dtsi | 134 +++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+)
arch/arm/boot/dts/ibm-power9-cfam.dtsi +134 -0
@@ -4,6 +4,73 @@ #address-cells = <1>; #size-cells = <1>; + i2cm@1800 { + compatible = "ibm,fsi-i2c-master"; + reg = <0x1800 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + port = <0>; + }; + + port@1 { + port = <1>; + }; + + port@2 { + port = <2>; + }; + + port@3 { + port = <3>; + }; + + port@4 { + port = <4>; + }; + + port@5 { + port = <5>; + }; + + port@6 { + port = <6>; + }; + + port@7 { + port = <7>; + }; + + port@8 { + port = <8>; + }; + + port@9 { + port = <9>; + }; + + port@10 { + port = <10>; + }; + + port@11 { + port = <11>; + }; + + port@12 { + port = <12>; + }; + + port@13 { + port = <13>; + }; + + port@14 { + port = <14>; + }; + }; + sbefifo@2400 { compatible = "ibm,p9-sbefifo"; reg = <0x2400 0x400>;
@@ -31,6 +98,73 @@ #address-cells = <1>; #size-cells = <1>; + i2cm@1800 { + compatible = "ibm,fsi-i2c-master"; + reg = <0x1800 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + port = <0>; + }; + + port@1 { + port = <1>; + }; + + port@2 { + port = <2>; + }; + + port@3 { + port = <3>; + }; + + port@4 { + port = <4>; + }; + + port@5 { + port = <5>; + }; + + port@6 { + port = <6>; + }; + + port@7 { + port = <7>; + }; + + port@8 { + port = <8>; + }; + + port@9 { + port = <9>; + }; + + port@10 { + port = <10>; + }; + + port@11 { + port = <11>; + }; + + port@12 { + port = <12>; + }; + + port@13 { + port = <13>; + }; + + port@14 { + port = <14>; + }; + }; + sbefifo@2400 { compatible = "ibm,p9-sbefifo"; reg = <0x2400 0x400>;
Signature · 1 line
1.8.3.1
Quoted 3 lines · Eddie James
From: "Edward A. James" <[email protected]>
FSI I2C master algorithm probes port devices based on dts.
Do you need all 28 ports enabled?
Quoted 161 lines
Signed-off-by Edward A. James <[email protected]>--- arch/arm/boot/dts/ibm-power9-cfam.dtsi | 134 +++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+)arch/arm/boot/dts/ibm-power9-cfam.dtsi +134
-1@@ -4,6 +4,73 @@ #address-cells = <1>; #size-cells = <1>; + i2cm@1800 { + compatible = "ibm,fsi-i2c-master"; + reg = <0x1800 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + port = <0>; + }; + + port@1 { + port = <1>; + }; + + port@2 { + port = <2>; + }; + + port@3 { + port = <3>; + }; + + port@4 { + port = <4>; + }; + + port@5 { + port = <5>; + }; + + port@6 { + port = <6>; + }; + + port@7 { + port = <7>; + }; + + port@8 { + port = <8>; + }; + + port@9 { + port = <9>; + }; + + port@10 { + port = <10>; + }; + + port@11 { + port = <11>; + }; + + port@12 { + port = <12>; + }; + + port@13 { + port = <13>; + }; + + port@14 { + port = <14>; + }; + }; + sbefifo@2400 { compatible = "ibm,p9-sbefifo"; reg = <0x2400 0x400>;@@ -31,6 +98,73 @@ #address-cells = <1>; #size-cells = <1>; + i2cm@1800 { + compatible = "ibm,fsi-i2c-master"; + reg = <0x1800 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + port = <0>; + }; + + port@1 { + port = <1>; + }; + + port@2 { + port = <2>; + }; + + port@3 { + port = <3>; + }; + + port@4 { + port = <4>; + }; + + port@5 { + port = <5>; + }; + + port@6 { + port = <6>; + }; + + port@7 { + port = <7>; + }; + + port@8 { + port = <8>; + }; + + port@9 { + port = <9>; + }; + + port@10 { + port = <10>; + }; + + port@11 { + port = <11>; + }; + + port@12 { + port = <12>; + }; + + port@13 { + port = <13>; + }; + + port@14 { + port = <14>; + }; + }; + sbefifo@2400 { compatible = "ibm,p9-sbefifo"; reg = <0x2400 0x400>; --1.8.3.1
Quoted 5 lines · Joel Stanley
Quoted 3 lines · Eddie James
From: "Edward A. James" <[email protected]>
FSI I2C master algorithm probes port devices based on dts.
Do you need all 28 ports enabled?
I think so. All of those are valid I2C busses on P9. I'm not sure who uses them all.
Thanks,
Eddie
Quoted 161 lines
Quoted 161 lines
Signed-off-by Edward A. James <[email protected]>--- arch/arm/boot/dts/ibm-power9-cfam.dtsi | 134 +++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+)arch/arm/boot/dts/ibm-power9-cfam.dtsi +134
-1@@ -4,6 +4,73 @@ #address-cells = <1>; #size-cells = <1>; + i2cm@1800 { + compatible = "ibm,fsi-i2c-master"; + reg = <0x1800 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + port = <0>; + }; + + port@1 { + port = <1>; + }; + + port@2 { + port = <2>; + }; + + port@3 { + port = <3>; + }; + + port@4 { + port = <4>; + }; + + port@5 { + port = <5>; + }; + + port@6 { + port = <6>; + }; + + port@7 { + port = <7>; + }; + + port@8 { + port = <8>; + }; + + port@9 { + port = <9>; + }; + + port@10 { + port = <10>; + }; + + port@11 { + port = <11>; + }; + + port@12 { + port = <12>; + }; + + port@13 { + port = <13>; + }; + + port@14 { + port = <14>; + }; + }; + sbefifo@2400 { compatible = "ibm,p9-sbefifo"; reg = <0x2400 0x400>;@@ -31,6 +98,73 @@ #address-cells = <1>; #size-cells = <1>; + i2cm@1800 { + compatible = "ibm,fsi-i2c-master"; + reg = <0x1800 0x400>; + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + port = <0>; + }; + + port@1 { + port = <1>; + }; + + port@2 { + port = <2>; + }; + + port@3 { + port = <3>; + }; + + port@4 { + port = <4>; + }; + + port@5 { + port = <5>; + }; + + port@6 { + port = <6>; + }; + + port@7 { + port = <7>; + }; + + port@8 { + port = <8>; + }; + + port@9 { + port = <9>; + }; + + port@10 { + port = <10>; + }; + + port@11 { + port = <11>; + }; + + port@12 { + port = <12>; + }; + + port@13 { + port = <13>; + }; + + port@14 { + port = <14>; + }; + }; + sbefifo@2400 { compatible = "ibm,p9-sbefifo"; reg = <0x2400 0x400>; --1.8.3.1
Quoted 9 lines · Eddie James
Quoted 6 lines · Joel Stanley
Quoted 3 lines · Eddie James
From: "Edward A. James" <[email protected]>
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
FSI I2C master algorithm probes port devices based on dts.
Do you need all 28 ports enabled?
I think so. All of those are valid I2C busses on P9. I'm not sure who uses them all.
Convention has been to only enable the buses that are active. Set the default to be status = "disabled"; and then in the .dts files for each machine that uses these will set the status = "okay".
I know that the Cronus tools use one of these for updating the SBE EEPROM.
Cheers,
Joel