From: Guenter Roeck <guenter.roeck@ericsson.com>
To: Dirk Eibach <eibach@gdsys.de>
Cc: "lm-sensors@lm-sensors.org" <lm-sensors@lm-sensors.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
"devicetree-discuss@lists.ozlabs.org"
<devicetree-discuss@lists.ozlabs.org>,
"w.sang@pengutronix.de" <w.sang@pengutronix.de>,
"rdunlap@xenotime.net" <rdunlap@xenotime.net>
Subject: Re: [lm-sensors] [PATCH] hwmon: (ads1015) Make gain and datarate
Date: Wed, 09 Mar 2011 14:40:03 +0000 [thread overview]
Message-ID: <20110309144003.GA25609@ericsson.com> (raw)
In-Reply-To: <1299678760-4027-1-git-send-email-eibach@gdsys.de>
Hi Dirk,
On Wed, Mar 09, 2011 at 08:52:40AM -0500, Dirk Eibach wrote:
> Signed-off-by: Dirk Eibach <eibach@gdsys.de>
> ---
> .../devicetree/bindings/hwmon/ads1015.txt | 73 ++++++++++++++
> Documentation/devicetree/bindings/i2c/ads1015.txt | 29 ------
> Documentation/hwmon/ads1015 | 48 +++++++---
> drivers/hwmon/ads1015.c | 104 ++++++++++++++++----
> include/linux/i2c/ads1015.h | 8 ++
> 5 files changed, 202 insertions(+), 60 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/hwmon/ads1015.txt
> delete mode 100644 Documentation/devicetree/bindings/i2c/ads1015.txt
>
> diff --git a/Documentation/devicetree/bindings/hwmon/ads1015.txt b/Documentation/devicetree/bindings/hwmon/ads1015.txt
> new file mode 100644
> index 0000000..fb6e139
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/ads1015.txt
> @@ -0,0 +1,73 @@
> +ADS1015 (I2C)
> +
> +This device is a 12-bit A-D converter with 4 inputs.
> +
> +The inputs can be used single ended or in certain differential combinations.
> +
> +For configuration all possible combinations are mapped to 8 channels:
> + 0: Voltage over AIN0 and AIN1.
> + 1: Voltage over AIN0 and AIN3.
> + 2: Voltage over AIN1 and AIN3.
> + 3: Voltage over AIN2 and AIN3.
> + 4: Voltage over AIN0 and GND.
> + 5: Voltage over AIN1 and GND.
> + 6: Voltage over AIN2 and GND.
> + 7: Voltage over AIN3 and GND.
> +
> +Each channel can be configured indvidually:
> + - pga ist the programmable gain amplifier
> + 0: FS = +/- 6.144 V
> + 1: FS = +/- 4.096 V
> + 2: FS = +/- 2.048 V (default)
> + 3: FS = +/- 1.024 V
> + 4: FS = +/- 0.512 V
> + 5: FS = +/- 0.256 V
> + - data_rate in samples per second
> + 0: 128
> + 1: 250
> + 2: 490
> + 3: 920
> + 4: 1600
> + 5: 2400
> + 6: 3300
> +
I thought the data rate only applies for continuous mode, which you don't use.
What does it do in single shot mode ?
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
WARNING: multiple messages have this Message-ID (diff)
From: Guenter Roeck <guenter.roeck@ericsson.com>
To: Dirk Eibach <eibach@gdsys.de>
Cc: "lm-sensors@lm-sensors.org" <lm-sensors@lm-sensors.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
"devicetree-discuss@lists.ozlabs.org"
<devicetree-discuss@lists.ozlabs.org>,
"w.sang@pengutronix.de" <w.sang@pengutronix.de>,
"rdunlap@xenotime.net" <rdunlap@xenotime.net>
Subject: Re: [lm-sensors] [PATCH] hwmon: (ads1015) Make gain and datarate configurable
Date: Wed, 9 Mar 2011 06:40:03 -0800 [thread overview]
Message-ID: <20110309144003.GA25609@ericsson.com> (raw)
In-Reply-To: <1299678760-4027-1-git-send-email-eibach@gdsys.de>
Hi Dirk,
On Wed, Mar 09, 2011 at 08:52:40AM -0500, Dirk Eibach wrote:
> Signed-off-by: Dirk Eibach <eibach@gdsys.de>
> ---
> .../devicetree/bindings/hwmon/ads1015.txt | 73 ++++++++++++++
> Documentation/devicetree/bindings/i2c/ads1015.txt | 29 ------
> Documentation/hwmon/ads1015 | 48 +++++++---
> drivers/hwmon/ads1015.c | 104 ++++++++++++++++----
> include/linux/i2c/ads1015.h | 8 ++
> 5 files changed, 202 insertions(+), 60 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/hwmon/ads1015.txt
> delete mode 100644 Documentation/devicetree/bindings/i2c/ads1015.txt
>
> diff --git a/Documentation/devicetree/bindings/hwmon/ads1015.txt b/Documentation/devicetree/bindings/hwmon/ads1015.txt
> new file mode 100644
> index 0000000..fb6e139
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/ads1015.txt
> @@ -0,0 +1,73 @@
> +ADS1015 (I2C)
> +
> +This device is a 12-bit A-D converter with 4 inputs.
> +
> +The inputs can be used single ended or in certain differential combinations.
> +
> +For configuration all possible combinations are mapped to 8 channels:
> + 0: Voltage over AIN0 and AIN1.
> + 1: Voltage over AIN0 and AIN3.
> + 2: Voltage over AIN1 and AIN3.
> + 3: Voltage over AIN2 and AIN3.
> + 4: Voltage over AIN0 and GND.
> + 5: Voltage over AIN1 and GND.
> + 6: Voltage over AIN2 and GND.
> + 7: Voltage over AIN3 and GND.
> +
> +Each channel can be configured indvidually:
> + - pga ist the programmable gain amplifier
> + 0: FS = +/- 6.144 V
> + 1: FS = +/- 4.096 V
> + 2: FS = +/- 2.048 V (default)
> + 3: FS = +/- 1.024 V
> + 4: FS = +/- 0.512 V
> + 5: FS = +/- 0.256 V
> + - data_rate in samples per second
> + 0: 128
> + 1: 250
> + 2: 490
> + 3: 920
> + 4: 1600
> + 5: 2400
> + 6: 3300
> +
I thought the data rate only applies for continuous mode, which you don't use.
What does it do in single shot mode ?
Thanks,
Guenter
next prev parent reply other threads:[~2011-03-09 14:40 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-09 13:52 [lm-sensors] [PATCH] hwmon: (ads1015) Make gain and datarate Dirk Eibach
2011-03-09 13:52 ` [PATCH] hwmon: (ads1015) Make gain and datarate configurable Dirk Eibach
2011-03-09 14:40 ` Guenter Roeck [this message]
2011-03-09 14:40 ` [lm-sensors] " Guenter Roeck
2011-03-09 14:47 ` [lm-sensors] [PATCH] hwmon: (ads1015) Make gain and datarate Eibach, Dirk
2011-03-09 14:47 ` [lm-sensors] [PATCH] hwmon: (ads1015) Make gain and datarate configurable Eibach, Dirk
2011-03-10 19:04 ` [lm-sensors] [PATCH] hwmon: (ads1015) Make gain and datarate Guenter Roeck
2011-03-10 19:04 ` [lm-sensors] [PATCH] hwmon: (ads1015) Make gain and datarate configurable Guenter Roeck
2011-03-12 8:18 ` [lm-sensors] [PATCH] hwmon: (ads1015) Make gain and datarate Grant Likely
2011-03-12 8:18 ` [PATCH] hwmon: (ads1015) Make gain and datarate configurable Grant Likely
2011-03-16 10:01 ` [lm-sensors] [PATCH v2] hwmon: (ads1015) Make gain and datarate Dirk Eibach
2011-03-16 10:01 ` [PATCH v2] hwmon: (ads1015) Make gain and datarate configurable Dirk Eibach
2011-03-16 20:46 ` [lm-sensors] [PATCH v2] hwmon: (ads1015) Make gain and datarate Grant Likely
2011-03-16 20:46 ` [PATCH v2] hwmon: (ads1015) Make gain and datarate configurable Grant Likely
2011-03-18 21:02 ` [lm-sensors] [PATCH v2] hwmon: (ads1015) Make gain and datarate Jean Delvare
2011-03-18 21:02 ` [PATCH v2] hwmon: (ads1015) Make gain and datarate configurable Jean Delvare
2011-03-21 10:17 ` [lm-sensors] [PATCH v2] hwmon: (ads1015) Make gain and datarate Eibach, Dirk
2011-03-21 10:17 ` [PATCH v2] hwmon: (ads1015) Make gain and datarate configurable Eibach, Dirk
2011-03-21 12:03 ` [lm-sensors] [PATCH v2] hwmon: (ads1015) Make gain and datarate Jean Delvare
2011-03-21 12:03 ` [PATCH v2] hwmon: (ads1015) Make gain and datarate configurable Jean Delvare
[not found] ` <20110321130347.44f5d16d-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2011-03-21 12:53 ` [lm-sensors] [PATCH v2] hwmon: (ads1015) Make gain and datarate Wolfram Sang
2011-03-21 12:53 ` [PATCH v2] hwmon: (ads1015) Make gain and datarate configurable Wolfram Sang
2011-03-21 10:37 ` [lm-sensors] [PATCH] hwmon: (ads1015) Make gain and datarate Dirk Eibach
2011-03-21 10:37 ` [PATCH] hwmon: (ads1015) Make gain and datarate configurable Dirk Eibach
2011-03-21 13:05 ` [lm-sensors] [PATCH] hwmon: (ads1015) Make gain and datarate Jean Delvare
2011-03-21 13:05 ` [PATCH] hwmon: (ads1015) Make gain and datarate configurable Jean Delvare
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110309144003.GA25609@ericsson.com \
--to=guenter.roeck@ericsson.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=eibach@gdsys.de \
--cc=linux-doc@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=rdunlap@xenotime.net \
--cc=w.sang@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.