Skip to contentSkip to conversation

patch "iio: Add tmp006 IR temperature sensor" added to staging tree

lm-sensors [email protected] 1 participant 1 message Aug 19, 2013 IIO

lore
Share & tools
lore

[email protected]

author Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

iio: Add tmp006 IR temperature sensor

to my staging git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
in the staging-next branch.

The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)

The patch will also be merged in the next major kernel release during the merge window.

If you have any questions about this process, please let me know.

From e5a639421821c7cd11832fd7fbe6376bfb304880 Mon Sep 17 00:00:00 2001
From: Peter Meerwald <[email protected]>
Date: Thu, 8 Aug 2013 17:39:00 +0100
Subject: iio: Add tmp006 IR temperature sensor

the TI TMP006 is a non-contact temperature sensor with I2C interface; it measures the surface temperature of a distance object using a thermopile to absorb IR energy emitted from the object

the sensor has two channels: IR sensor voltage (16-bit) and reference temperature of the chip (14-bit); datasheet is here:
http://www.ti.com/lit/ds/symlink/tmp006.pdf

v2 (thanks to Grygorii Strashko, Lars-Peter Clausen, Jonathan Cameron for review comments):
* power down device on driver remove
* use sign_extend32()
* style cleanup
* add comments what channel raw LSBs mean
* spelling of thermopile

Cc Grygorii Strashko <[email protected]>
Cc Lars-Peter Clausen <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc LM Sensors <[email protected]>
---
 drivers/iio/Kconfig              |   1 +
 drivers/iio/Makefile             |   1 +
 drivers/iio/temperature/Kconfig  |  16 +++
 drivers/iio/temperature/Makefile |   5 +
 drivers/iio/temperature/tmp006.c | 291 +++++++++++++++++++++++++++++++++++++++
 5 files changed, 314 insertions(+)
 create mode 100644 drivers/iio/temperature/Kconfig
 create mode 100644 drivers/iio/temperature/Makefile
 create mode 100644 drivers/iio/temperature/tmp006.c
drivers/iio/Kconfig +1 -0
index 524380c9..cbea3271 100644
@@ -73,5 +73,6 @@ if IIO_TRIGGER
    source "drivers/iio/trigger/Kconfig"
 endif #IIO_TRIGGER
 source "drivers/iio/pressure/Kconfig"
+source "drivers/iio/temperature/Kconfig"
 
 endif # IIO
drivers/iio/Makefile +1 -0
index 7a3866c2..a0547f59 100644
@@ -21,5 +21,6 @@ obj-y += frequency/
 obj-y += imu/
 obj-y += light/
 obj-y += magnetometer/
+obj-y += temperature/
 obj-y += trigger/
 obj-y += pressure/
drivers/iio/temperature/Kconfig new file +16 -0
new file mode 100644
index 00000000..372f8fb3
@@ -0,0 +1,16 @@
+#
+# Temperature sensor drivers
+#
+menu "Temperature sensors"
+
+config TMP006
+	tristate "TMP006 infrared thermopile sensor"
+	depends on I2C
+	help
+	  If you say yes here you get support for the Texas Instruments
+	  TMP006 infrared thermopile sensor.
+
+	  This driver can also be built as a module. If so, the module will
+	  be called tmp006.
+
+endmenu
drivers/iio/temperature/Makefile new file +5 -0
new file mode 100644
index 00000000..24d7b602
@@ -0,0 +1,5 @@
+#
+# Makefile for industrial I/O temperature drivers
+#
+
+obj-$(CONFIG_TMP006) += tmp006.o
drivers/iio/temperature/tmp006.c new file +291 -0

291 lines not on this page · raw message

Signature · 8 lines
1.8.3.rc0.20.gb99dd2e



_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors