[PATCH linux dev-4.7 2/2] ARM: dts: Use IIO version of bmp180 on Witherspoon

Brad Bishop bradleyb at fuzziesquirrel.com
Wed Mar 29 00:10:38 AEDT 2017


Early Witherspoon boards had a bmp180 but v2 boards
have a BMP280.  Switch to the IIO driver that supports both.

Signed-off-by: Brad Bishop <bradleyb at fuzziesquirrel.com>

Witherspoon: attach bmp180 to hwmon
---
 arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
index 6e7b5a4..658d9a7 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
@@ -58,6 +58,11 @@
 		enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
 		trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
 	};
+
+	iio-hwmon {
+		compatible = "iio-hwmon";
+		io-channels = <&bmp 1>;
+	};
 };
 
 &fmc {
@@ -160,9 +165,10 @@
 	 *    Regs 3.3VS, 1.1VCS, 5VCS, 1.8V
 	 */
 
-	bmp180 at 77 {
-		compatible = "bosch,bmp180";
+	bmp: bmp180 at 77 {
+		compatible = "bosch,bmp280";
 		reg = <0x77>;
+		#io-channel-cells = <1>;
 	};
 
 	max31785 at 52 {
-- 
1.8.3.1


More information about the openbmc mailing list