linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Reg pinmux driver for OMAP based SoC- AM335X
       [not found]                   ` <20120131022906.GH9339@atomide.com>
@ 2012-01-31 14:35                     ` Mohammed, Afzal
  2012-01-31 17:05                       ` Tony Lindgren
  0 siblings, 1 reply; 6+ messages in thread
From: Mohammed, Afzal @ 2012-01-31 14:35 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	Linus Walleij, Nori, Sekhar, Hiremath, Vaibhav,
	Rajashekhara, Sudhakar

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).

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.

Regards
Afzal

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Reg pinmux driver for OMAP based SoC- AM335X
  2012-01-31 14:35                     ` Reg pinmux driver for OMAP based SoC- AM335X Mohammed, Afzal
@ 2012-01-31 17:05                       ` Tony Lindgren
  2012-02-01 10:04                         ` Hiremath, Vaibhav
  2012-02-01 11:00                         ` Mohammed, Afzal
  0 siblings, 2 replies; 6+ messages in thread
From: Tony Lindgren @ 2012-01-31 17:05 UTC (permalink / raw)
  To: Mohammed, Afzal
  Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	Linus Walleij, Nori, Sekhar, Hiremath, Vaibhav,
	Rajashekhara, Sudhakar

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Reg pinmux driver for OMAP based SoC- AM335X
  2012-01-31 17:05                       ` Tony Lindgren
@ 2012-02-01 10:04                         ` Hiremath, Vaibhav
  2012-02-01 18:14                           ` Tony Lindgren
  2012-02-01 11:00                         ` Mohammed, Afzal
  1 sibling, 1 reply; 6+ messages in thread
From: Hiremath, Vaibhav @ 2012-02-01 10:04 UTC (permalink / raw)
  To: Tony Lindgren, Mohammed, Afzal
  Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	Linus Walleij, Nori, Sekhar, Rajashekhara, Sudhakar

On Tue, Jan 31, 2012 at 22:35:11, Tony Lindgren wrote:
> 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. 

Tony,

Is this hosted or accessible somewhere? Just for reference...

Thanks,
Vaibhav

> 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
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Reg pinmux driver for OMAP based SoC- AM335X
  2012-01-31 17:05                       ` Tony Lindgren
  2012-02-01 10:04                         ` Hiremath, Vaibhav
@ 2012-02-01 11:00                         ` Mohammed, Afzal
  1 sibling, 0 replies; 6+ messages in thread
From: Mohammed, Afzal @ 2012-02-01 11:00 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	Linus Walleij, Nori, Sekhar, Hiremath, Vaibhav,
	Rajashekhara, Sudhakar

Hi Tony,

On Tue, Jan 31, 2012 at 22:35:11, Tony Lindgren wrote:
> 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].

Thank you for the detailed reply.

I will wait for it and willing to help you in its testing.

I have been tasked on getting AM335X supported well in mainline,
and will move to other aspects of it while waiting.

Regards
Afzal

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Reg pinmux driver for OMAP based SoC- AM335X
  2012-02-01 10:04                         ` Hiremath, Vaibhav
@ 2012-02-01 18:14                           ` Tony Lindgren
  2012-02-03 20:57                             ` Tony Lindgren
  0 siblings, 1 reply; 6+ messages in thread
From: Tony Lindgren @ 2012-02-01 18:14 UTC (permalink / raw)
  To: Hiremath, Vaibhav
  Cc: Mohammed, Afzal, linux-omap@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, Linus Walleij, Nori, Sekhar,
	Rajashekhara, Sudhakar

* Hiremath, Vaibhav <hvaibhav@ti.com> [120201 01:34]:
> On Tue, Jan 31, 2012 at 22:35:11, Tony Lindgren wrote:
> > 
> > The driver I'm working leaves all the data out of kernel, and the driver
> > just knows how to handle a pinmux register instances. 
> 
> Tony,
> 
> Is this hosted or accessible somewhere? Just for reference...

Still few more things to fix before I can post it..

Tony

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Reg pinmux driver for OMAP based SoC- AM335X
  2012-02-01 18:14                           ` Tony Lindgren
@ 2012-02-03 20:57                             ` Tony Lindgren
  0 siblings, 0 replies; 6+ messages in thread
From: Tony Lindgren @ 2012-02-03 20:57 UTC (permalink / raw)
  To: Hiremath, Vaibhav
  Cc: Mohammed, Afzal, Rajashekhara, Sudhakar, Linus Walleij,
	Nori, Sekhar, linux-omap@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org

* Tony Lindgren <tony@atomide.com> [120201 09:43]:
> * Hiremath, Vaibhav <hvaibhav@ti.com> [120201 01:34]:
> > On Tue, Jan 31, 2012 at 22:35:11, Tony Lindgren wrote:
> > > 
> > > The driver I'm working leaves all the data out of kernel, and the driver
> > > just knows how to handle a pinmux register instances. 
> > 
> > Tony,
> > 
> > Is this hosted or accessible somewhere? Just for reference...
> 
> Still few more things to fix before I can post it..

OK now posted as thread "[PATCH 0/2] Initial DT only generic
pinctrl-simple driver". Did not Cc any omap people as I assume
they're all reading linux-omap.

Regards,

Tony

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-02-03 20:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20120124012038.GT22818@atomide.com>
     [not found] ` <74CDBE0F657A3D45AFBB94109FB122FF178CB81EDB@HQMAIL01.nvidia.com>
     [not found]   ` <20120125000407.GU22818@atomide.com>
     [not found]     ` <74CDBE0F657A3D45AFBB94109FB122FF178CB82433@HQMAIL01.nvidia.com>
     [not found]       ` <20120127020832.GJ29812@atomide.com>
     [not found]         ` <20120127065752.GB32740@S2101-09.ap.freescale.net>
     [not found]           ` <20120127170545.GH13504@atomide.com>
     [not found]             ` <20120130015607.GA10470@S2101-09.ap.freescale.net>
     [not found]               ` <20120130172042.GE9339@atomide.com>
     [not found]                 ` <20120131013215.GB24681@S2101-09.ap.freescale.net>
     [not found]                   ` <20120131022906.GH9339@atomide.com>
2012-01-31 14:35                     ` Reg pinmux driver for OMAP based SoC- AM335X Mohammed, Afzal
2012-01-31 17:05                       ` Tony Lindgren
2012-02-01 10:04                         ` Hiremath, Vaibhav
2012-02-01 18:14                           ` Tony Lindgren
2012-02-03 20:57                             ` Tony Lindgren
2012-02-01 11:00                         ` Mohammed, Afzal

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).