All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Hector Palacios <hector.palacios@digi.com>
Cc: linux-iio@vger.kernel.org,
	"fabio.estevam@freescale.com" <fabio.estevam@freescale.com>
Subject: Re: Accessing specific hardware features of mxs-lradc
Date: Tue, 2 Jul 2013 14:06:19 +0200	[thread overview]
Message-ID: <201307021406.19310.marex@denx.de> (raw)
In-Reply-To: <51D2B057.9090005@digi.com>

Hi Hector,

> Greetings,
> 
> The mxs-lradc has some hardware specific features like the DIVIDE_BY_TWO
> (an analog divide by two circuit that can be activated per channel).
> This is not currently implemented in the driver and I was wondering what
> would be the way to expose and control such setting. A specific sysfs
> entry? Somehow through the device tree?

The proper way would be to see of IIO doesn't already have some ways to control 
those (it likely does) and then these would automatically be accessible via 
sysfs.

> Is there any example of how to control a hw-specific feature in other
> similar iio drivers?

None that I'm aware of, but I didn't look. I suspect this would be somewhere 
around the channel defitionion, since the /2 function of the LRADC is a per-
channel feature on the LRADC.

Best regards,
Marek Vasut

  reply	other threads:[~2013-07-02 12:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-02 10:49 Accessing specific hardware features of mxs-lradc Hector Palacios
2013-07-02 12:06 ` Marek Vasut [this message]
2013-07-02 12:58 ` Lars-Peter Clausen
2013-07-02 13:28   ` Alexandre Belloni
2013-07-02 14:55     ` Hector Palacios
2013-07-02 15:21       ` Lars-Peter Clausen
2013-07-02 15:41         ` Lars-Peter Clausen
2013-07-02 15:45         ` Alexandre Belloni
2013-07-02 15:55           ` Lars-Peter Clausen

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=201307021406.19310.marex@denx.de \
    --to=marex@denx.de \
    --cc=fabio.estevam@freescale.com \
    --cc=hector.palacios@digi.com \
    --cc=linux-iio@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.