ARM: dts: aspeed: rainier: Add 4U device-tree
authorEddie James <eajames@linux.ibm.com>
Wed, 28 Oct 2020 18:56:47 +0000 (13:56 -0500)
committerJoel Stanley <joel@jms.id.au>
Tue, 17 Nov 2020 13:48:42 +0000 (00:18 +1030)
Add a device-tree for the Rainier 4U system. Change the model name
on the existing Rainier device-tree to 2U, and remove the two
extra power supplies that are only present on the 4U system. Also
add labels to the fan nodes for use in the 4U device-tree.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Link: https://lore.kernel.org/r/20201028185647.14565-1-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/Makefile
arch/arm/boot/dts/aspeed-bmc-ibm-rainier-4u.dts [new file with mode: 0644]
arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts

index 1917cd4..ec35977 100644 (file)
@@ -1392,6 +1392,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
        aspeed-bmc-facebook-yamp.dtb \
        aspeed-bmc-facebook-yosemitev2.dtb \
        aspeed-bmc-ibm-rainier.dtb \
+       aspeed-bmc-ibm-rainier-4u.dtb \
        aspeed-bmc-intel-s2600wf.dtb \
        aspeed-bmc-inspur-fp5280g2.dtb \
        aspeed-bmc-lenovo-hr630.dtb \
diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier-4u.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier-4u.dts
new file mode 100644 (file)
index 0000000..291f7d6
--- /dev/null
@@ -0,0 +1,37 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+// Copyright 2020 IBM Corp.
+/dts-v1/;
+
+#include "aspeed-bmc-ibm-rainier.dts"
+
+/ {
+       model = "Rainier 4U";
+};
+
+&i2c3 {
+       power-supply@6a {
+               compatible = "ibm,cffps";
+               reg = <0x6a>;
+       };
+
+       power-supply@6b {
+               compatible = "ibm,cffps";
+               reg = <0x6b>;
+       };
+};
+
+&fan0 {
+       tach-pulses = <4>;
+};
+
+&fan1 {
+       tach-pulses = <4>;
+};
+
+&fan2 {
+       tach-pulses = <4>;
+};
+
+&fan3 {
+       tach-pulses = <4>;
+};
index 21ae880..ac649fd 100644 (file)
@@ -8,7 +8,7 @@
 #include <dt-bindings/leds/leds-pca955x.h>
 
 / {
-       model = "Rainier";
+       model = "Rainier 2U";
        compatible = "ibm,rainier-bmc", "aspeed,ast2600";
 
        aliases {
                compatible = "ibm,cffps";
                reg = <0x69>;
        };
-
-       power-supply@6a {
-               compatible = "ibm,cffps";
-               reg = <0x6a>;
-       };
-
-       power-supply@6b {
-               compatible = "ibm,cffps";
-               reg = <0x6b>;
-       };
 };
 
 &i2c4 {
                #address-cells = <1>;
                #size-cells = <0>;
 
-               fan@0 {
+               fan0: fan@0 {
                        compatible = "pmbus-fan";
                        reg = <0>;
                        tach-pulses = <2>;
                };
 
-               fan@1 {
+               fan1: fan@1 {
                        compatible = "pmbus-fan";
                        reg = <1>;
                        tach-pulses = <2>;
                };
 
-               fan@2 {
+               fan2: fan@2 {
                        compatible = "pmbus-fan";
                        reg = <2>;
                        tach-pulses = <2>;
                };
 
-               fan@3 {
+               fan3: fan@3 {
                        compatible = "pmbus-fan";
                        reg = <3>;
                        tach-pulses = <2>;