From: Jonathan Cameron <jonathan.cameron@huawei.com>
To: Maxime Roussin-Belanger <maxime.roussinbelanger@gmail.com>
Cc: Jonathan Cameron <jic23@kernel.org>,
Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
Hartmut Knaack <knaack.h@gmx.de>,
Lars-Peter Clausen <lars@metafoo.de>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
"jeff.dagenais@gmail.com" <jeff.dagenais@gmail.com>
Subject: Re: [PATCH v2] iio: light: introduce si1133
Date: Fri, 6 Jul 2018 18:27:37 +0100 [thread overview]
Message-ID: <20180706182737.0000099d@huawei.com> (raw)
In-Reply-To: <20180703165329.ytueuawxlwqlh4pq@mbedesk.sonatest.net>
On Tue, 3 Jul 2018 12:53:30 -0400
Maxime Roussin-Belanger <maxime.roussinbelanger@gmail.com> wrote:
> On Sat, Jun 30, 2018 at 06:18:54PM +0100, Jonathan Cameron wrote:
> > On Tue, 26 Jun 2018 13:01:09 -0400
> > Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com> wrote:
> >
> > Hi Maxime
> >
> > Coming together nicely though a few minor things inline to add to Peter's
> > review.
> >
> > It would make the device a lot more useful if we could provide a lux
> > measurement. There is code out there to do this from the IR and ambient + IR
> > channels, but licensing is going to be a potential issue. See inline.
> >
> > Jonathan
> >
> > > Signed-off-by: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>
> > > Reviewed-by: Jean-Francois Dagenais <dagenaisj@sonatest.com>
> > > ---
> > > Changes in v2:
> > > - Add ABI documentation
> > > - Drop part abstraction
> > > - Clean up error handling style
> > >
> > > .../ABI/testing/sysfs-bus-iio-light-si1133 | 57 ++
> > > drivers/iio/light/Kconfig | 11 +
> > > drivers/iio/light/Makefile | 1 +
> > > drivers/iio/light/si1133.c | 809 ++++++++++++++++++
> > > 4 files changed, 878 insertions(+)
> > > create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-light-si1133
> > > create mode 100644 drivers/iio/light/si1133.c
> > >
> > > diff --git a/Documentation/ABI/testing/sysfs-bus-iio-light-si1133 b/Documentation/ABI/testing/sysfs-bus-iio-light-si1133
> > > new file mode 100644
> > > index 000000000000..4533b5699c87
> > > --- /dev/null
> > > +++ b/Documentation/ABI/testing/sysfs-bus-iio-light-si1133
> > > @@ -0,0 +1,57 @@
> > > +What: /sys/bus/iio/devices/iio:deviceX/in_intensity0_ir_small_raw
> > > +KernelVersion: 4.18
> > > +Contact: linux-iio@vger.kernel.org
> > > +Description:
> > > + Unit-less infrared intensity. The intensity is measured from 1
> > > + dark photodiode. "small" indicate the surface area capturing
> > > + infrared.
> > > +
> > > +What: /sys/bus/iio/devices/iio:deviceX/in_intensity1_ir_med_raw
> > > +KernelVersion: 4.18
> > > +Contact: linux-iio@vger.kernel.org
> > > +Description:
> > > + Unit-less infrared intensity. The intensity is measured from 2
> > > + dark photodiode. "med" indicate the surface area capturing
> > > + infrared.
> > > +
> > > +What: /sys/bus/iio/devices/iio:deviceX/in_intensity2_ir_large_raw
> > > +KernelVersion: 4.18
> > > +Contact: linux-iio@vger.kernel.org
> > > +Description:
> > > + Unit-less infrared intensity. The intensity is measured from 4
> > > + dark photodiode. "large" indicate the surface area capturing
> > > + infrared.
> >
> > I'll admit I'm lost. Why would we use the different numbers of photodiodes?
> > I get that the device supports them, but if there is a combination that is
> > normally right, I'd like that one to be the one we don't use an extended name
> > for (so generic code might look at it)
> >
>
> I have no idea which one is the "right" one. Someone with more "light" background
> could help me here.
>
> I can try to figure out which one seems like the "normal" one with some testing.
That would be great.
>
...
> > > +
> > > +What: /sys/bus/iio/devices/iio:deviceX/in_uvindex25_deep_raw
> > > +KernelVersion: 4.18
> > > +Contact: linux-iio@vger.kernel.org
> > > +Description:
> > > + UV light intensity index measuring the human skin's response to
> > > + deep ultraviolet (DUV) wavelength of sunlight weighted according
> > > + to the standardised CIE Erythemal Action Spectrum.
> >
> > I think we need a new modifier for this one. Please propose something suitable.
> > I doubt it'll be the last time we see a sensor measuring this!
> >
>
> I think something around "IIO_MOD_LIGHT_DUV" seems appropriate. It looks like a
> lot of papers are using that acronym.
>
Sounds good to me.
next prev parent reply other threads:[~2018-07-06 17:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-26 17:01 [PATCH v2] iio: light: introduce si1133 Maxime Roussin-Bélanger
2018-06-27 20:02 ` Peter Meerwald-Stadler
2018-06-28 14:34 ` Maxime Roussin-Belanger
2018-06-30 16:37 ` Jonathan Cameron
2018-07-03 16:28 ` Maxime Roussin-Belanger
2018-07-06 17:26 ` Jonathan Cameron
2018-06-30 17:18 ` Jonathan Cameron
2018-07-03 16:53 ` Maxime Roussin-Belanger
2018-07-06 17:27 ` Jonathan Cameron [this message]
2018-07-05 13:49 ` Maxime Roussin-Belanger
2018-07-06 17:36 ` Jonathan 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=20180706182737.0000099d@huawei.com \
--to=jonathan.cameron@huawei.com \
--cc=jeff.dagenais@gmail.com \
--cc=jic23@kernel.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=maxime.roussinbelanger@gmail.com \
--cc=pmeerw@pmeerw.net \
/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).