linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Hennerich <michael.hennerich@analog.com>
To: "J.I. Cameron" <jic23@cam.ac.uk>
Cc: Jonathan Cameron <jic23@kernel.org>,
	"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
	"device-drivers-devel@blackfin.uclinux.org"
	<device-drivers-devel@blackfin.uclinux.org>,
	Drivers <Drivers@analog.com>
Subject: Re: [PATCH] iio: pll: New driver for ADF4350/ADF4351 Wideband Synthesizers (PLL)
Date: Wed, 21 Dec 2011 11:35:28 +0100	[thread overview]
Message-ID: <4EF1B670.2040306@analog.com> (raw)
In-Reply-To: <Prayer.1.3.4.1112201145580.21192@hermes-2.csi.cam.ac.uk>

On 12/20/2011 12:45 PM, J.I. Cameron wrote:
> On Dec 20 2011, Michael Hennerich wrote:
>
>> On 12/14/2011 09:29 PM, Jonathan Cameron wrote:
>>> On 12/12/2011 10:17 AM, Michael Hennerich wrote:
>>>> On 12/10/2011 03:41 PM, Jonathan Cameron wrote:
>>>>> On 12/09/2011 01:22 PM, michael.hennerich@analog.com wrote:
>>>>>
>>> There is also the double indexes that we don't allow anywhere else.
>>> They are here because we have different waveforms with same underlying
>>> channel.  We could had a bonus optional index to all channels I suppose
>>> and have this as the only current user?  Or maybe just a flag to say its
>>> a 'subchannel' and use channel2.  Afterall these channels are neither
>>> going to have modifiers or to be differential so I can't see a clash
>>> occuring on the use of that...
>> Well one of the indexes with the DDS parts is used to distinguish
>> the tuning words options, in combination with the pincontrol feature.
>> PLL devices typically doesn't feature this.
>>
>> So bottom line - can we agree on:
>>
>> out_altvoltageX_freqY
>> out_altvoltageX_phaseY
>> out_altvoltageX_scale
>> out_altvoltageX_enable
>> ...
>> Where X stands for the output channel, and Y for some sort of option.
> Looks good as far as I am concerned. Might be worth a quick check through
> of dds and meter devices to see how we can extend this to cover them.

Hi Jonathan,

Looked at the various use cases. And the only user for the second
subindex seems to be the DDS parts.

I now wondering if we should handle freqY and phaseY by using extended_name,
rather than adding new postfixes for them. Which is going to be 
difficult anyways,
since I may need the current postfixes such as _scale as well.

out_altvoltageX_freqY_scale
out_altvoltageX_phaseY_scale

An alternative could be to introduce an indexed extended_name, using the index passed in channel2?
Not sure if it is worth adding it?



-- 
Greetings,
Michael

--
Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Sitz der Gesellschaft: Muenchen; Registergericht: Muenchen HRB 40368;
Geschaeftsfuehrer:Dr.Carsten Suckrow, Thomas Wessel, William A. Martin,
Margaret Seif

  reply	other threads:[~2011-12-21 10:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-09 13:22 [PATCH] iio: pll: New driver for ADF4350/ADF4351 Wideband Synthesizers (PLL) michael.hennerich
2011-12-10 14:41 ` Jonathan Cameron
2011-12-12 10:17   ` Michael Hennerich
2011-12-14 20:29     ` Jonathan Cameron
2011-12-20  9:08       ` Michael Hennerich
2011-12-20 11:45         ` J.I. Cameron
2011-12-21 10:35           ` Michael Hennerich [this message]
2011-12-21 11:56             ` J.I. Cameron
2011-12-21 12:37               ` Michael Hennerich
2011-12-21 13:11                 ` J.I. Cameron

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=4EF1B670.2040306@analog.com \
    --to=michael.hennerich@analog.com \
    --cc=Drivers@analog.com \
    --cc=device-drivers-devel@blackfin.uclinux.org \
    --cc=jic23@cam.ac.uk \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).