[PATCH linux dev-5.4] ARM: dts: Aspeed: Tacoma: Remove bmp280 and add iio-hwmon for DPS310

Eddie James eajames at linux.ibm.com
Thu Apr 2 06:06:06 AEDT 2020


The BMP280 was replaced by the DPS310 on Witherspoon, which needs an
iio-hwmon node to connect to the hwmon subsystem.

Signed-off-by: Eddie James <eajames at linux.ibm.com>
---
 arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
index 044011bb8a04..846a8a2e1a78 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
@@ -88,6 +88,11 @@
 			linux,code = <7>;
 		};
 	};
+
+	iio-hwmon-dps310 {
+		compatible = "iio-hwmon";
+		io-channels = <&dps 0>;
+	};
 };
 
 &gpio0 {
@@ -442,12 +447,6 @@
 &i2c3 {
 	status = "okay";
 
-	bmp: bmp280 at 77 {
-		compatible = "bosch,bmp280";
-		reg = <0x77>;
-		#io-channel-cells = <1>;
-	};
-
 	max31785 at 52 {
 		compatible = "maxim,max31785a";
 		reg = <0x52>;
-- 
2.24.0



More information about the openbmc mailing list