All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jacopo Mondi <jacopo+renesas@jmondi.org>
To: magnus.damm@gmail.com, laurent.pinchart@ideasonboard.com,
	geert+renesas@glider.be, chris.brandt@renesas.com,
	linus.walleij@linaro.org
Cc: linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org
Subject: [PATCH 3/3] pinctrl: sh-pfc: r7s72100: Add LVDS pin group
Date: Mon,  9 Jan 2017 20:32:26 +0100	[thread overview]
Message-ID: <1483990346-26998-4-git-send-email-jacopo+renesas@jmondi.org> (raw)
In-Reply-To: <1483990346-26998-1-git-send-email-jacopo+renesas@jmondi.org>

The LVDS pin group has to be configured in software driven output
mode

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
---
 drivers/pinctrl/sh-pfc/pfc-r7s72100.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/drivers/pinctrl/sh-pfc/pfc-r7s72100.c b/drivers/pinctrl/sh-pfc/pfc-r7s72100.c
index e67b0d1..b531de3 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r7s72100.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r7s72100.c
@@ -438,6 +438,18 @@ SCIF7(RZ_PIN_AND_MUX)
 
 ETHERNET(RZ_PIN_AND_MUX)
 
+#define LVDS(fn)				\
+	fn(lvds, clkoutp, 5, 0, 1)		\
+	fn(lvds, clkoutm, 5, 1, 1)		\
+	fn(lvds, out2p, 5, 2, 1)		\
+	fn(lvds, out2m, 5, 3, 1)		\
+	fn(lvds, out1p, 5, 4, 1)		\
+	fn(lvds, out2m, 5, 5, 1)		\
+	fn(lvds, out0p, 5, 6, 1)		\
+	fn(lvds, out0m, 5, 7, 1)
+
+LVDS(RZ_PIN_AND_MUX_SWO)
+
 static const struct sh_pfc_pin_group pinmux_groups[] = {
 	RIIC0(RZ_PMX_GROUP)
 	RIIC1(RZ_PMX_GROUP)
@@ -457,6 +469,7 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
 	SCIF6(RZ_PMX_GROUP)
 	SCIF7(RZ_PMX_GROUP)
 	ETHERNET(RZ_PMX_GROUP)
+	LVDS(RZ_PMX_GROUP)
 };
 
 static const char * const riic0_groups[] = {
@@ -531,6 +544,10 @@ static const char * const ethernet_groups[] = {
 	ETHERNET(RZ_GROUPS)
 };
 
+static const char * const lvds_groups[] = {
+	LVDS(RZ_GROUPS)
+};
+
 static const struct sh_pfc_function pinmux_functions[] = {
 	SH_PFC_FUNCTION(riic0),
 	SH_PFC_FUNCTION(riic1),
@@ -550,6 +567,7 @@ static const struct sh_pfc_function pinmux_functions[] = {
 	SH_PFC_FUNCTION(scif6),
 	SH_PFC_FUNCTION(scif7),
 	SH_PFC_FUNCTION(ethernet),
+	SH_PFC_FUNCTION(lvds),
 };
 
 #define PFC_REG(idx, name, reg)						\
-- 
2.7.4

      parent reply	other threads:[~2017-01-09 19:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-09 19:32 [PATCH 0/3] pinctrl: sh-pfc: r7s72100: Add IO mode selection Jacopo Mondi
2017-01-09 19:32 ` [PATCH 1/3] pinctrl: sh-pfc: r7s72100: Enable DIO mode Jacopo Mondi
2017-01-09 19:32 ` [PATCH 2/3] pinctrl: sh-pfc: r7s72100: IO mode selection Jacopo Mondi
2017-01-09 19:32 ` Jacopo Mondi [this message]

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=1483990346-26998-4-git-send-email-jacopo+renesas@jmondi.org \
    --to=jacopo+renesas@jmondi.org \
    --cc=chris.brandt@renesas.com \
    --cc=geert+renesas@glider.be \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    /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 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.