From: swarren@wwwdotorg.org (Stephen Warren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] pinctrl: Add one-register-per-pin type device tree based pinctrl driver
Date: Tue, 26 Jun 2012 11:05:48 -0600 [thread overview]
Message-ID: <4FE9EBEC.9040208@wwwdotorg.org> (raw)
In-Reply-To: <20120626134319.GA3483@atomide.com>
On 06/26/2012 07:43 AM, Tony Lindgren wrote:
...
> Subject: [PATCH] pinctrl: Add one-register-per-pin type device tree based pinctrl driver
>
> Add one-register-per-pin type device tree based pinctrl driver.
>
> This driver has been tested on omap2+ series of processors,
> where there is either an 8 or 16-bit padconf register for each pin.
> Support for other similar pinmux controllers can be added.
> diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-single.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-single.txt
> +/* board specific .dts file */
> +
> +&pmx_core {
> + board_pins: pinmux_board_pins {
> + pinctrl-single,pins = <
> + 0x6c 0xf /* csi21_dx3 OUTPUT | MODE7 */
> + 0x6e 0xf /* csi21_dy3 OUTPUT | MODE7 */
> + 0x70 0xf /* csi21_dx4 OUTPUT | MODE7 */
> + 0x72 0xf /* csi21_dy4 OUTPUT | MODE7 */
If you're removing the pinconf mask, I think the comments in the example
should reflect just setting a particular mux function, and remove any
references to pinconf settings in that field. While the binding can be
abused to do that, I think the docs shouldn't encourage it:-)
Other than that, the binding looks reasonable to me, given what it's
intended to do.
However, I'd still like Grant and Rob (and any other DT experts) to
explicitly sign off on this binding, because it's doing exactly
something that was rejected at Linaro Connect in February (albeit the
binding is slightly more oriented at specifically being for pinmux
rather than a fully general "blast in these register values", but that
distinction seems minor to me).
next prev parent reply other threads:[~2012-06-26 17:05 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-11 13:58 [PATCH] pinctrl: Add one-register-per-pin type device tree based pinctrl driver Tony Lindgren
2012-06-14 23:12 ` Stephen Warren
2012-06-15 9:49 ` Tony Lindgren
2012-06-15 16:17 ` Stephen Warren
2012-06-18 5:50 ` Tony Lindgren
2012-06-19 13:56 ` Tony Lindgren
2012-06-21 8:09 ` Linus Walleij
2012-06-21 22:13 ` Stephen Warren
2012-06-22 8:39 ` Tony Lindgren
2012-06-22 17:32 ` Stephen Warren
2012-06-26 13:43 ` Tony Lindgren
2012-06-26 17:05 ` Stephen Warren [this message]
2012-06-27 10:28 ` Tony Lindgren
2012-07-10 9:11 ` Tony Lindgren
2012-07-14 20:16 ` Linus Walleij
2012-07-16 7:10 ` 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=4FE9EBEC.9040208@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).