From: Jonathan Cameron <jic23@kernel.org>
To: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>
Cc: Krzysztof Kozlowski <krzk@kernel.org>,
"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
"andriy.shevchenko@linux.intel.com"
<andriy.shevchenko@linux.intel.com>,
Lars-Peter Clausen <lars@metafoo.de>,
Rob Herring <robh@kernel.org>, Conor Dooley <conor+dt@kernel.org>,
Emil Gedenryd <emil.gedenryd@axis.com>,
Andreas Dannenberg <dannenberg@ti.com>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3] dt-bindings: iio: light: opt3001: add compatible for opt3004
Date: Sat, 28 Dec 2024 13:19:29 +0000 [thread overview]
Message-ID: <20241228131929.49e4a90d@jic23-huawei> (raw)
In-Reply-To: <PN0P287MB2843E7005997F1728B0F9B2CFF0F2@PN0P287MB2843.INDP287.PROD.OUTLOOK.COM>
On Sat, 28 Dec 2024 10:54:33 +0000
Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io> wrote:
> Hi Krzysztof,
>
> > On Fri, Dec 27, 2024 at 06:41:32PM +0530, Hardevsinh Palaniya wrote:
> > > Add Support for OPT3004 Digital ambient light sensor (ALS) with
> > > increased angular IR rejection.
> > >
> > > The OPT3004 sensor shares the same functionality and scale range as
> > > the OPT3001. The compatible string is added with fallback support to
> > > ensure compatibility.
> > >
> > > Datasheet: https://www.ti.com/lit/gpn/opt3004
> > > Signed-off-by: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>
> > > ---
> > >
> > > v2 -> v3:
> > >
> > > - Reverse the order of compatible string
> > >
> > > v1 -> v2:
> > >
> > > - Use fallback mechanism for the OPT3004.
> > > - Drop 2/2 patch from the patch series[1] as per feedback.
> > >
> > > Link[1]: https://lore.kernel.org/linux-iio/20241224061321.6048-1-hardevsinh.palaniya@siliconsignals.io/T/#t
> >
> >
> > And where is any user of this, the DTS? We don't take bindings just
> > because there is such device out there.
> >
> > I looked and nothing:
> > https://lore.kernel.org/all/?q=ti%2Copt3004
>
> I added compatibility for the OPT3004 into the driver. However,
> based on Andy's feedback, it seems there might not be a need
> to include this directly in the driver.
> (Refer to Link [1] from the changelog.)
>
> we could follow a similar approach to how we handled the ADXL346,
> by just adding it to the bindings, since the ADXL346 is similar to the
> ADXL345.
>
> If I misunderstood then please let me know.
Perhaps give some more information on the device in which this is found?
If that's a board that you plan to support upstream in the longer term
then that would provide more justification for this patch.
The note on the opt3001 page does give a hint as to how the parts are different
but saying the opt3004 has better IR rejection. They also have a somewhat different
sensitivity curves. However, those are details we don't expose in the ABI and the
devices unhelpfully report the same ID register value, so it is not obvious that
we need to treat them differently.
Jonathan
>
> Best Regards,
> Hardev
next prev parent reply other threads:[~2024-12-28 13:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-27 13:11 [PATCH v3] dt-bindings: iio: light: opt3001: add compatible for opt3004 Hardevsinh Palaniya
2024-12-28 10:14 ` Krzysztof Kozlowski
2024-12-28 10:54 ` Hardevsinh Palaniya
2024-12-28 13:19 ` Jonathan Cameron [this message]
2024-12-30 7:34 ` Hardevsinh Palaniya
2025-01-02 21:34 ` Rob Herring
2025-01-04 12:45 ` Jonathan Cameron
2024-12-29 9:45 ` Krzysztof Kozlowski
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=20241228131929.49e4a90d@jic23-huawei \
--to=jic23@kernel.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=conor+dt@kernel.org \
--cc=dannenberg@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=emil.gedenryd@axis.com \
--cc=hardevsinh.palaniya@siliconsignals.io \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@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