diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-03-28 23:04:40 +0300 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2017-03-29 05:28:39 +0300 |
commit | 661b3b2d69f433d70c603eb98bb0054b76ca77a1 (patch) | |
tree | 53ec5000999065f0675c91b9b9340d7cf871547c | |
parent | a78b57c1b71826cdf5920584fe49a2502aa4071d (diff) | |
download | linux-661b3b2d69f433d70c603eb98bb0054b76ca77a1.tar.xz |
ARM: dts: Use IIO version of bmp180 on Witherspoon
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>
Signed-off-by: Joel Stanley <joel@jms.id.au>
-rw-r--r-- | arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 10 |
1 files 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 6e7b5a48f383..e3a7b772a79d 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: bmp280@77 { + compatible = "bosch,bmp280"; reg = <0x77>; + #io-channel-cells = <1>; }; max31785@52 { |