SUPERH platform development
 help / color / mirror / Atom feed
* [PATCH] sh-pfc: r8a7791: Fix DU pin groups organisation
@ 2013-11-13 12:46 Laurent Pinchart
  2013-11-19  8:16 ` Linus Walleij
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Laurent Pinchart @ 2013-11-13 12:46 UTC (permalink / raw)
  To: linux-sh

Rename the sync_1 group to sync as the device has a single sync pin
group for the DU, move the cde_disp mux array right after the
corresponding pins array, and split the clk_in pins in three separate
groups as the pins can be used independently.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
---
 drivers/pinctrl/sh-pfc/pfc-r8a7791.c | 36 +++++++++++++++++++++++++++---------
 1 file changed, 27 insertions(+), 9 deletions(-)

The patch is based on top of the latest pinctrl for-next branch and is a
candidate for v3.14. I've tested it with the DU driver on a Koelsch board.

diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
index bf76a65..d26c163 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
@@ -1730,11 +1730,11 @@ static const unsigned int du_clk_out_1_pins[] = {
 static const unsigned int du_clk_out_1_mux[] = {
 	DU1_DOTCLKOUT1_MARK
 };
-static const unsigned int du_sync_1_pins[] = {
+static const unsigned int du_sync_pins[] = {
 	/* EXVSYNC/VSYNC, EXHSYNC/HSYNC, EXDISP/EXODDF/EXCDE */
 	RCAR_GP_PIN(3, 29), RCAR_GP_PIN(3, 28), RCAR_GP_PIN(3, 27),
 };
-static const unsigned int du_sync_1_mux[] = {
+static const unsigned int du_sync_mux[] = {
 	DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK,
 	DU1_EXVSYNC_DU1_VSYNC_MARK, DU1_EXHSYNC_DU1_HSYNC_MARK
 };
@@ -1742,6 +1742,9 @@ static const unsigned int du_cde_disp_pins[] = {
 	/* CDE DISP */
 	RCAR_GP_PIN(3, 31), RCAR_GP_PIN(3, 30),
 };
+static const unsigned int du_cde_disp_mux[] = {
+	DU1_CDE_MARK, DU1_DISP_MARK
+};
 static const unsigned int du0_clk_in_pins[] = {
 	/* CLKIN */
 	RCAR_GP_PIN(6, 31),
@@ -1749,15 +1752,26 @@ static const unsigned int du0_clk_in_pins[] = {
 static const unsigned int du0_clk_in_mux[] = {
 	DU0_DOTCLKIN_MARK
 };
-static const unsigned int du_cde_disp_mux[] = {
-	DU1_CDE_MARK, DU1_DISP_MARK
-};
 static const unsigned int du1_clk_in_pins[] = {
 	/* CLKIN */
-	RCAR_GP_PIN(7, 20), RCAR_GP_PIN(7, 19), RCAR_GP_PIN(3, 24),
+	RCAR_GP_PIN(3, 24),
 };
 static const unsigned int du1_clk_in_mux[] = {
-	DU1_DOTCLKIN_C_MARK, DU1_DOTCLKIN_B_MARK, DU1_DOTCLKIN_MARK
+	DU1_DOTCLKIN_MARK
+};
+static const unsigned int du1_clk_in_b_pins[] = {
+	/* CLKIN */
+	RCAR_GP_PIN(7, 19),
+};
+static const unsigned int du1_clk_in_b_mux[] = {
+	DU1_DOTCLKIN_B_MARK,
+};
+static const unsigned int du1_clk_in_c_pins[] = {
+	/* CLKIN */
+	RCAR_GP_PIN(7, 20),
+};
+static const unsigned int du1_clk_in_c_mux[] = {
+	DU1_DOTCLKIN_C_MARK,
 };
 /* - ETH -------------------------------------------------------------------- */
 static const unsigned int eth_link_pins[] = {
@@ -2670,10 +2684,12 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
 	SH_PFC_PIN_GROUP(du_rgb888),
 	SH_PFC_PIN_GROUP(du_clk_out_0),
 	SH_PFC_PIN_GROUP(du_clk_out_1),
-	SH_PFC_PIN_GROUP(du_sync_1),
+	SH_PFC_PIN_GROUP(du_sync),
 	SH_PFC_PIN_GROUP(du_cde_disp),
 	SH_PFC_PIN_GROUP(du0_clk_in),
 	SH_PFC_PIN_GROUP(du1_clk_in),
+	SH_PFC_PIN_GROUP(du1_clk_in_b),
+	SH_PFC_PIN_GROUP(du1_clk_in_c),
 	SH_PFC_PIN_GROUP(eth_link),
 	SH_PFC_PIN_GROUP(eth_magic),
 	SH_PFC_PIN_GROUP(eth_mdio),
@@ -2805,7 +2821,7 @@ static const char * const du_groups[] = {
 	"du_rgb888",
 	"du_clk_out_0",
 	"du_clk_out_1",
-	"du_sync_1",
+	"du_sync",
 	"du_cde_disp",
 };
 
@@ -2815,6 +2831,8 @@ static const char * const du0_groups[] = {
 
 static const char * const du1_groups[] = {
 	"du1_clk_in",
+	"du1_clk_in_b",
+	"du1_clk_in_c",
 };
 
 static const char * const eth_groups[] = {
-- 
Regards,

Laurent Pinchart


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

* Re: [PATCH] sh-pfc: r8a7791: Fix DU pin groups organisation
  2013-11-13 12:46 [PATCH] sh-pfc: r8a7791: Fix DU pin groups organisation Laurent Pinchart
@ 2013-11-19  8:16 ` Linus Walleij
  2013-11-21  5:34 ` Magnus Damm
  2013-11-21  7:22 ` Laurent Pinchart
  2 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2013-11-19  8:16 UTC (permalink / raw)
  To: linux-sh

On Wed, Nov 13, 2013 at 1:46 PM, Laurent Pinchart
<laurent.pinchart+renesas@ideasonboard.com> wrote:

> Rename the sync_1 group to sync as the device has a single sync pin
> group for the DU, move the cde_disp mux array right after the
> corresponding pins array, and split the clk_in pins in three separate
> groups as the pins can be used independently.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

Patch applied for v3.14.

> The patch is based on top of the latest pinctrl for-next branch and is a
> candidate for v3.14. I've tested it with the DU driver on a Koelsch board.

Kölsch! Who names a board after the sweetest dialect in Germany??

Yours,
Linus Walleij

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

* Re: [PATCH] sh-pfc: r8a7791: Fix DU pin groups organisation
  2013-11-13 12:46 [PATCH] sh-pfc: r8a7791: Fix DU pin groups organisation Laurent Pinchart
  2013-11-19  8:16 ` Linus Walleij
@ 2013-11-21  5:34 ` Magnus Damm
  2013-11-21  7:22 ` Laurent Pinchart
  2 siblings, 0 replies; 4+ messages in thread
From: Magnus Damm @ 2013-11-21  5:34 UTC (permalink / raw)
  To: linux-sh

Hi Linus,

On Tue, Nov 19, 2013 at 5:16 PM, Linus Walleij <linus.walleij@linaro.org> wrote:
> On Wed, Nov 13, 2013 at 1:46 PM, Laurent Pinchart
> <laurent.pinchart+renesas@ideasonboard.com> wrote:
>
>> Rename the sync_1 group to sync as the device has a single sync pin
>> group for the DU, move the cde_disp mux array right after the
>> corresponding pins array, and split the clk_in pins in three separate
>> groups as the pins can be used independently.
>>
>> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
>
> Patch applied for v3.14.

Thanks for your help!

I realize that this patch depends on "[PATCH] sh-pfc: r8a7791 PFC
support V2" which I assumed was targeted for v3.13, or do you plan to
push that for v3.14?

>> The patch is based on top of the latest pinctrl for-next branch and is a
>> candidate for v3.14. I've tested it with the DU driver on a Koelsch board.
>
> Kölsch! Who names a board after the sweetest dialect in Germany??

Actually, I've heard that the R-Car series of boards are named after
different types of beer. At least I am aware of Lager, but Koelsch and
Marzen?

Thanks,

/ magnus

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

* Re: [PATCH] sh-pfc: r8a7791: Fix DU pin groups organisation
  2013-11-13 12:46 [PATCH] sh-pfc: r8a7791: Fix DU pin groups organisation Laurent Pinchart
  2013-11-19  8:16 ` Linus Walleij
  2013-11-21  5:34 ` Magnus Damm
@ 2013-11-21  7:22 ` Laurent Pinchart
  2 siblings, 0 replies; 4+ messages in thread
From: Laurent Pinchart @ 2013-11-21  7:22 UTC (permalink / raw)
  To: linux-sh

Hi Magnus,

On Thursday 21 November 2013 14:34:41 Magnus Damm wrote:
> On Tue, Nov 19, 2013 at 5:16 PM, Linus Walleij wrote:
> > On Wed, Nov 13, 2013 at 1:46 PM, Laurent Pinchart
> > 
> > <laurent.pinchart+renesas@ideasonboard.com> wrote:
> >> Rename the sync_1 group to sync as the device has a single sync pin
> >> group for the DU, move the cde_disp mux array right after the
> >> corresponding pins array, and split the clk_in pins in three separate
> >> groups as the pins can be used independently.
> >> 
> >> Signed-off-by: Laurent Pinchart
> >> <laurent.pinchart+renesas@ideasonboard.com>
> > 
> > Patch applied for v3.14.
> 
> Thanks for your help!
> 
> I realize that this patch depends on "[PATCH] sh-pfc: r8a7791 PFC
> support V2" which I assumed was targeted for v3.13, or do you plan to
> push that for v3.14?

That patch has been merged by Linus Torvald for v3.13-rc1.

> >> The patch is based on top of the latest pinctrl for-next branch and is a
> >> candidate for v3.14. I've tested it with the DU driver on a Koelsch
> >> board.
> > 
> > Kölsch! Who names a board after the sweetest dialect in Germany??
> 
> Actually, I've heard that the R-Car series of boards are named after
> different types of beer. At least I am aware of Lager, but Koelsch and
> Marzen?

http://en.wikipedia.org/wiki/Kölsch_(beer)
http://en.wikipedia.org/wiki/Märzen

:-)

-- 
Regards,

Laurent Pinchart


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

end of thread, other threads:[~2013-11-21  7:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-13 12:46 [PATCH] sh-pfc: r8a7791: Fix DU pin groups organisation Laurent Pinchart
2013-11-19  8:16 ` Linus Walleij
2013-11-21  5:34 ` Magnus Damm
2013-11-21  7:22 ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox