All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mario Domenech Goulart <mario@ossystems.com.br>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: Otavio Salvador <otavio@ossystems.com.br>,
	Marek Vasut <marex@denx.de>, Jonathan Cameron <jic23@kernel.org>,
	linux-iio@vger.kernel.org
Subject: Re: ADC setting for differential and single-ended channels
Date: Thu, 18 Jul 2013 14:59:34 +0000	[thread overview]
Message-ID: <87ppufx6ax.fsf@parenteses.org> (raw)
In-Reply-To: <51E7F37B.4050803@metafoo.de> (Lars-Peter Clausen's message of "Thu, 18 Jul 2013 15:54:03 +0200")

Hi Lars,

On Thu, 18 Jul 2013 15:54:03 +0200 Lars-Peter Clausen <lars@metafoo.de> wrote:

> On 07/18/2013 02:02 PM, Otavio Salvador wrote:
>> On Thu, Jul 18, 2013 at 2:50 AM, Lars-Peter Clausen <lars@metafoo.de> wrote:
>>>
>>> Well the standard API as Jonathan said is to expose all possible pin
>>> combinations. In this case that might be up to 8x8=64 channels. In my
>>> opinion that's fine, but on a specific board maybe not all combinations are
>>> valid. So you might want to specify in your platform data or devicetree that
>>> only a subset of these 64 channels is valid and should be exposed to
>>> userspace. In my opinion it makes the most sense to handle this in the IIO
>>> core since this is a generic requirement, nothing specific to this chip.
>>> E.g. even for 'simple' converters you'll find situations where some pins
>>> might not be connected.
>> 
>> Right and how should we do this?
>> 
>> Because it would not be 8x8 but it has also the single-ended
>> combinations (using different N inputs).
>
> Does the device really support single ended, it looks to me as if it only
> supports pseudo-differential configurations.

That's not very clear to me either.  The datasheet states the chips have
single-ended inputs, but the mux configuration always assume a positive
input and a negative input.

I'm assuming the "single-ended" mode refers to using an arbitrary input
as negative reference to all the other n-1 inputs.  I suppose that'd be
a pseudo-differential configuration, right?

Best wishes.
Mario

  parent reply	other threads:[~2013-07-18 14:59 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-17 14:13 ADC setting for differential and single-ended channels Otavio Salvador
2013-07-17 19:12 ` Jonathan Cameron
2013-07-18  1:48   ` Otavio Salvador
2013-07-18  3:31     ` Marek Vasut
2013-07-18  3:38       ` Otavio Salvador
2013-07-18  4:08         ` Marek Vasut
2013-07-18  4:11           ` Marek Vasut
2013-07-18  5:50           ` Lars-Peter Clausen
2013-07-18 12:02             ` Otavio Salvador
2013-07-18 13:54               ` Lars-Peter Clausen
2013-07-18 14:02                 ` Otavio Salvador
2013-07-18 14:59                 ` Mario Domenech Goulart [this message]
2013-07-18 17:41                   ` Mario Domenech Goulart
2013-07-18 12:44       ` Mario Domenech Goulart
2013-07-18 13:56         ` Lars-Peter Clausen
2013-07-18 14:06           ` Otavio Salvador

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=87ppufx6ax.fsf@parenteses.org \
    --to=mario@ossystems.com.br \
    --cc=jic23@kernel.org \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=marex@denx.de \
    --cc=otavio@ossystems.com.br \
    /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.