All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 2/5] sh-pfc: r8a7778: add VIN pin groups
@ 2013-04-21 18:40 Sergei Shtylyov
  2013-04-22  9:45 ` Laurent Pinchart
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Sergei Shtylyov @ 2013-04-21 18:40 UTC (permalink / raw)
  To: linux-sh

From: Vladimir Barinov <vladimir.barinov@cogentembedded.com>

Add VIN DATA[0:8]/CLK/HSYNC/VSYNC pin groups to R8A7778 PFC driver.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
[Sergei: updated the copyrights.]
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 drivers/pinctrl/sh-pfc/pfc-r8a7778.c |   74 +++++++++++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)

Index: renesas/drivers/pinctrl/sh-pfc/pfc-r8a7778.c
=================================--- renesas.orig/drivers/pinctrl/sh-pfc/pfc-r8a7778.c
+++ renesas/drivers/pinctrl/sh-pfc/pfc-r8a7778.c
@@ -3,6 +3,7 @@
  *
  * Copyright (C) 2013  Renesas Solutions Corp.
  * Copyright (C) 2013  Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
+ * Copyright (C) 2013  Cogent Embedded, Inc.
  *
  * based on
  * Copyright (C) 2011  Renesas Solutions Corp.
@@ -1417,6 +1418,59 @@ SCIF_PFC_DAT(scif5_data_a,	TX5_A,			RX5_
 SCIF_PFC_PIN(scif5_data_b,	RCAR_GP_PIN(1, 15),	RCAR_GP_PIN(1, 14));
 SCIF_PFC_DAT(scif5_data_b,	TX5_B,			RX5_B);
 
+/* - VIN0 ------------------------------------------------------------------- */
+static const unsigned int vin0_data8_pins[] = {
+	/* D[0:7] */
+	RCAR_GP_PIN(3, 29), RCAR_GP_PIN(3, 30), RCAR_GP_PIN(3, 31),
+	RCAR_GP_PIN(4, 0),  RCAR_GP_PIN(4, 1),  RCAR_GP_PIN(4, 2),
+	RCAR_GP_PIN(4, 3),  RCAR_GP_PIN(4, 4),
+};
+static const unsigned int vin0_data8_mux[] = {
+	VI0_DATA0_VI0_B0_MARK, VI0_DATA1_VI0_B1_MARK, VI0_DATA2_VI0_B2_MARK,
+	VI0_DATA3_VI0_B3_MARK, VI0_DATA4_VI0_B4_MARK, VI0_DATA5_VI0_B5_MARK,
+	VI0_DATA6_VI0_G0_MARK, VI0_DATA7_VI0_G1_MARK,
+};
+static const unsigned int vin0_clk_pins[] = {
+	/* CLK */
+	RCAR_GP_PIN(3, 24),
+};
+static const unsigned int vin0_clk_mux[] = {
+	VI0_CLK_MARK,
+};
+static const unsigned int vin0_sync_pins[] = {
+	/* HSYNC, VSYNC */
+	RCAR_GP_PIN(3, 27), RCAR_GP_PIN(3, 28),
+};
+static const unsigned int vin0_sync_mux[] = {
+	VI0_HSYNC_MARK, VI0_VSYNC_MARK,
+};
+/* - VIN1 ------------------------------------------------------------------- */
+static const unsigned int vin1_data8_pins[] = {
+	/* D[0:7] */
+	RCAR_GP_PIN(3, 25), RCAR_GP_PIN(3, 26), RCAR_GP_PIN(3, 27),
+	RCAR_GP_PIN(3, 28), RCAR_GP_PIN(4, 5),  RCAR_GP_PIN(4, 6),
+	RCAR_GP_PIN(4, 7),  RCAR_GP_PIN(4, 8),
+};
+static const unsigned int vin1_data8_mux[] = {
+	VI1_DATA0_MARK, VI1_DATA1_MARK, VI1_DATA2_MARK,
+	VI1_DATA3_MARK, VI1_DATA4_MARK, VI1_DATA5_MARK,
+	VI1_DATA6_MARK, VI1_DATA7_MARK,
+};
+static const unsigned int vin1_clk_pins[] = {
+	/* CLK */
+	RCAR_GP_PIN(4, 9),
+};
+static const unsigned int vin1_clk_mux[] = {
+	VI1_CLK_MARK,
+};
+static const unsigned int vin1_sync_pins[] = {
+	/* HSYNC, VSYNC */
+	RCAR_GP_PIN(3, 21), RCAR_GP_PIN(3, 22),
+};
+static const unsigned int vin1_sync_mux[] = {
+	VI1_HSYNC_MARK, VI1_VSYNC_MARK,
+};
+
 static const struct sh_pfc_pin_group pinmux_groups[] = {
 	SH_PFC_PIN_GROUP(hscif0_data_a),
 	SH_PFC_PIN_GROUP(hscif0_data_b),
@@ -1461,6 +1515,12 @@ static const struct sh_pfc_pin_group pin
 	SH_PFC_PIN_GROUP(scif4_data_c),
 	SH_PFC_PIN_GROUP(scif5_data_a),
 	SH_PFC_PIN_GROUP(scif5_data_b),
+	SH_PFC_PIN_GROUP(vin0_data8),
+	SH_PFC_PIN_GROUP(vin0_clk),
+	SH_PFC_PIN_GROUP(vin0_sync),
+	SH_PFC_PIN_GROUP(vin1_data8),
+	SH_PFC_PIN_GROUP(vin1_clk),
+	SH_PFC_PIN_GROUP(vin1_sync),
 };
 
 static const char * const hscif0_groups[] = {
@@ -1533,6 +1593,18 @@ static const char * const scif5_groups[]
 	"scif5_data_b",
 };
 
+static const char * const vin0_groups[] = {
+	"vin0_data8",
+	"vin0_clk",
+	"vin0_sync",
+};
+
+static const char * const vin1_groups[] = {
+	"vin1_data8",
+	"vin1_clk",
+	"vin1_sync",
+};
+
 static const struct sh_pfc_function pinmux_functions[] = {
 	SH_PFC_FUNCTION(hscif0),
 	SH_PFC_FUNCTION(hscif1),
@@ -1543,6 +1615,8 @@ static const struct sh_pfc_function pinm
 	SH_PFC_FUNCTION(scif3),
 	SH_PFC_FUNCTION(scif4),
 	SH_PFC_FUNCTION(scif5),
+	SH_PFC_FUNCTION(vin0),
+	SH_PFC_FUNCTION(vin1),
 };
 
 static struct pinmux_cfg_reg pinmux_config_regs[] = {

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

* Re: [PATCH v2 2/5] sh-pfc: r8a7778: add VIN pin groups
  2013-04-21 18:40 [PATCH v2 2/5] sh-pfc: r8a7778: add VIN pin groups Sergei Shtylyov
@ 2013-04-22  9:45 ` Laurent Pinchart
  2013-04-22 21:29 ` Linus Walleij
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Laurent Pinchart @ 2013-04-22  9:45 UTC (permalink / raw)
  To: linux-sh

Hi,

Thanks for the patch.

On Sunday 21 April 2013 22:40:50 Sergei Shtylyov wrote:
> From: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
> 
> Add VIN DATA[0:8]/CLK/HSYNC/VSYNC pin groups to R8A7778 PFC driver.
> 
> Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
> [Sergei: updated the copyrights.]
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> 
> ---
>  drivers/pinctrl/sh-pfc/pfc-r8a7778.c |   74 +++++++++++++++++++++++++++++++
>  1 file changed, 74 insertions(+)

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

-- 
Regards,

Laurent Pinchart


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

* Re: [PATCH v2 2/5] sh-pfc: r8a7778: add VIN pin groups
  2013-04-21 18:40 [PATCH v2 2/5] sh-pfc: r8a7778: add VIN pin groups Sergei Shtylyov
  2013-04-22  9:45 ` Laurent Pinchart
@ 2013-04-22 21:29 ` Linus Walleij
  2013-04-23  2:02 ` Simon Horman
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Linus Walleij @ 2013-04-22 21:29 UTC (permalink / raw)
  To: linux-sh

On Sun, Apr 21, 2013 at 8:40 PM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:

> From: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
>
> Add VIN DATA[0:8]/CLK/HSYNC/VSYNC pin groups to R8A7778 PFC driver.
>
> Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
> [Sergei: updated the copyrights.]
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Acked-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

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

* Re: [PATCH v2 2/5] sh-pfc: r8a7778: add VIN pin groups
  2013-04-21 18:40 [PATCH v2 2/5] sh-pfc: r8a7778: add VIN pin groups Sergei Shtylyov
  2013-04-22  9:45 ` Laurent Pinchart
  2013-04-22 21:29 ` Linus Walleij
@ 2013-04-23  2:02 ` Simon Horman
  2013-04-23  3:26 ` Sergei Shtylyov
  2013-04-23  3:37 ` Simon Horman
  4 siblings, 0 replies; 6+ messages in thread
From: Simon Horman @ 2013-04-23  2:02 UTC (permalink / raw)
  To: linux-sh

On Mon, Apr 22, 2013 at 11:45:31AM +0200, Laurent Pinchart wrote:
> Hi,
> 
> Thanks for the patch.
> 
> On Sunday 21 April 2013 22:40:50 Sergei Shtylyov wrote:
> > From: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
> > 
> > Add VIN DATA[0:8]/CLK/HSYNC/VSYNC pin groups to R8A7778 PFC driver.
> > 
> > Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
> > [Sergei: updated the copyrights.]
> > Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> > 
> > ---
> >  drivers/pinctrl/sh-pfc/pfc-r8a7778.c |   74 +++++++++++++++++++++++++++++++
> >  1 file changed, 74 insertions(+)
> 
> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> 
> -- 
> Regards,
> 
> Laurent Pinchart
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

On Mon, Apr 22, 2013 at 11:29:20PM +0200, Linus Walleij wrote:
> On Sun, Apr 21, 2013 at 8:40 PM, Sergei Shtylyov
> <sergei.shtylyov@cogentembedded.com> wrote:
> 
> > From: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
> >
> > Add VIN DATA[0:8]/CLK/HSYNC/VSYNC pin groups to R8A7778 PFC driver.
> >
> > Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
> > [Sergei: updated the copyrights.]
> > Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> 
> Acked-by: Linus Walleij <linus.walleij@linaro.org>
> 
> Yours,
> Linus Walleij

Hi Sergei,

If you were to rebase this patch I believe it could now
be queued-up for v3.11.

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

* Re: [PATCH v2 2/5] sh-pfc: r8a7778: add VIN pin groups
  2013-04-21 18:40 [PATCH v2 2/5] sh-pfc: r8a7778: add VIN pin groups Sergei Shtylyov
                   ` (2 preceding siblings ...)
  2013-04-23  2:02 ` Simon Horman
@ 2013-04-23  3:26 ` Sergei Shtylyov
  2013-04-23  3:37 ` Simon Horman
  4 siblings, 0 replies; 6+ messages in thread
From: Sergei Shtylyov @ 2013-04-23  3:26 UTC (permalink / raw)
  To: linux-sh

Hello.

On 04/23/2013 06:02 AM, Simon Horman wrote:

>
>> Hi,
>>
>> Thanks for the patch.
>>
>> On Sunday 21 April 2013 22:40:50 Sergei Shtylyov wrote:
>>> From: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
>>>
>>> Add VIN DATA[0:8]/CLK/HSYNC/VSYNC pin groups to R8A7778 PFC driver.
>>>
>>> Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
>>> [Sergei: updated the copyrights.]
>>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>>>
>>> ---
>>>   drivers/pinctrl/sh-pfc/pfc-r8a7778.c |   74 +++++++++++++++++++++++++++++++
>>>   1 file changed, 74 insertions(+)
>> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>>
>> -- 
>> Regards,
>>
>> Laurent Pinchart
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
> On Mon, Apr 22, 2013 at 11:29:20PM +0200, Linus Walleij wrote:
>> On Sun, Apr 21, 2013 at 8:40 PM, Sergei Shtylyov
>> <sergei.shtylyov@cogentembedded.com> wrote:
>>
>>> From: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
>>>
>>> Add VIN DATA[0:8]/CLK/HSYNC/VSYNC pin groups to R8A7778 PFC driver.
>>>
>>> Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
>>> [Sergei: updated the copyrights.]
>>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>>
>> Yours,
>> Linus Walleij
> Hi Sergei,
>
> If you were to rebase this patch I believe it could now
> be queued-up for v3.11.

     I've already rebased it to the tag 'renesas-next-20130422' and
shall probably post it RSN, all due my insomnia. :-)

WBR, Sergei


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

* Re: [PATCH v2 2/5] sh-pfc: r8a7778: add VIN pin groups
  2013-04-21 18:40 [PATCH v2 2/5] sh-pfc: r8a7778: add VIN pin groups Sergei Shtylyov
                   ` (3 preceding siblings ...)
  2013-04-23  3:26 ` Sergei Shtylyov
@ 2013-04-23  3:37 ` Simon Horman
  4 siblings, 0 replies; 6+ messages in thread
From: Simon Horman @ 2013-04-23  3:37 UTC (permalink / raw)
  To: linux-sh

On Tue, Apr 23, 2013 at 07:26:19AM +0400, Sergei Shtylyov wrote:
> Hello.
> 
> On 04/23/2013 06:02 AM, Simon Horman wrote:
> 
> >
> >>Hi,
> >>
> >>Thanks for the patch.
> >>
> >>On Sunday 21 April 2013 22:40:50 Sergei Shtylyov wrote:
> >>>From: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
> >>>
> >>>Add VIN DATA[0:8]/CLK/HSYNC/VSYNC pin groups to R8A7778 PFC driver.
> >>>
> >>>Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
> >>>[Sergei: updated the copyrights.]
> >>>Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> >>>
> >>>---
> >>>  drivers/pinctrl/sh-pfc/pfc-r8a7778.c |   74 +++++++++++++++++++++++++++++++
> >>>  1 file changed, 74 insertions(+)
> >>Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> >>
> >>-- 
> >>Regards,
> >>
> >>Laurent Pinchart
> >>
> >>--
> >>To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> >>the body of a message to majordomo@vger.kernel.org
> >>More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >>
> >On Mon, Apr 22, 2013 at 11:29:20PM +0200, Linus Walleij wrote:
> >>On Sun, Apr 21, 2013 at 8:40 PM, Sergei Shtylyov
> >><sergei.shtylyov@cogentembedded.com> wrote:
> >>
> >>>From: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
> >>>
> >>>Add VIN DATA[0:8]/CLK/HSYNC/VSYNC pin groups to R8A7778 PFC driver.
> >>>
> >>>Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
> >>>[Sergei: updated the copyrights.]
> >>>Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> >>Acked-by: Linus Walleij <linus.walleij@linaro.org>
> >>
> >>Yours,
> >>Linus Walleij
> >Hi Sergei,
> >
> >If you were to rebase this patch I believe it could now
> >be queued-up for v3.11.
> 
>     I've already rebased it to the tag 'renesas-next-20130422' and
> shall probably post it RSN, all due my insomnia. :-)

Understood. Feel free to try to get some sleep before posting :)

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

end of thread, other threads:[~2013-04-23  3:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-21 18:40 [PATCH v2 2/5] sh-pfc: r8a7778: add VIN pin groups Sergei Shtylyov
2013-04-22  9:45 ` Laurent Pinchart
2013-04-22 21:29 ` Linus Walleij
2013-04-23  2:02 ` Simon Horman
2013-04-23  3:26 ` Sergei Shtylyov
2013-04-23  3:37 ` Simon Horman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.