From 3a21b80d7ae2ddfd17b23e1dfc0aedfdbf2132e1 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Sun, 23 Apr 2017 19:36:53 +0100 Subject: [PATCH] BCM270X_DT: Add bme280 and bmp180 to i2c-sensor overlay Signed-off-by: Phil Elwell --- arch/arm/boot/dts/overlays/README | 11 +++++++++-- arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts | 15 +++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README index e2a803e5180c..7cb5a648e63c 100644 --- a/arch/arm/boot/dts/overlays/README +++ b/arch/arm/boot/dts/overlays/README @@ -652,9 +652,16 @@ Name: i2c-sensor Info: Adds support for a number of I2C barometric pressure and temperature sensors on i2c_arm Load: dtoverlay=i2c-sensor,= -Params: bmp085 Select the Bosch sensortronic BMP085 +Params: addr Set the address for the BME280 and BMP280 (0x76 + or 0x77 - default 0x76) - bmp280 Select the Bosch sensortronic BMP280 + bme280 Select the Bosch Sensortronic BME280 + + bmp085 Select the Bosch Sensortronic BMP085 + + bmp180 Select the Bosch Sensortronic BMP180 + + bmp280 Select the Bosch Sensortronic BMP280 lm75 Select the Maxim LM75 temperature sensor diff --git a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts index 606b2d5012ab..e23e34b32a0a 100644 --- a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts +++ b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts @@ -12,6 +12,12 @@ #size-cells = <0>; status = "okay"; + bme280: bme280@76 { + compatible = "bosch,bme280"; + reg = <0x76>; + status = "disable"; + }; + bmp085: bmp085@77 { compatible = "bosch,bmp085"; reg = <0x77>; @@ -19,6 +25,12 @@ status = "disable"; }; + bmp180: bmp180@77 { + compatible = "bosch,bmp180"; + reg = <0x77>; + status = "disable"; + }; + bmp280: bmp280@76 { compatible = "bosch,bmp280"; reg = <0x76>; @@ -40,7 +52,10 @@ }; __overrides__ { + addr = <&bme280>,"reg:0", <&bmp280>,"reg:0"; + bme280 = <&bme280>,"status"; bmp085 = <&bmp085>,"status"; + bmp180 = <&bmp180>,"status"; bmp280 = <&bmp280>,"status"; lm75 = <&lm75>,"status"; lm75addr = <&lm75>,"reg:0"; -- 2.30.2