BCM270X_DT: Add tmp102 to i2c sensor overlay
authorScott Ellis <scott@jumpnowtek.com>
Tue, 25 Apr 2017 17:05:42 +0000 (13:05 -0400)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:53:31 +0000 (15:53 +0100)
Signed-off-by: Scott Ellis <scott@jumpnowtek.com>
arch/arm/boot/dts/overlays/README
arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts

index 7cb5a648e63ced7de2911c8a5cd22ddee8ca1129..32e5fc4a9968c368e1063aef5fea95caedfba36f 100644 (file)
@@ -652,16 +652,18 @@ 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: addr                    Set the address for the BME280 and BMP280 (0x76
-                                or 0x77 - default 0x76)
+Params: addr                    Set the address for the BME280, BMP280 or
+                                TMP102
 
         bme280                  Select the Bosch Sensortronic BME280
+                                Valid addresses 0x76-0x77, default 0x76
 
         bmp085                  Select the Bosch Sensortronic BMP085
 
         bmp180                  Select the Bosch Sensortronic BMP180
 
         bmp280                  Select the Bosch Sensortronic BMP280
+                                Valid addresses 0x76-0x77, default 0x76
 
         lm75                    Select the Maxim LM75 temperature sensor
 
@@ -671,6 +673,9 @@ Params: addr                    Set the address for the BME280 and BMP280 (0x76
         si7020                  Select the Silicon Labs Si7013/20/21 humidity/
                                 temperature sensor
 
+        tmp102                  Select the Texas Instruments TMP102 temp sensor
+                                Valid addresses 0x48-0x4b, default 0x48
+
 
 Name:   i2c0-bcm2708
 Info:   Enable the i2c_bcm2708 driver for the i2c0 bus. Not all pin combinations
index e23e34b32a0a8927c14203d7384e800878627347..e86a13f92c3f75c14fa4425cdfb081d6795ff76a 100644 (file)
@@ -1,4 +1,4 @@
-// Definitions for I2C based sensors using the Industrial IO interface.
+// Definitions for I2C based sensors using the Industrial IO or HWMON interface.
 /dts-v1/;
 /plugin/;
 
                                reg = <0x40>;
                                status = "disable";
                        };
+
+                       tmp102: tmp102@48 {
+                               compatible = "ti,tmp102";
+                               reg = <0x48>;
+                               status = "disable";
+                       };
                };
        };
 
        __overrides__ {
-               addr =  <&bme280>,"reg:0", <&bmp280>,"reg:0";
+               addr =  <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0";
                bme280 = <&bme280>,"status";
                bmp085 = <&bmp085>,"status";
                bmp180 = <&bmp180>,"status";
@@ -60,5 +66,6 @@
                lm75 = <&lm75>,"status";
                lm75addr = <&lm75>,"reg:0";
                si7020 = <&si7020>,"status";
+               tmp102 = <&tmp102>,"status";
        };
 };