public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: bjorn.andersson@sonymobile•com (Bjorn Andersson)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH v2 2/3] pinctrl: Add msm8x74 configuration
Date: Thu, 12 Dec 2013 20:24:17 -0800	[thread overview]
Message-ID: <20131213042416.GL11990@sonymobile.com> (raw)
In-Reply-To: <CACRpkdY9Z71VcS6ERiaDbg9P7qPEK_jCVXLvoCDx6YztYCnR2Q@mail.gmail.com>

On Thu 12 Dec 11:15 PST 2013, Linus Walleij wrote:

> On Wed, Dec 11, 2013 at 2:49 AM, Stephen Boyd <sboyd@codeaurora•org> wrote:
...
> > I don't follow what Linus is recommending. How could
> > .gpio_request_enable()/.gpio_disable_free() help us here?
> 
> That removes the need to define a single group for each pin that
> can be used as GPIO.

For the TLMM chip the pin can not be used as GPIO when another function is
selected for the pin. And upon leaving a state with a function defined the
choosen mux is disabled, turning the pin back to a GPIO pin.
So I don't think this is applicable for us, any unused pin is a GPIO pin.


The reason why there are 1 pingroup per pin is because a pingroup represent
a configurable entity, i.e. a config register in the TLMM chip; which is one
per pin for the GPIO pins.

Regards,
Bjorn

  parent reply	other threads:[~2013-12-13  4:24 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1386295805-13708-1-git-send-email-bjorn.andersson@sonymobile.com>
2013-12-06 13:56 ` [PATCH v2 0/3] pinctrl: Qualcomm 8x74 pinctrl driver Linus Walleij
     [not found] ` <1386295805-13708-2-git-send-email-bjorn.andersson@sonymobile.com>
2013-12-06 21:40   ` [PATCH v2 1/3] pinctrl: Add Qualcomm TLMM driver Stephen Boyd
2013-12-10  8:10     ` Bjorn Andersson
2013-12-11  1:42       ` Stephen Boyd
2013-12-12 19:09         ` Linus Walleij
2014-11-25 19:55   ` Timur Tabi
2014-11-26 17:41     ` Bjorn Andersson
     [not found] ` <1386295805-13708-3-git-send-email-bjorn.andersson@sonymobile.com>
2013-12-06 22:22   ` [PATCH v2 2/3] pinctrl: Add msm8x74 configuration Stephen Boyd
2013-12-09  8:18     ` Linus Walleij
2013-12-09 21:37       ` Stephen Boyd
2013-12-10  8:27         ` Bjorn Andersson
2013-12-10  8:41     ` Bjorn Andersson
2013-12-11  1:49       ` Stephen Boyd
2013-12-12 19:15         ` Linus Walleij
2013-12-12 21:16           ` Linus Walleij
2013-12-13  4:24           ` Bjorn Andersson [this message]
2013-12-12 21:22             ` Linus Walleij

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=20131213042416.GL11990@sonymobile.com \
    --to=bjorn.andersson@sonymobile$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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