Skip to contentSkip to conversation

hwmon: ADC124S501 generic driver

RFC PATCH New Marc Pignat 1 participant 1 message Jul 30, 2008 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

RFC PATCH v3 1/1 hwmon: ADC124S501 generic driver

SPI driver for analog to digital converters national semiconductor ADC081S101, ADC124S501, ...

Code for 8 channels by : Tobias Himmer <[email protected]>

---

Hi all!

the message named '[RFC,PATCH v2] hwmon: ADC124S501 generic driver' contains the v1 patch!

Andrew, you're working too fast and I'm too dumb to verify what is inside my clipboard..., sorry for that.

patch against 2.6.27-rc1, tested on a custom arm board and only compile-tested on x86.

This driver add support for National Semiconductor ADC<bb><c>S<sss> chip family, where:
* bb is the resolution in number of bits (8, 10, 12)
* c is the number of channels (1, 2, 4, 8)
* sss is the maximum conversion speed (021 for 200 kSPS, 051 for 500 kSPS and 101 for 1 MSPS)

Changes from v2:
* the attatched patch is the right version

Changes from v1:
* error recovery fixed
* support for 8 channels, thanks to Tobias
* better CodingStyle

Thanks for your comments and testing ;)

Best regards

Marc

drivers/hwmon/Kconfig +16 -0
index 00ff533..9aedccc 100644
@@ -67,6 +67,22 @@ config SENSORS_AD7418
 	  This driver can also be built as a module. If so, the module
 	  will be called ad7418.
 
+config SENSORS_ADCXX
+	tristate "National Semiconductor ADCxxxSxxx"
+	depends on SPI_MASTER && EXPERIMENTAL
+	help
+	  If you say yes here you get support for the National Semiconductor
+	  ADC<bb><c>S<sss> chip family, where
+	  * bb  is the resolution in number of bits (8, 10, 12)
+	  * c   is the number of channels (1, 2, 4, 8)
+	  * sss is the maximum conversion speed (021 for 200 kSPS, 051 for 500
+	    kSPS and 101 for 1 MSPS)
+
+	  Examples : ADC081S101, ADC124S501, ...
+
+	  This driver can also be built as a module.  If so, the module
+	  will be called adcxx.
+
 config SENSORS_ADM1021
 	tristate "Analog Devices ADM1021 and compatibles"
 	depends on I2C
drivers/hwmon/Makefile +1 -0
index d098677..026ba1e 100644
@@ -16,6 +16,7 @@ obj-$(CONFIG_SENSORS_W83791D)	+= w83791d.o
 obj-$(CONFIG_SENSORS_ABITUGURU)	+= abituguru.o
 obj-$(CONFIG_SENSORS_ABITUGURU3)+= abituguru3.o
 obj-$(CONFIG_SENSORS_AD7418)	+= ad7418.o
+obj-$(CONFIG_SENSORS_ADCXX)	+= adcxx.o
 obj-$(CONFIG_SENSORS_ADM1021)	+= adm1021.o
 obj-$(CONFIG_SENSORS_ADM1025)	+= adm1025.o
 obj-$(CONFIG_SENSORS_ADM1026)	+= adm1026.o
drivers/hwmon/adcxx.c new file +329 -0

329 lines not on this page · raw message

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