All of lore.kernel.org
 help / color / mirror / Atom feed
* IIO:ADC Scan Modes
@ 2010-05-04  9:48 Hennerich, Michael
  2010-05-04 10:37 ` Jonathan Cameron
  0 siblings, 1 reply; 4+ messages in thread
From: Hennerich, Michael @ 2010-05-04  9:48 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: linux-iio@vger.kernel.org,
	uclinux-dist-devel@blackfin.uclinux.org, Getz, Robin

The way available scan modes are handled in the max1363 driver doesn't
nicely equate to the AD7997, AD7997 or AD7991 series of ADCs.
These devices feature up to 8 Channels while each channel can be independen=
tly
included into the scan sequence.
(this would require up to 256 'named' modes)

A while ago we talked about this - and you said you would abandon the
'named' scan mode selection - and come up with something like a scan_elemen=
ts
directory with channel control files (enable/disable), and some sort of mec=
hanism
that rejects invalid combinations.

I noticed some additions ...
[PATCH 04/19] staging:iio: Support functions for scan mask matching

But the sysfs interface is not in place.
Is this something you're still planning to put into place?

Best regards,
Michael


------------------------------------------------------------------
********* Analog Devices GmbH              Open Platform Solutions
**  *****
**     ** Wilhelm-Wagenfeld-Strasse 6
**  ***** D-80807 Munich
********* Germany
Registergericht M=FCnchen HRB 40368,  Gesch=E4ftsf=FChrer: Thomas Wessel, W=
illiam A. Martin, Margaret K. Seif

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: IIO:ADC Scan Modes
  2010-05-04  9:48 IIO:ADC Scan Modes Hennerich, Michael
@ 2010-05-04 10:37 ` Jonathan Cameron
  2010-05-04 10:47   ` Jonathan Cameron
  2010-05-04 10:53   ` Hennerich, Michael
  0 siblings, 2 replies; 4+ messages in thread
From: Jonathan Cameron @ 2010-05-04 10:37 UTC (permalink / raw)
  To: Hennerich, Michael
  Cc: linux-iio@vger.kernel.org,
	uclinux-dist-devel@blackfin.uclinux.org, Getz, Robin

Hi Michael
> The way available scan modes are handled in the max1363 driver doesn'=
t
> nicely equate to the AD7997, AD7997 or AD7991 series of ADCs.
> These devices feature up to 8 Channels while each channel can be inde=
pendently
> included into the scan sequence.
> (this would require up to 256 'named' modes)
I agree entirely.  The approach originally used in max1363 has gone in =
the latest
patch set posted the other day (indeed the set you reference below)
>=20
> A while ago we talked about this - and you said you would abandon the
> 'named' scan mode selection - and come up with something like a scan_=
elements
> directory with channel control files (enable/disable), and some sort =
of mechanism
> that rejects invalid combinations.
>=20
> I noticed some additions ...
> [PATCH 04/19] staging:iio: Support functions for scan mask matching
Yup.  That's what max1363 now does. In the same series, see
[PATCH 08/19] staging:iio:max1363 move to new abi.

(as the new abi didn't allow the 'named' scan mode approach!)

Other than some renaming, the lis3l20dq for example has done the scan_e=
lements
approach from the start (as have some of the others.)

Jonathan


>=20
> But the sysfs interface is not in place.
> Is this something you're still planning to put into place?
>=20
> Best regards,
> Michael
>=20
>=20
> ------------------------------------------------------------------
> ********* Analog Devices GmbH              Open Platform Solutions
> **  *****
> **     ** Wilhelm-Wagenfeld-Strasse 6
> **  ***** D-80807 Munich
> ********* Germany
> Registergericht M=FCnchen HRB 40368,  Gesch=E4ftsf=FChrer: Thomas Wes=
sel, William A. Martin, Margaret K. Seif
>=20
>=20


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: IIO:ADC Scan Modes
  2010-05-04 10:37 ` Jonathan Cameron
@ 2010-05-04 10:47   ` Jonathan Cameron
  2010-05-04 10:53   ` Hennerich, Michael
  1 sibling, 0 replies; 4+ messages in thread
From: Jonathan Cameron @ 2010-05-04 10:47 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Hennerich, Michael, linux-iio@vger.kernel.org,
	uclinux-dist-devel@blackfin.uclinux.org, Getz, Robin

On 05/04/10 11:37, Jonathan Cameron wrote:
> Hi Michael
>> The way available scan modes are handled in the max1363 driver doesn't
>> nicely equate to the AD7997, AD7997 or AD7991 series of ADCs.
>> These devices feature up to 8 Channels while each channel can be independently
>> included into the scan sequence.
>> (this would require up to 256 'named' modes)
> I agree entirely.  The approach originally used in max1363 has gone in the latest
> patch set posted the other day (indeed the set you reference below)
>>
>> A while ago we talked about this - and you said you would abandon the
>> 'named' scan mode selection - and come up with something like a scan_elements
>> directory with channel control files (enable/disable), and some sort of mechanism
>> that rejects invalid combinations.
>>
>> I noticed some additions ...
>> [PATCH 04/19] staging:iio: Support functions for scan mask matching
> Yup.  That's what max1363 now does. In the same series, see
> [PATCH 08/19] staging:iio:max1363 move to new abi.
> 
> (as the new abi didn't allow the 'named' scan mode approach!)

As a footnote.  The max1363 changes are about the least tested and most complex
part of that patch set, so any comments from anyone on that or other aspects of
the set are welcome!  I'll need to get these to Greg fairly soon if they are going
to merge in the next window.

> Other than some renaming, the lis3l20dq for example has done the scan_elements
> approach from the start (as have some of the others.)
> 
> Jonathan
> 
> 
>>
>> But the sysfs interface is not in place.
>> Is this something you're still planning to put into place?
>>
>> Best regards,
>> Michael
>>
>>
>> ------------------------------------------------------------------
>> ********* Analog Devices GmbH              Open Platform Solutions
>> **  *****
>> **     ** Wilhelm-Wagenfeld-Strasse 6
>> **  ***** D-80807 Munich
>> ********* Germany
>> Registergericht München HRB 40368,  Geschäftsführer: Thomas Wessel, William A. Martin, Margaret K. Seif
>>
>>
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: IIO:ADC Scan Modes
  2010-05-04 10:37 ` Jonathan Cameron
  2010-05-04 10:47   ` Jonathan Cameron
@ 2010-05-04 10:53   ` Hennerich, Michael
  1 sibling, 0 replies; 4+ messages in thread
From: Hennerich, Michael @ 2010-05-04 10:53 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: linux-iio@vger.kernel.org,
	uclinux-dist-devel@blackfin.uclinux.org, Getz, Robin

Hi Jonathan,
Jonathan Cameron wrote on 2010-05-04:
> Hi Michael
>> The way available scan modes are handled in the max1363 driver doesn't
>> nicely equate to the AD7997, AD7997 or AD7991 series of ADCs. These
>> devices feature up to 8 Channels while each channel can be
>> independently included into the scan sequence. (this would require up
>> to 256 'named' modes)
> I agree entirely.  The approach originally used in max1363 has gone in
> the latest patch set posted the other day (indeed the set you reference
> below)
>>
>> A while ago we talked about this - and you said you would abandon
>> the 'named' scan mode selection - and come up with something like a
>> scan_elements directory with channel control files (enable/disable),
>> and some sort of mechanism that rejects invalid combinations.
>>
>> I noticed some additions ...
>> [PATCH 04/19] staging:iio: Support functions for scan mask matching
> Yup.  That's what max1363 now does. In the same series, see [PATCH
> 08/19] staging:iio:max1363 move to new abi.
>

Sorry - I missed that one.

> (as the new abi didn't allow the 'named' scan mode approach!)
>
> Other than some renaming, the lis3l20dq for example has done the
> scan_elements approach from the start (as have some of the others.)
>
> Jonathan
>
>
>>
>> But the sysfs interface is not in place.
>> Is this something you're still planning to put into place?
>>
>> Best regards,
>> Michael
>>
>>
>> ------------------------------------------------------------------
>> ********* Analog Devices GmbH              Open Platform Solutions
>> **  *****
>> **     ** Wilhelm-Wagenfeld-Strasse 6
>> **  ***** D-80807 Munich
>> ********* Germany
>> Registergericht M=FCnchen HRB 40368,  Gesch=E4ftsf=FChrer: Thomas Wessel=
,
>> William A. Martin, Margaret K. Seif
>>
>>

Greetings,
Michael

Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Sitz der Gesellschaft Muenchen, Registergericht Muenchen HRB 4036 Geschaeft=
sfuehrer Thomas Wessel, William A. Martin, Margaret Seif

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-04 10:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-04  9:48 IIO:ADC Scan Modes Hennerich, Michael
2010-05-04 10:37 ` Jonathan Cameron
2010-05-04 10:47   ` Jonathan Cameron
2010-05-04 10:53   ` Hennerich, Michael

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.