From: dongas86@gmail.com (Dong Aisheng)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] pinctrl: Add simple pinmux driver using device tree data
Date: Mon, 13 Feb 2012 23:54:40 -0800 [thread overview]
Message-ID: <20120214075440.GA3058@b29396-Latitude-E6410> (raw)
In-Reply-To: <20120213191113.GF1426@atomide.com>
On Mon, Feb 13, 2012 at 11:11:13AM -0800, Tony Lindgren wrote:
...
> > Put it in pinctrl device node?
> > Then how do we name each pin?
> > And for IMX, currently we name all pins in driver.
> > I still can not find a good reason that i should name all pins in dt file.
>
> But do you actually need the pin names in kernel? :)
>
Yes, i meant name pins in driver.
> > Yes, we indeed have such a case.
> > For IMX, some special pins mux still need a setting called 'select input' which
> > is controlled in other registers.
> > But a rough idea in my mind that may choose different way to fix this issue.
> > It's a little like:
> > pinctrl_usdhc4: pinconfig-usdhc4 {
> > mux =
> > <MX6Q_SD4_CMD 0 SELECT_INPUT>
> > <MX6Q_SD4_CLK 0 0>
> > <MX6Q_SD4_DAT0 1 0>
> > <MX6Q_SD4_DAT1 1 0>
> > <MX6Q_SD4_DAT2 1 SELECT_INPUT>
> > <MX6Q_SD4_DAT3 1 0>
> > <MX6Q_SD4_DAT4 1 0>
> > <MX6Q_SD4_DAT5 1 0>
> > <MX6Q_SD4_DAT6 1 0>
> > <MX6Q_SD4_DAT7 1 0>;
> > }
> > This format would not make the dts writer to take too much care of
> > register address
> > and value. For this case, the #pinmux-cells would be <3>;
> > It is a little different from OMAP.
>
> If you don't want to keep the extra register entry around, then you
> could have a custom .data entry in the pinctrl driver that contains
> the mapping of these special registers.
>
Yes, that's what i think.
But we still need pass the value for thoes sepcial registers from dt.
> > For your proposal, I'm afraid it is a little too much depend on the SoC register
> > layout. We need to find a flexible enough way to cover all possible
> > register layout
> > difference for all SoCs.
> > (Considering one register controls multi muxs?)
>
> Most likely those special cases are best handled in hardware specific
> drivers.
>
Yes, common driver needs provide a way to cover that.
> > Did i misunderstand?
> > I still can not understand why need this.
> > The pinctrl properly in device node can support multi pinmuxs .
> > serial at 48020000 {
> > pinctrl = <&pmx_uart3_x &pmx_uart3_y>;
> > It's good to me that the consensus we reached at Linaro Connect is much like
> > my proposal in above URL. :)
>
> I meant like what you have in the second option here, the count is
> used to parse each entry.
You're right, i misunderstood before.
Sorry for the noise.
Regards
Dong Aisheng
next prev parent reply other threads:[~2012-02-14 7:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-03 20:54 [PATCH 0/2] Initial DT only generic pinctrl-simple driver Tony Lindgren
2012-02-03 20:55 ` [PATCH 1/2] pinmux: Export pinmux_register_mappings for pinmux modules Tony Lindgren
2012-02-03 20:55 ` [PATCH 2/2] pinctrl: Add simple pinmux driver using device tree data Tony Lindgren
2012-02-03 22:49 ` Linus Walleij
2012-02-04 0:55 ` Tony Lindgren
2012-02-04 17:59 ` Tony Lindgren
2012-02-08 1:53 ` Dong Aisheng
2012-02-10 20:05 ` Tony Lindgren
2012-02-11 0:33 ` Dong Aisheng
2012-02-13 19:11 ` Tony Lindgren
2012-02-14 7:54 ` Dong Aisheng [this message]
2012-02-07 1:44 ` Shawn Guo
2012-02-10 20:12 ` 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=20120214075440.GA3058@b29396-Latitude-E6410 \
--to=dongas86@gmail.com \
--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