From: Andrey Smirnov <andrew.smirnov@gmail.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Barebox List <barebox@lists.infradead.org>
Subject: Re: [RFC] iodevice support
Date: Wed, 9 Dec 2015 22:24:37 -0800 [thread overview]
Message-ID: <CAHQ1cqEiW3czDqrRWcSZ=3KWYe-yM=wCMJrF3JzgkXnADzRMRA@mail.gmail.com> (raw)
In-Reply-To: <1449565539-29374-1-git-send-email-s.hauer@pengutronix.de>
On Tue, Dec 8, 2015 at 1:05 AM, Sascha Hauer <s.hauer@pengutronix.de> wrote:
> The following is something like a mixture of Linux IIO and hwmon support
> for the poor. I called it iodevice, but better names are appreciated.
> A iodevice has multiple channels, each providing a value like for
> example a temperature or a voltage. For each iodevice we provide device
> parameters to access the values from the commandline. The C API for a
> consumer consists of iochannel_get() to get a iochannel, and
> iochannel_get_value() to actually read a value.
> As drivers we currently have a LM75 temperature driver and a MCP342x ADC
> driver. Also there is a PT100 driver which itself is a consumer of
> another iodevice, a MCP342x in my case. This is more meant as an example
> since the voltage to temperature conversion function is board specific.
One feature that I would like to suggest/request in this API is
ability to give custom names to individual channels via DT. AFAIU, as
of right now, that the names are hard coded and assigned automatically
by the subsystem.
The reason why I am asking is because a fair number of use-cases for
Barebox that I see is as a board verification tool and as such it is
often used by people who may not be as familiar (if at all) with
Barebox, it's code and how "in_value%d_%s" relates to the actual
parameter reading they are trying to verify.
Thanks,
Andrey
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2015-12-10 6:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-08 9:05 Sascha Hauer
2015-12-08 9:05 ` [PATCH 1/4] misc: Add " Sascha Hauer
2015-12-10 20:42 ` Trent Piepho
2015-12-11 7:37 ` Sascha Hauer
2015-12-08 9:05 ` [PATCH 2/4] misc: Add basic LM75 temperature driver Sascha Hauer
2015-12-08 9:05 ` [PATCH 3/4] misc: Add Microchip MCP342x support Sascha Hauer
2015-12-08 9:05 ` [PATCH 4/4] misc: Add PT100 temperature sensor support Sascha Hauer
2015-12-10 6:24 ` Andrey Smirnov [this message]
2015-12-10 10:25 ` [RFC] iodevice support Sascha Hauer
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='CAHQ1cqEiW3czDqrRWcSZ=3KWYe-yM=wCMJrF3JzgkXnADzRMRA@mail.gmail.com' \
--to=andrew.smirnov@gmail.com \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/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