BCM270X_DT: Add bme280 and bmp180 to i2c-sensor overlay
authorPhil Elwell <phil@raspberrypi.org>
Sun, 23 Apr 2017 18:36:53 +0000 (19:36 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 8 Oct 2017 01:07:25 +0000 (01:07 +0000)
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
arch/arm/boot/dts/overlays/README
arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts

index e2a803e5180cf78d67b6723cfd2f6d3b2b54e53b..7cb5a648e63ced7de2911c8a5cd22ddee8ca1129 100644 (file)
@@ -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,<param>=<val>
-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
 
index 606b2d5012abf2e85712be631c42ea40a0b512c5..e23e34b32a0a8927c14203d7384e800878627347 100644 (file)
                        #size-cells = <0>;
                        status = "okay";
 
+                       bme280: bme280@76 {
+                               compatible = "bosch,bme280";
+                               reg = <0x76>;
+                               status = "disable";
+                       };
+
                        bmp085: bmp085@77 {
                                compatible = "bosch,bmp085";
                                reg = <0x77>;
                                status = "disable";
                        };
 
+                       bmp180: bmp180@77 {
+                               compatible = "bosch,bmp180";
+                               reg = <0x77>;
+                               status = "disable";
+                       };
+
                        bmp280: bmp280@76 {
                                compatible = "bosch,bmp280";
                                reg = <0x76>;
        };
 
        __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";