* [PATCH RESEND 0/9] Enable pinctrl support for mach-mxs
@ 2012-05-07 1:16 Shawn Guo
2012-05-07 1:16 ` [PATCH RESEND 8/9] video: mxsfb: adopt pinctrl support Shawn Guo
2012-05-07 7:14 ` [alsa-devel] [PATCH RESEND 0/9] Enable pinctrl support for mach-mxs Dong Aisheng
0 siblings, 2 replies; 5+ messages in thread
From: Shawn Guo @ 2012-05-07 1:16 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Arnd Bergmann, Olof Johansson, Shawn Guo, linux-fbdev,
Florian Tobias Schandinat, alsa-devel, Mark Brown, linux-i2c,
Wolfram Sang, linux-mtd, Artem Bityutskiy, linux-mmc, Chris Ball,
linux-serial, Greg Kroah-Hartman
[Resend to have subsystem lists Cc-ed]
With pinctrl-mxs driver (DT only) applied on pinctrl tree, the mxs
device tree conversion can start basing on that support. This series
adopts pinctrl support for mxs device drivers with a dummy pinctrl
state provided for non-DT boot, so that the pinctrl call in the device
drivers will be bypassed for non-DT probe while it starts working for
DT probe.
To ease the merge process, I would like to ask Arnd and Olof to pull
pinctrl tree as a dependency in arm-soc and have this series go through
arm-soc.
Regards,
Shawn
Shawn Guo (9):
ARM: mxs: enable pinctrl dummy states
serial: amba-pl011: adopt pinctrl support
serial: mxs-auart: adopt pinctrl support
mmc: mxs-mmc: adopt pinctrl support
mtd: nand: gpmi: adopt pinctrl support
i2c: mxs: adopt pinctrl support
ASoC: mxs-saif: adopt pinctrl support
video: mxsfb: adopt pinctrl support
ARM: mxs: enable pinctrl support
arch/arm/Kconfig | 1 +
arch/arm/mach-mxs/Kconfig | 2 ++
arch/arm/mach-mxs/include/mach/common.h | 2 ++
arch/arm/mach-mxs/mach-apx4devkit.c | 2 ++
arch/arm/mach-mxs/mach-m28evk.c | 2 ++
arch/arm/mach-mxs/mach-mx23evk.c | 2 ++
arch/arm/mach-mxs/mach-mx28evk.c | 2 ++
arch/arm/mach-mxs/mach-stmp378x_devb.c | 2 ++
arch/arm/mach-mxs/mach-tx28.c | 2 ++
arch/arm/mach-mxs/mm.c | 11 +++++++++++
drivers/i2c/busses/i2c-mxs.c | 6 ++++++
drivers/mmc/host/mxs-mmc.c | 8 ++++++++
drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 9 +++++++++
drivers/tty/serial/amba-pl011.c | 8 ++++++++
drivers/tty/serial/mxs-auart.c | 8 ++++++++
drivers/video/mxsfb.c | 9 +++++++++
sound/soc/mxs/mxs-saif.c | 8 ++++++++
17 files changed, 84 insertions(+), 0 deletions(-)
--
1.7.5.4
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH RESEND 8/9] video: mxsfb: adopt pinctrl support
2012-05-07 1:16 [PATCH RESEND 0/9] Enable pinctrl support for mach-mxs Shawn Guo
@ 2012-05-07 1:16 ` Shawn Guo
2012-05-07 7:14 ` [alsa-devel] [PATCH RESEND 0/9] Enable pinctrl support for mach-mxs Dong Aisheng
1 sibling, 0 replies; 5+ messages in thread
From: Shawn Guo @ 2012-05-07 1:16 UTC (permalink / raw)
To: linux-arm-kernel
Cc: linux-fbdev@vger.kernel.org
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
drivers/video/mxsfb.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c
index 4a89f88..6c6bc57 100644
--- a/drivers/video/mxsfb.c
+++ b/drivers/video/mxsfb.c
@@ -45,6 +45,7 @@
#include <linux/clk.h>
#include <linux/dma-mapping.h>
#include <linux/io.h>
+#include <linux/pinctrl/consumer.h>
#include <mach/mxsfb.h>
#define REG_SET 4
@@ -756,6 +757,7 @@ static int __devinit mxsfb_probe(struct platform_device *pdev)
struct mxsfb_info *host;
struct fb_info *fb_info;
struct fb_modelist *modelist;
+ struct pinctrl *pinctrl;
int i, ret;
if (!pdata) {
@@ -793,6 +795,12 @@ static int __devinit mxsfb_probe(struct platform_device *pdev)
host->devdata = &mxsfb_devdata[pdev->id_entry->driver_data];
+ pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
+ if (IS_ERR(pinctrl)) {
+ ret = PTR_ERR(pinctrl);
+ goto error_getpin;
+ }
+
host->clk = clk_get(&host->pdev->dev, NULL);
if (IS_ERR(host->clk)) {
ret = PTR_ERR(host->clk);
@@ -848,6 +856,7 @@ error_init_fb:
error_pseudo_pallette:
clk_put(host->clk);
error_getclock:
+error_getpin:
iounmap(host->base);
error_ioremap:
framebuffer_release(fb_info);
--
1.7.5.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [alsa-devel] [PATCH RESEND 0/9] Enable pinctrl support for mach-mxs
2012-05-07 1:16 [PATCH RESEND 0/9] Enable pinctrl support for mach-mxs Shawn Guo
2012-05-07 1:16 ` [PATCH RESEND 8/9] video: mxsfb: adopt pinctrl support Shawn Guo
@ 2012-05-07 7:14 ` Dong Aisheng
2012-05-07 7:47 ` Shawn Guo
1 sibling, 1 reply; 5+ messages in thread
From: Dong Aisheng @ 2012-05-07 7:14 UTC (permalink / raw)
To: Shawn Guo
Cc: linux-arm-kernel, linux-fbdev, Chris Ball, Arnd Bergmann,
Florian Tobias Schandinat, Artem Bityutskiy, Mark Brown,
linux-mmc, alsa-devel, Wolfram Sang, linux-mtd, linux-i2c,
linux-serial, Greg Kroah-Hartman, Olof Johansson
On Mon, May 07, 2012 at 09:16:05AM +0800, Shawn Guo wrote:
> [Resend to have subsystem lists Cc-ed]
>
> With pinctrl-mxs driver (DT only) applied on pinctrl tree, the mxs
> device tree conversion can start basing on that support. This series
> adopts pinctrl support for mxs device drivers with a dummy pinctrl
> state provided for non-DT boot, so that the pinctrl call in the device
> drivers will be bypassed for non-DT probe while it starts working for
> DT probe.
>
> To ease the merge process, I would like to ask Arnd and Olof to pull
> pinctrl tree as a dependency in arm-soc and have this series go through
> arm-soc.
>
As IMX, basically i'd prefer to add pinctrl states in dts file at the
same time within the patch or using a separate patch to add them before
this series to avoid breaking the exist platforms.
However i noted that for mxs, most drivers here are still not dt capable,
so it may be ok to not add their pinctrl state at this time.
But for the patch "serial: amba-pl011: adopt pinctrl support" since it is
dt capable, so with this patch applied, the mx28 dt boot will fail.
Maybe we should at least add pinctrl states for amba-pl011 first.
> Regards,
> Shawn
>
> Shawn Guo (9):
> ARM: mxs: enable pinctrl dummy states
> serial: amba-pl011: adopt pinctrl support
BTW, will this one break other platforms using this driver?
> serial: mxs-auart: adopt pinctrl support
> mmc: mxs-mmc: adopt pinctrl support
> mtd: nand: gpmi: adopt pinctrl support
> i2c: mxs: adopt pinctrl support
> ASoC: mxs-saif: adopt pinctrl support
> video: mxsfb: adopt pinctrl support
> ARM: mxs: enable pinctrl support
>
> arch/arm/Kconfig | 1 +
> arch/arm/mach-mxs/Kconfig | 2 ++
> arch/arm/mach-mxs/include/mach/common.h | 2 ++
> arch/arm/mach-mxs/mach-apx4devkit.c | 2 ++
> arch/arm/mach-mxs/mach-m28evk.c | 2 ++
> arch/arm/mach-mxs/mach-mx23evk.c | 2 ++
> arch/arm/mach-mxs/mach-mx28evk.c | 2 ++
> arch/arm/mach-mxs/mach-stmp378x_devb.c | 2 ++
> arch/arm/mach-mxs/mach-tx28.c | 2 ++
> arch/arm/mach-mxs/mm.c | 11 +++++++++++
> drivers/i2c/busses/i2c-mxs.c | 6 ++++++
> drivers/mmc/host/mxs-mmc.c | 8 ++++++++
> drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 9 +++++++++
> drivers/tty/serial/amba-pl011.c | 8 ++++++++
> drivers/tty/serial/mxs-auart.c | 8 ++++++++
> drivers/video/mxsfb.c | 9 +++++++++
> sound/soc/mxs/mxs-saif.c | 8 ++++++++
> 17 files changed, 84 insertions(+), 0 deletions(-)
>
> --
> 1.7.5.4
>
Regards
Dong Aisheng
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [alsa-devel] [PATCH RESEND 0/9] Enable pinctrl support for mach-mxs
2012-05-07 7:14 ` [alsa-devel] [PATCH RESEND 0/9] Enable pinctrl support for mach-mxs Dong Aisheng
@ 2012-05-07 7:47 ` Shawn Guo
2012-05-07 7:56 ` Dong Aisheng
0 siblings, 1 reply; 5+ messages in thread
From: Shawn Guo @ 2012-05-07 7:47 UTC (permalink / raw)
To: Dong Aisheng
Cc: linux-arm-kernel, linux-fbdev, Chris Ball, Arnd Bergmann,
Florian Tobias Schandinat, Artem Bityutskiy, Mark Brown,
linux-mmc, alsa-devel, Wolfram Sang, linux-mtd, linux-i2c,
linux-serial, Greg Kroah-Hartman, Olof Johansson
On Mon, May 07, 2012 at 03:14:00PM +0800, Dong Aisheng wrote:
> As IMX, basically i'd prefer to add pinctrl states in dts file at the
> same time within the patch or using a separate patch to add them before
> this series to avoid breaking the exist platforms.
>
> However i noted that for mxs, most drivers here are still not dt capable,
> so it may be ok to not add their pinctrl state at this time.
>
There no mxs driver on mainline that has been DT aware of. What I'm
going to do is to ask Arnd abandon the mxs/dt branch I sent him before
and send him an updated one with the whole mxs DT support based on
mxs common clk and pinctrl series.
> But for the patch "serial: amba-pl011: adopt pinctrl support" since it is
> dt capable, so with this patch applied, the mx28 dt boot will fail.
> Maybe we should at least add pinctrl states for amba-pl011 first.
>
The updated mxs/dt will have pinctrl defined in dts for each device
that is converted to DT.
> > Shawn Guo (9):
> > ARM: mxs: enable pinctrl dummy states
> > serial: amba-pl011: adopt pinctrl support
> BTW, will this one break other platforms using this driver?
>
If the platforms do not turn on CONFIG_PINCTRL, they are fine. If they
turn on the support, they should provide pinctrl state either dummy or
real one.
--
Regards,
Shawn
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [alsa-devel] [PATCH RESEND 0/9] Enable pinctrl support for mach-mxs
2012-05-07 7:47 ` Shawn Guo
@ 2012-05-07 7:56 ` Dong Aisheng
0 siblings, 0 replies; 5+ messages in thread
From: Dong Aisheng @ 2012-05-07 7:56 UTC (permalink / raw)
To: Shawn Guo
Cc: Dong Aisheng-B29396, linux-arm-kernel@lists.infradead.org,
linux-fbdev@vger.kernel.org, Chris Ball, Arnd Bergmann,
Florian Tobias Schandinat, Artem Bityutskiy, Mark Brown,
linux-mmc@vger.kernel.org, alsa-devel@alsa-project.org,
Wolfram Sang, linux-mtd@lists.infradead.org,
linux-i2c@vger.kernel.org, linux-serial@vger.kernel.org,
Greg Kroah-Hartman, Olof Johansson
On Mon, May 07, 2012 at 03:47:00PM +0800, Shawn Guo wrote:
> On Mon, May 07, 2012 at 03:14:00PM +0800, Dong Aisheng wrote:
> > As IMX, basically i'd prefer to add pinctrl states in dts file at the
> > same time within the patch or using a separate patch to add them before
> > this series to avoid breaking the exist platforms.
> >
> > However i noted that for mxs, most drivers here are still not dt capable,
> > so it may be ok to not add their pinctrl state at this time.
> >
> There no mxs driver on mainline that has been DT aware of. What I'm
> going to do is to ask Arnd abandon the mxs/dt branch I sent him before
> and send him an updated one with the whole mxs DT support based on
> mxs common clk and pinctrl series.
>
> > But for the patch "serial: amba-pl011: adopt pinctrl support" since it is
> > dt capable, so with this patch applied, the mx28 dt boot will fail.
> > Maybe we should at least add pinctrl states for amba-pl011 first.
> >
> The updated mxs/dt will have pinctrl defined in dts for each device
> that is converted to DT.
>
Well, i did not see amba-pl011 pinctrl states defined in this patch.
But it would be ok if you can get it done and applied before this patch.
> > > Shawn Guo (9):
> > > ARM: mxs: enable pinctrl dummy states
> > > serial: amba-pl011: adopt pinctrl support
> > BTW, will this one break other platforms using this driver?
> >
> If the platforms do not turn on CONFIG_PINCTRL, they are fine. If they
> turn on the support, they should provide pinctrl state either dummy or
> real one.
>
Regards
Dong Aisheng
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-05-07 7:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-07 1:16 [PATCH RESEND 0/9] Enable pinctrl support for mach-mxs Shawn Guo
2012-05-07 1:16 ` [PATCH RESEND 8/9] video: mxsfb: adopt pinctrl support Shawn Guo
2012-05-07 7:14 ` [alsa-devel] [PATCH RESEND 0/9] Enable pinctrl support for mach-mxs Dong Aisheng
2012-05-07 7:47 ` Shawn Guo
2012-05-07 7:56 ` Dong Aisheng
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).