From: Jonathan Cameron <jic23@kernel.org>
To: Sirat <email@sirat.me>
Cc: David Lechner <dlechner@baylibre.com>,
Andy Shevchenko <andriy.shevchenko@intel.com>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
nuno.sa@analog.com, andy@kernel.org, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 0/2] iio: proximity: add driver for ST VL53L1X ToF sensor
Date: Sun, 15 Mar 2026 18:57:15 +0000 [thread overview]
Message-ID: <20260315185715.2f97c496@jic23-huawei> (raw)
In-Reply-To: <CANn+LWK2OZ1dm0TAstM2hr6O6h2nEPRrNfje0mC3a2uc0HEwVQ@mail.gmail.com>
On Sat, 14 Mar 2026 21:25:44 +0600
Sirat <email@sirat.me> wrote:
> On Sat, Mar 14, 2026 at 8:39 PM David Lechner <dlechner@baylibre.com> wrote:
> >
> > On 3/12/26 10:12 AM, Sirat wrote:
> > > On Thu, Mar 12, 2026 at 8:28 PM Andy Shevchenko
> > > <andriy.shevchenko@intel.com> wrote:
> > >>
> > >> On Thu, Mar 12, 2026 at 04:40:35AM +0600, Siratul Islam wrote:
> > > ...
> > >>> ---
> > >>> Changes in v3:
> > >>> - Merge DT binding into existing st,vl53l0x.yaml (per Krzysztof).
> > >>> - Use "reset-gpios" in the binding but xshut_gpio in the driver since that's the actual pin name.
> > >>
> >
> > We can modify the existing binding to make the supply required based
> > on the compatible.
> >
> > allOf:
> > # Technically supply is required to power device, but we keep it
> > # optional for "st,vl53l0x" for backwards compatibility.
> > - if:
> > not:
> > properties:
> > compatible:
> > const: "st,vl53l0x"
> > then:
> > required:
> > vdd-supply
> >
> >
> > And we can add a description to reset-gpios to explain that it is actually the
> > XSHUT pin.
> >
> This will solve the problem, but I'm concerned about someone not
> following the commit history looking at the code.
> Logically, it doesn't make sense as both the devices require the
> supply. In fact it may give the impression that
> the vl53l0x explicitly doesn't need power. We are having to deal with
> too much just to save us from writing a new file.
>
> That said, I can still implement this if it's still the prefered way
> to solve our problem. Or leave it optional as it is.
> >
Can make it required in the binding. Just explain clearly why
it should be there. The driver should carry on coping without
it though (and leave a comment so we don't break that in the future).
Jonathan
>
next prev parent reply other threads:[~2026-03-15 18:57 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-11 22:40 [PATCH v3 0/2] iio: proximity: add driver for ST VL53L1X ToF sensor Siratul Islam
2026-03-11 22:40 ` [PATCH v3 1/2] dt-bindings: iio: proximity: add " Siratul Islam
2026-03-11 22:40 ` [PATCH v3 2/2] iio: proximity: add driver for " Siratul Islam
2026-03-12 14:58 ` Andy Shevchenko
2026-03-12 17:37 ` Sirat
2026-03-13 9:35 ` Andy Shevchenko
2026-03-13 10:55 ` Sirat
2026-03-14 12:27 ` Jonathan Cameron
2026-03-12 14:27 ` [PATCH v3 0/2] " Andy Shevchenko
2026-03-12 15:12 ` Sirat
2026-03-12 15:23 ` Andy Shevchenko
2026-03-14 14:39 ` David Lechner
2026-03-14 15:25 ` Sirat
2026-03-15 18:57 ` Jonathan Cameron [this message]
2026-03-15 23:20 ` Sirat
2026-03-22 11:57 ` 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=20260315185715.2f97c496@jic23-huawei \
--to=jic23@kernel.org \
--cc=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=email@sirat.me \
--cc=krzk+dt@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--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