Skip to contentSkip to conversation

lm70: New hardware monitoring driver

PATCH New Jean Delvare 1 participant 1 message Jun 12, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 13/14 lm70: New hardware monitoring driver

From: Kaiwan N Billimoria <kaiwan at designergraphix.com>
Content-Disposition: inline; filename=hwmon-lm70-new-driver.patch

This driver implements support for the National Semiconductor LM70 temperature sensor.

The LM70 temperature sensor chip supports a single temperature sensor. It communicates with a host processor (or microcontroller) via an SPI/Microwire Bus interface.

Communication with the LM70 is simple: when the temperature is to be sensed, the driver accesses the LM70 using SPI communication: 16 SCLK cycles comprise the MOSI/MISO loop. At the end of the transfer, the 11-bit 2's complement digital temperature (sent via the SIO line), is available in the driver for interpretation. This driver makes use of the kernel's in-core SPI support.

Signed-off-by Kaiwan N Billimoria <kaiwan at designergraphix.com>
Signed-off-by Jean Delvare <khali at linux-fr.org>
---
 Documentation/hwmon/lm70 |   31 +++++++++
 drivers/hwmon/Kconfig    |   10 +++
 drivers/hwmon/Makefile   |    1 +
 drivers/hwmon/lm70.c     |  165 ++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 207 insertions(+)
Documentation/hwmon/lm70 new file +31 -0
@@ -0,0 +1,31 @@
+Kernel driver lm70
+=========
+
+Supported chip:
+  * National Semiconductor LM70
+    Datasheet: http://www.national.com/pf/LM/LM70.html
+
+Author:
+        Kaiwan N Billimoria <kaiwan at designergraphix.com>
+
+Description
+-----------
+
+This driver implements support for the National Semiconductor LM70
+temperature sensor.
+
+The LM70 temperature sensor chip supports a single temperature sensor.
+It communicates with a host processor (or microcontroller) via an
+SPI/Microwire Bus interface.
+
+Communication with the LM70 is simple: when the temperature is to be sensed,
+the driver accesses the LM70 using SPI communication: 16 SCLK cycles
+comprise the MOSI/MISO loop. At the end of the transfer, the 11-bit 2's
+complement digital temperature (sent via the SIO line), is available in the
+driver for interpretation. This driver makes use of the kernel's in-core
+SPI support.
+
+Thanks to
+---------
+Jean Delvare <khali at linux-fr.org> for mentoring the hwmon-side driver
+development.
drivers/hwmon/Kconfig +10 -0
@@ -204,6 +204,16 @@
 	  This driver can also be built as a module.  If so, the module
 	  will be called lm63.
 
+config SENSORS_LM70
+	tristate "National Semiconductor LM70"
+	depends on HWMON && SPI_MASTER && EXPERIMENTAL
+	help
+	  If you say yes here you get support for the National Semiconductor
+	  LM70 digital temperature sensor chip.
+
+	  This driver can also be built as a module.  If so, the module
+	  will be called lm70.
+
 config SENSORS_LM75
 	tristate "National Semiconductor LM75 and compatibles"
 	depends on HWMON && I2C
drivers/hwmon/lm70.c new file +165 -0

165 lines not on this page · raw message

drivers/hwmon/Makefile +1 -0
@@ -28,6 +28,7 @@
 obj-$(CONFIG_SENSORS_HDAPS)	+= hdaps.o
 obj-$(CONFIG_SENSORS_IT87)	+= it87.o
 obj-$(CONFIG_SENSORS_LM63)	+= lm63.o
+obj-$(CONFIG_SENSORS_LM70)	+= lm70.o
 obj-$(CONFIG_SENSORS_LM75)	+= lm75.o
 obj-$(CONFIG_SENSORS_LM77)	+= lm77.o
 obj-$(CONFIG_SENSORS_LM78)	+= lm78.o
Signature · 1 line
Jean Delvare