public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: William Breathitt Gray <william.gray@linaro.org>
Cc: "D, Lakshmi Sowjanya" <lakshmi.sowjanya.d@intel.com>,
	"N, Pandith" <pandith.n@intel.com>,
	"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
	"jic23@kernel.org" <jic23@kernel.org>,
	"lars@metafoo.de" <lars@metafoo.de>,
	"Shevchenko, Andriy" <andriy.shevchenko@intel.com>,
	"Hall, Christopher S" <christopher.s.hall@intel.com>,
	"Sangannavar,
	Mallikarjunappa\" <mallikarjunappa.sangannavar@intel.com>,
	T R"@domain.invalid,
	"Thejesh Reddy <thejesh.reddy.t.r@intel.com>"@domain.invalid
Subject: Re: Intel Timed-IO driver in IIO/Counter subsystem
Date: Fri, 17 Jun 2022 18:15:26 +0100	[thread overview]
Message-ID: <20220617181526.0000067b@Huawei.com> (raw)
In-Reply-To: <YqyJslf2UsM32xRP@fedora>

On Fri, 17 Jun 2022 10:03:30 -0400
William Breathitt Gray <william.gray@linaro.org> wrote:

> On Fri, Jun 17, 2022 at 06:37:14AM +0000, N, Pandith wrote:
> > Hi,
> > 
> > We have a Intel Timed IO peripheral with following functionalities :
> > 
> > 1. Event capture capability - Captures event count and timestamp.
> > 2. Pulse generation - periodic or single event generation.
> > 3. Return cross-timestamp on request.
> > 
> > Timed IO device is being used in various Industrial use cases such as : time capture, synchronization, fan speed calculation etc.
> > 
> > IIO or counter subsystem seems to be suitable for timed-io driver.
> > 
> > Is it favourable to implement as part of IIO or counter subsystem ? Wanted to know your feedback.
> > 
> > We may need to use custom ABI for sysfs based user interaction OR
> > Can we enhance ioctl interface to accommodate our use case (counter-chardev.c) ?
> > Since timed-io works in nano second precision, ioctl is more suitable.
> > 
> > Regards,
> > Pandith and Sowjanya
> > 
> > ps : resent the mail with plain text as delivery to linux-iio@vger.kernel.org failed.  
> 
> Hello Pandith and Sowjanya,
> 
> What you are describing sounds similar to what counter-chardev.c tries
> to solve (i.e. Counter events with timestamps). Would you elaborate more
> on how this device works and what you are trying to accomplish with it?
> 
> For example, when you refer to an "event count and timestamp", does
> count here mean the internal device hardware timestamp or is this the
> Linux system timestamp? Does "pulse generation" refer to capturing the
> count on some physical line signal, or is this a device-internal timer
> countdown trigger event? Is "cross-timestamp" referring to a difference
> calculation between two count events?
> 
> Thanks,
> 
> William Breathitt Gray
> 

If there is any chance of some docs access it might cut down people trying to
interpret what "Captures event count and timestamp" means! :) That could be
read as encoder type cases or it could be read as single event capture.

As you've discovered, the boundaries can get rather blurred!

Jonathan

  reply	other threads:[~2022-06-17 17:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-17  6:37 Intel Timed-IO driver in IIO/Counter subsystem N, Pandith
2022-06-17  7:22 ` Lars-Peter Clausen
2022-06-17  9:51   ` Shevchenko, Andriy
2022-06-17 11:39     ` Linus Walleij
2022-06-18  2:01       ` Hall, Christopher S
2022-06-23 12:21         ` Linus Walleij
2022-07-05  3:16           ` Kent Gibson
2022-07-06  5:52             ` Hall, Christopher S
2022-07-06 23:05               ` Linus Walleij
2022-07-07  3:21                 ` Kent Gibson
2022-06-17 14:03 ` William Breathitt Gray
2022-06-17 17:15   ` Jonathan Cameron [this message]
2022-06-18  1:01 ` Hall, Christopher S
2022-06-21 13:58   ` William Breathitt Gray

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=20220617181526.0000067b@Huawei.com \
    --to=jonathan.cameron@huawei.com \
    --cc="Sangannavar, Mallikarjunappa\" <mallikarjunappa.sangannavar@intel.com>, T R"@domain.invalid \
    --cc="Thejesh Reddy <thejesh.reddy.t.r@intel.com>"@domain.invalid \
    --cc=andriy.shevchenko@intel.com \
    --cc=christopher.s.hall@intel.com \
    --cc=jic23@kernel.org \
    --cc=lakshmi.sowjanya.d@intel.com \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=pandith.n@intel.com \
    --cc=william.gray@linaro.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