archive mirror
 help / color / mirror / Atom feed
From: "Guido Günther" <>
To: Jonathan Cameron <>
Subject: Exposing device properties for priximity sensors
Date: Mon, 10 Feb 2020 16:41:54 +0100	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <20200208141713.469fb174@archlinux>

Hi Jonathan,
I've been extending iio-sensor-proxy to handle iio based proximity

The API to applications shall not export the raw value but rather tell
if an object is near by:

So in the simplest case we'd have to set a level above which an object
is considered close:

My intitial intent was to expose that via DT but looking around in iio
drivers i couldn't see any driver doing that (i missed
iio_read_mount_matrix) and noticed that the mount matrix is given via
systemd/udev's hwdb:

Since matching on hwdb is done via modalias we wouldn't be able to have
different values on different boards without DMI/smbios:

The matching rule is explained here:

So would specifying this via DT and then exporting via sysfs be an
acceptable solution? That is inventing something like
iio_read_close_level. The value would not be used by the driver itself
but only exposed to userspace.
 -- Guido

      reply	other threads:[~2020-02-10 15:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-07  9:12 [PATCH] iio: vncl4000: Fix early return in vcnl4200_set_power_state Guido Günther
2020-02-07 19:45 ` Matt Ranostay
2020-02-08 14:17 ` Jonathan Cameron
2020-02-10 15:41   ` Guido Günther [this message]

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \
    --subject='Re: Exposing device properties for priximity sensors' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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