linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* supporting binary (near-far) proximity sensors over gpio
@ 2023-11-17 18:21 Sicelo
  2023-11-19  0:09 ` David Lechner
  0 siblings, 1 reply; 7+ messages in thread
From: Sicelo @ 2023-11-17 18:21 UTC (permalink / raw)
  To: linux-iio; +Cc: maemo-leste, Ivaylo Dimitrov, linux-input

Hi

Some phones have 1-bit proximity sensors, which simply toggle a GPIO
line to indicate that an object is near or far. Thresholds are set at
hardware level. One such sensor is OSRAM SFH 7741 [1], which is used on
the Nokia N900.

It is currently exported over evdev, emitting the SW_FRONT_PROXIMITY key
code [2].

So the question is: should a new, general purpose iio-gpio driver be
written, that would switch such a proximity sensor to the iio framework?
Or evdev is really the best place to support it?

There are a couple of people who are willing to write such an iio
driver, if iio is the way to go.

Regards,
Sicelo

[1] https://media.digikey.com/pdf/Data%20Sheets/Osram%20PDFs/SFH_7741.pdf
[2] https://elixir.bootlin.com/linux/v6.6.1/source/arch/arm/boot/dts/ti/omap/omap3-n900.dts#L111

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-12-04 10:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-17 18:21 supporting binary (near-far) proximity sensors over gpio Sicelo
2023-11-19  0:09 ` David Lechner
2023-11-20 17:31   ` Jonathan Cameron
2023-11-20 20:23     ` Sicelo
2023-11-26  4:33   ` Jeff LaBundy
2023-11-26 10:59     ` Philipp Jungkamp
2023-12-04 10:09       ` Jonathan Cameron

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).