[PATCH linux dev-4.7 v2 2/2] ARM: dts: Use IIO version of bmp180 on Witherspoon
Joel Stanley
joel at jms.id.au
Wed Mar 29 13:32:52 AEDT 2017
On Wed, Mar 29, 2017 at 6:34 AM, Brad Bishop
<bradleyb at fuzziesquirrel.com> wrote:
> 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>
Applied to dev-4.7.
Cheers,
Joel
> ---
> v2:
> Remove stray line from commit msg.
> Fixed missed device name update.
> ---
> 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..e3a7b77 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: bmp280 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