From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: Tony Lindgren <tony@atomide.com>
Cc: Linus Walleij <linus.walleij@linaro.org>,
"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
patches@opensource.cirrus.com,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Stephen Warren <swarren@wwwdotorg.org>
Subject: Re: [PATCH 0/4] Add support for muxing individual pins
Date: Fri, 8 Dec 2017 17:16:48 +0000 [thread overview]
Message-ID: <20171208171648.sbznughahicmklcs@localhost.localdomain> (raw)
In-Reply-To: <20171208162818.GA24344@atomide.com>
On Fri, Dec 08, 2017 at 08:28:18AM -0800, Tony Lindgren wrote:
> * Charles Keepax <ckeepax@opensource.cirrus.com> [171208 14:31]:
> > From the implementation so far the pinctrl-single stuff appears to
> > target systems where there isn't really a concept of groups. Each
> > pin is just a completely separate entry and you can only configure
> > things one pin at a time. In that case it almost makes more sense
> > to model each pin as an individual group such that it is clearly
> > distinct from the others.
>
> Maybe check again or else I don't follow you :)
>
> The pinctrl groups are created dynamically with pinctrl-single
> based on how the pins are grouped in the dts file:
>
> mmc1_pins: pinmux_mmc1_pins {
> pinctrl-single,pins = <
> OMAP4_IOPAD(0x0e2, PIN_INPUT_PULLUP | MUX_MODE0)
> OMAP4_IOPAD(0x0e4, PIN_INPUT_PULLUP | MUX_MODE0)
> OMAP4_IOPAD(0x0e6, PIN_INPUT_PULLUP | MUX_MODE0)
> OMAP4_IOPAD(0x0e8, PIN_INPUT_PULLUP | MUX_MODE0)
> OMAP4_IOPAD(0x0ea, PIN_INPUT_PULLUP | MUX_MODE0)
> OMAP4_IOPAD(0x0ec, PIN_INPUT_PULLUP | MUX_MODE0)
> >;
> };
>
> Then on a booted system we have the following under
> /sys/kernel/debug/pinctrl/4a100040.pinmux/pingroups:
>
> group: pinmux_mmc1_pins
> pin 81 (PIN81)
> pin 82 (PIN82)
> pin 83 (PIN83)
> pin 84 (PIN84)
> pin 85 (PIN85)
> pin 86 (PIN86)
>
Hmm... apologies, I suspect this is me that needs to review the
code some more. So this is actually creating a group per user
rather than per controller.
Although I guess my original point still stands that I am not
clear how this would benefit from my patches to allow muxing of
individual pins within a group. Since I guess each user will just
get a group created for the pins they use regardless. Or am I
missing something here too?
Thanks,
Charles
next prev parent reply other threads:[~2017-12-08 17:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-29 10:14 [PATCH 0/4] Add support for muxing individual pins Charles Keepax
2017-09-29 10:15 ` [PATCH RFC 1/4] pinctrl: Factor out individual pin handling from pinmux_pins_show Charles Keepax
2017-09-29 10:15 ` [PATCH RFC 2/4] pinctrl: Rename mux group to group_or_pin to prepare for pin support Charles Keepax
2017-10-02 10:10 ` Charles Keepax
2017-09-29 10:15 ` [PATCH RFC 3/4] pinctrl: Add support for muxing individual pins Charles Keepax
2017-09-29 10:15 ` [PATCH RFC 4/4] pinctrl: Add support for parsing individual pinmux from DT Charles Keepax
2017-10-09 21:10 ` [PATCH 0/4] Add support for muxing individual pins Linus Walleij
2017-10-10 8:45 ` Charles Keepax
2017-12-08 14:29 ` Charles Keepax
2017-12-08 14:40 ` Linus Walleij
2017-12-08 17:22 ` Charles Keepax
2017-12-09 4:15 ` Bjorn Andersson
2017-12-08 16:28 ` Tony Lindgren
2017-12-08 17:16 ` Charles Keepax [this message]
2017-12-08 19:41 ` Tony Lindgren
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=20171208171648.sbznughahicmklcs@localhost.localdomain \
--to=ckeepax@opensource.cirrus.com \
--cc=bjorn.andersson@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=patches@opensource.cirrus.com \
--cc=swarren@wwwdotorg.org \
--cc=tony@atomide.com \
/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;
as well as URLs for NNTP newsgroup(s).