From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: Reg pinmux driver for OMAP based SoC- AM335X
Date: Tue, 31 Jan 2012 09:05:11 -0800 [thread overview]
Message-ID: <20120131170511.GI9339@atomide.com> (raw)
In-Reply-To: <C8443D0743D26F4388EA172BF4E2A7A93176CAC6@DBDE01.ent.ti.com>
Hi,
* Mohammed, Afzal <afzal@ti.com> [120131 06:04]:
> Hi Tony,
>
> I am working on implementing pincontrol driver for AM335X SoC (OMAP34XX family).
>
> Is there any specific plan you have in mind w.r.t incorporating
> pincontrol driver for OMAP family of SoC's. There was an initial patch
> for OMAP4 pin control driver, but it seems you were in favour of a
> DT based approach. As per my understanding after going through few threads
> (lot more remaining) is that pincontrol driver can be either a DT based
> or non-DT based (either way we are going out of platform folders), and
> it seems you prefer a DT based approach (have seen mentioning about
> pinmux-simple.c).
With at least omaps, there are few good reasons to go for a common
DT only driver:
1. We already have about 6k lines of mux data and seem to be
adding several thousands of lines of mux data each year.
2. The driver does not need this data, it just needs to know how
to operate certain kind of mux registers. The data is mostly
handy for developers for debugging, and that can be done via
debugfs and userspace tools.
> Tegra pincontrol driver posted recently, seems to use DT to distinguish only
> the SoC type, with all the pincontrol information for SoC present in Kernel.
>
> I would be thankful if you can give me some pointers on how to proceed for
> AM335X pincontrol driver and/or any work in progress for OMAP pincontrol driver.
The plan is to deprecate the existing arch/arm/*omap*/*mux* code,
and cut it down to minimum. And then add DT only mux support that should
work for at least omap2+. That should work for am335x too.
There's currently some discussion going on regarding the pinmux device
tree binding and how dynamic mux states should be handled. But I'd
assume we'll have basic support available very soon.
The driver I'm working leaves all the data out of kernel, and the driver
just knows how to handle a pinmux register instances. Then debugging
tools can be done in userspace via debugfs to display more detailed
SoC specific information.
So it might be worth waiting just a little bit longer. If you have
resources to spend on the pinmuxing, then creating some userspace tool
to display SoC specific information would be nice :) For the userspace
tool, we can use the data in arch/arm/mach-omap2/mux*2*.[ch].
Regards,
Tony
next prev parent reply other threads:[~2012-01-31 17:05 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-20 22:22 Pinmux bindings proposal V2 Stephen Warren
2012-01-23 21:00 ` Tony Lindgren
2012-01-23 23:08 ` Stephen Warren
2012-01-24 1:20 ` Tony Lindgren
2012-01-24 22:29 ` Stephen Warren
2012-01-25 0:04 ` Tony Lindgren
2012-01-26 19:33 ` Stephen Warren
2012-01-27 2:08 ` Tony Lindgren
2012-01-27 6:57 ` Shawn Guo
2012-01-27 17:05 ` Tony Lindgren
2012-01-30 1:56 ` Shawn Guo
2012-01-30 17:20 ` Tony Lindgren
2012-01-31 1:32 ` Shawn Guo
2012-01-31 2:29 ` Tony Lindgren
[not found] ` <C8443D0743D26F4388EA172BF4E2A7A93176CAC6@DBDE01.ent.ti.com>
2012-01-31 17:05 ` Tony Lindgren [this message]
2012-02-01 10:04 ` Reg pinmux driver for OMAP based SoC- AM335X Hiremath, Vaibhav
2012-02-01 18:14 ` Tony Lindgren
2012-02-03 20:57 ` Tony Lindgren
2012-02-01 11:00 ` Mohammed, Afzal
2012-02-01 5:36 ` Pinmux bindings proposal V2 Shawn Guo
2012-01-27 17:36 ` Stephen Warren
2012-01-27 17:42 ` Tony Lindgren
2012-01-26 9:36 ` Shawn Guo
2012-01-26 17:51 ` Tony Lindgren
2012-01-27 7:19 ` Shawn Guo
2012-01-27 17:16 ` Tony Lindgren
2012-01-30 2:10 ` Shawn Guo
2012-01-30 17:43 ` Tony Lindgren
2012-01-31 1:07 ` Shawn Guo
2012-01-26 9:24 ` Shawn Guo
2012-01-26 17:42 ` Simon Glass
2012-01-27 2:21 ` Tony Lindgren
2012-01-27 15:43 ` Simon Glass
2012-01-27 17:37 ` Tony Lindgren
2012-01-27 17:51 ` Stephen Warren
2012-01-27 18:10 ` Tony Lindgren
2012-01-30 3:27 ` Shawn Guo
2012-01-30 3:13 ` Shawn Guo
2012-01-30 17:49 ` Tony Lindgren
2012-01-27 17:38 ` Stephen Warren
2012-01-27 17:29 ` Stephen Warren
2012-01-30 2:31 ` Shawn Guo
2012-02-01 14:35 ` Shawn Guo
2012-02-02 18:36 ` Stephen Warren
2012-02-02 20:07 ` Dong Aisheng
2012-02-03 14:02 ` Shawn Guo
2012-02-03 17:21 ` Dong Aisheng
2012-02-03 17:32 ` Tony Lindgren
2012-02-03 18:13 ` Dong Aisheng
2012-02-03 21:05 ` Tony Lindgren
2012-02-04 16:55 ` Dong Aisheng
2012-02-04 17:15 ` Tony Lindgren
2012-02-03 8:46 ` Shawn Guo
2012-02-13 19:58 ` Stephen Warren
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=20120131170511.GI9339@atomide.com \
--to=tony@atomide.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;
as well as URLs for NNTP newsgroup(s).