:: Re: [maemo-leste] supporting binary…
Top Page
Delete this message
Reply to this message
Author: Sicelo
To: Jonathan Cameron
CC: David Lechner, linux-iio, maemo-leste, Ivaylo Dimitrov, linux-input
Subject: Re: [maemo-leste] supporting binary (near-far) proximity sensors over gpio

On Mon, Nov 20, 2023 at 05:31:31PM +0000, Jonathan Cameron wrote:
> > Since this is really a proximity switch (it is either on or off)
> > rather than measuring a proximity value over a continuous range, it
> > doesn't seem like a good fit for the iio subsystem. If the sensor is
> > on a phone, then it is likely to detect human presence so the input
> > subsystem does seem like the right one for that application.
> >
> > More at https://www.kernel.org/doc/html/latest/driver-api/iio/intro.html
> >
> Agreed. This one at least has a working distance of 30mm sensor, so
> definitely switch type usecases where input tends to be the right choice.
> If we wanted to use proximity range sensor for this usecase, we'd probably
> bridge it to input (maybe in userspace, maybe in kernel) from the
> underlying IIO driver.
> Jonathan

Thank you so much for the input. It makes sense.