From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: "Nuno Sá" <noname.nuno@gmail.com>
Cc: "Andy Shevchenko" <andy.shevchenko@gmail.com>,
"Maíra Canal" <maira.canal@usp.br>,
"Jonathan Cameron" <jic23@kernel.org>,
linux-iio <linux-iio@vger.kernel.org>,
"Bogdan, Dragos" <dragos.bogdan@analog.com>,
"Hegbeli, Ciprian" <ciprian.hegbeli@analog.com>,
"Cosmin Tanislav" <cosmin.tanislav@analog.com>,
"Puranjay Mohan" <puranjay12@gmail.com>
Subject: Re: GSoC Proposal 2022
Date: Tue, 12 Apr 2022 16:59:26 +0100 [thread overview]
Message-ID: <20220412165926.000004c7@Huawei.com> (raw)
In-Reply-To: <59c37b67bbc4a24336e5220a7ad4f242d854fb76.camel@gmail.com>
On Tue, 12 Apr 2022 14:06:21 +0200
Nuno Sá <noname.nuno@gmail.com> wrote:
> On Tue, 2022-04-12 at 11:48 +0300, Andy Shevchenko wrote:
> > On Tue, Apr 12, 2022 at 10:43 AM Maíra Canal <maira.canal@usp.br>
> > wrote:
> > > On 04/11, Jonathan Cameron wrote:
> >
> > ...
> >
> > > I took another look at the Analog Devices Inc. catalog and choose
> > > another
> > > couple of options:
> > >
> > > - ADPD188BI and ADPD410x: are optical devices based on SPI/I2C.
> > > I guess they
> > > might be too bold for a GSoC project.
> > > - MAX31875: is a Temperature Sensor based on I2C. Different
> > > than the optical
> > > devices, this one might be too simple.
> >
> > > - LTC2499: is a multiplexed ADC sensor. For now, it is my best
> > > option.
> >
> > Have you checked if it has similarities to 2496 and 2497 variants? We
> > already have drivers for those, it makes sense to double check.
> >
>
> Yeah, after a quick look on the datasheet, they look very similar...
>
> The MAX31875 looks to be a fairly simple one (maybe a good candidate
> for a first driver) but, IMO, having it in IIO boils down to have
> support for continuos mode which would mean triggered buffer support.
>
> And this brings me to something that already crossed my mind...
> Jonathan, would it make sense to be able to change the trigger
> "sampling frequency" depending on some device configuration? In this
> case, if we want to have continous mode, I guess a hrtimer trigger
> would be, for example, one good candidate of a trigger to attach.
> And, as we can have different SPS, we would want to have the trigger
> fireing depending on that... This could also be an additional "task"
> for you (if it makes sense of course).
In this case what defines the SPS?
Various things that sort of fit this description have come up.
* sensor self clocking but not providing an interrupt or similar, for these
it is odd enough that you normally need a dedicated kernel thread to try
and get the timing right.
* characteristic of configuration filters etc. In theory you can
grab readings from the device quicker than the filter supports, but
you will run into issues with quality of the output. For these
we've traditionally made it a userspace problem...
* Sensor that has a 'specified' sample rate (perhaps due to some filtering
or need for downtime between readings?) For this I'd be tempted to
provide the info to userspace and let that be responsible for not
running a trigger faster.
* Sensor that runs flat out and we just want to trigger it repeatedly so
we start a new capture after last one finishes. For these we have the
horibble hack which is the loop trigger (it's my hack ;)
>
> All the above said, if we do not support continuous mode, this device
> also falls nicely in the hwmon domain (with all the hyst and over
> temperature stuff).
Agreed. It's fairly slow so can't really argue pushing the data through
a buffer is worthwhile and it's a low precision sensor.
So this one belongs in hwmon. Without reading datasheet I'm not
sure but I'd look at whether it's easy to bolt into the lm75 driver.
>
> The ADPD188BI looks to be more complicated which might be too much for
> GSOC? Not sure here... That said, it looks like you can have some fun
> with it.
>
> - Nuno Sá
>
next prev parent reply other threads:[~2022-04-12 15:59 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-07 3:23 GSoC Proposal 2022 Maíra Canal
2022-04-10 17:28 ` Jonathan Cameron
2022-04-10 22:37 ` Maíra Canal
2022-04-11 8:52 ` Jonathan Cameron
2022-04-11 9:23 ` Jonathan Cameron
2022-04-11 13:13 ` Maíra Canal
2022-04-12 8:48 ` Andy Shevchenko
2022-04-12 12:06 ` Nuno Sá
2022-04-12 12:24 ` Maíra Canal
2022-04-12 14:23 ` Nuno Sá
2022-04-12 16:19 ` Jonathan Cameron
2022-04-12 19:24 ` Maíra Canal
2022-04-13 6:52 ` Nuno Sá
2022-04-12 15:59 ` Jonathan Cameron [this message]
2022-04-13 6:28 ` Nuno Sá
2022-04-11 10:08 ` Andy Shevchenko
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=20220412165926.000004c7@Huawei.com \
--to=jonathan.cameron@huawei.com \
--cc=andy.shevchenko@gmail.com \
--cc=ciprian.hegbeli@analog.com \
--cc=cosmin.tanislav@analog.com \
--cc=dragos.bogdan@analog.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=maira.canal@usp.br \
--cc=noname.nuno@gmail.com \
--cc=puranjay12@gmail.com \
/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