[PATCH linux dev-4.10 v2] ARM: dts: aspeed: Add fan card PCA9552 to Witherspoon devicetree

Brandon Wyman bjwyman at gmail.com
Fri Jul 7 06:33:55 AEST 2017


The Witherspoon OpenBMC system has a PCA9552 chip on the fan card that
is used for fan fault and identify LED control. Adding this chip and the
LED lines to the device tree.

Signed-off-by: Brandon Wyman <bjwyman at gmail.com>
---
v2 - Add required address-cells and size-cells.
     Update aliases and labels to match up with MRW XML.
---
---
 arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 50 ++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
index 31315d0..45e63ba 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
@@ -203,6 +203,56 @@
 		compatible = "infineon,dps310";
 		reg = <0x76>;
 	};
+
+	pca0: pca9552 at 60 {
+		compatible = "nxp,pca9552";
+		reg = <0x60>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		fan0: led at 0 {
+			label = "fan0";
+			default-state = "keep";
+			reg = <0>;
+			type = <PCA955X_TYPE_LED>;
+		};
+		fan1: led at 1 {
+			label = "fan1";
+			default-state = "keep";
+			reg = <1>;
+			type = <PCA955X_TYPE_LED>;
+		};
+		fan2: led at 2 {
+			label = "fan2";
+			default-state = "keep";
+			reg = <2>;
+			type = <PCA955X_TYPE_LED>;
+		};
+		fan3: led at 3 {
+			label = "fan3";
+			default-state = "keep";
+			reg = <3>;
+			type = <PCA955X_TYPE_LED>;
+		};
+		front_fault: led at 13 {
+			label = "front-fault";
+			default-state = "keep";
+			reg = <13>;
+			type = <PCA955X_TYPE_LED>;
+		};
+		front_power: led at 14 {
+			label = "front-power";
+			default-state = "keep";
+			reg = <14>;
+			type = <PCA955X_TYPE_LED>;
+		};
+		front_id: led at 15 {
+			label = "front-id";
+			default-state = "keep";
+			reg = <15>;
+			type = <PCA955X_TYPE_LED>;
+		};
+	};
 };
 
 &i2c4 {
-- 
2.7.2



More information about the openbmc mailing list