mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: David Brownell <david-b@pacbell.net>, linux-kernel@vger.kernel.org
Subject: Re: [RFC] generic GPIO parameter API
Date: Mon, 9 Jun 2008 19:09:00 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0806091906420.25460@axis700.grange> (raw)
In-Reply-To: <20080609165438.GE17278@sirena.org.uk>

On Mon, 9 Jun 2008, Mark Brown wrote:

> On Mon, Jun 09, 2008 at 06:23:50PM +0200, Guennadi Liakhovetski wrote:
> > On Thu, 5 Jun 2008, David Brownell wrote:
> > > On Monday 02 June 2008, Guennadi Liakhovetski wrote:
> 
> > > > as far as I understand, the current GPIO API only presents very basic GPIO 
> > > > functionality: direction and level reading and writing. Whereas many GPIO 
> > > > controllers have many further configurable parameters: pull-ups and 
> > > > pull-downs, drive strength, slew rate, etc.
> 
> > > Not at all how I'd describe it.  Those omitted mechanisms are part
> > > of pin configuration, in the same way as function multiplexing is.
> > > (That is, assigning a given pin for use as a GPIO, vs hooking it up
> > > to an I2C, MMC, SPI, LCD, I2S, or memory controller.)
> 
> > Yes, on the one hand you're right, this belongs to pin-configuration. But, 
> > otoh, will anyone ever want to change these parameters on non-generic 
> > pins? And should this be allowed? Whereas for GPIOs it clearly makes a 
> 
> They do get configured like that - for example, most I2S devices are
> able to operate as both clock masters and clock slaves.  Often this
> accomplished (at least in part) by configuring the relevant pins as
> inputs or outputs.

The primary purpose of the GPIO-parameter proposal was to allow to 
configure these parameters from the user-space over sysfs by extending the 
gpio-sysfs patch. And I2S master / slave operation should not be 
switchable over sysfs, should it?

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer

  reply	other threads:[~2008-06-09 17:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-02 17:22 Guennadi Liakhovetski
2008-06-02 17:54 ` Guennadi Liakhovetski
2008-06-02 23:13   ` Ben Nizette
2008-06-03  6:42     ` Guennadi Liakhovetski
2008-06-03  7:32       ` Ben Nizette
2008-06-03  8:29         ` Guennadi Liakhovetski
2008-06-03 22:02           ` Ben Nizette
2008-06-06  5:29 ` David Brownell
2008-06-06  5:50   ` Guennadi Liakhovetski
2008-06-09 16:23   ` Guennadi Liakhovetski
2008-06-09 16:54     ` Mark Brown
2008-06-09 17:09       ` Guennadi Liakhovetski [this message]
2008-06-10  9:43         ` Mark Brown

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=Pine.LNX.4.64.0806091906420.25460@axis700.grange \
    --to=g.liakhovetski@gmx.de \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=david-b@pacbell.net \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®