From: Scott Ellis Date: Tue, 25 Apr 2017 17:05:42 +0000 (-0400) Subject: BCM270X_DT: Add tmp102 to i2c sensor overlay X-Git-Tag: archive/raspbian/4.9.82-1+deb9u3+rpi1_jessie~5^2~248 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=831aec51847fd5a24cb176ec87f1670a33ee1505;p=linux-4.9.git BCM270X_DT: Add tmp102 to i2c sensor overlay Signed-off-by: Scott Ellis --- diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README index 7cb5a648e63c..32e5fc4a9968 100644 --- a/arch/arm/boot/dts/overlays/README +++ b/arch/arm/boot/dts/overlays/README @@ -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,= -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 diff --git a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts index e23e34b32a0a..e86a13f92c3f 100644 --- a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts +++ b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts @@ -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/; @@ -48,11 +48,17 @@ 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"; }; };