diff mbox

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

Message ID 1490706638-5782-3-git-send-email-bradleyb@fuzziesquirrel.com
State Superseded, archived
Headers show

Commit Message

Brad Bishop March 28, 2017, 1:10 p.m. UTC
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@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 mbox

Patch

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@77 {
-		compatible = "bosch,bmp180";
+	bmp: bmp180@77 {
+		compatible = "bosch,bmp280";
 		reg = <0x77>;
+		#io-channel-cells = <1>;
 	};
 
 	max31785@52 {