* [PATCH] sh-pfc: r8a7791: Add PWM pin groups and functions
@ 2015-05-18 1:41 Yoshihiro Shimoda
2015-05-18 7:02 ` Geert Uytterhoeven
2015-05-18 7:52 ` Laurent Pinchart
0 siblings, 2 replies; 3+ messages in thread
From: Yoshihiro Shimoda @ 2015-05-18 1:41 UTC (permalink / raw)
To: laurent.pinchart, linus.walleij; +Cc: linux-sh, linux-gpio, Yoshihiro Shimoda
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
drivers/pinctrl/sh-pfc/pfc-r8a7791.c | 125 +++++++++++++++++++++++++++++++++++
1 file changed, 125 insertions(+)
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
index cbf8ec3..6e9ed6f 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
@@ -2928,6 +2928,79 @@ static const unsigned int msiof2_tx_e_pins[] = {
static const unsigned int msiof2_tx_e_mux[] = {
MSIOF2_TXD_E_MARK,
};
+/* - PWM -------------------------------------------------------------------- */
+static const unsigned int pwm0_pins[] = {
+ RCAR_GP_PIN(6, 14),
+};
+static const unsigned int pwm0_mux[] = {
+ PWM0_MARK,
+};
+static const unsigned int pwm0_b_pins[] = {
+ RCAR_GP_PIN(5, 30),
+};
+static const unsigned int pwm0_b_mux[] = {
+ PWM0_B_MARK,
+};
+static const unsigned int pwm1_pins[] = {
+ RCAR_GP_PIN(1, 17),
+};
+static const unsigned int pwm1_mux[] = {
+ PWM1_MARK,
+};
+static const unsigned int pwm1_b_pins[] = {
+ RCAR_GP_PIN(6, 15),
+};
+static const unsigned int pwm1_b_mux[] = {
+ PWM1_B_MARK,
+};
+static const unsigned int pwm2_pins[] = {
+ RCAR_GP_PIN(1, 18),
+};
+static const unsigned int pwm2_mux[] = {
+ PWM2_MARK,
+};
+static const unsigned int pwm2_b_pins[] = {
+ RCAR_GP_PIN(0, 16),
+};
+static const unsigned int pwm2_b_mux[] = {
+ PWM2_B_MARK,
+};
+static const unsigned int pwm3_pins[] = {
+ RCAR_GP_PIN(1, 24),
+};
+static const unsigned int pwm3_mux[] = {
+ PWM3_MARK,
+};
+static const unsigned int pwm4_pins[] = {
+ RCAR_GP_PIN(3, 26),
+};
+static const unsigned int pwm4_mux[] = {
+ PWM4_MARK,
+};
+static const unsigned int pwm4_b_pins[] = {
+ RCAR_GP_PIN(3, 31),
+};
+static const unsigned int pwm4_b_mux[] = {
+ PWM4_B_MARK,
+};
+static const unsigned int pwm5_pins[] = {
+ RCAR_GP_PIN(7, 21),
+};
+static const unsigned int pwm5_mux[] = {
+ PWM5_MARK,
+};
+static const unsigned int pwm5_b_pins[] = {
+ RCAR_GP_PIN(7, 20),
+};
+static const unsigned int pwm5_b_mux[] = {
+ PWM5_B_MARK,
+};
+static const unsigned int pwm6_pins[] = {
+ RCAR_GP_PIN(7, 22),
+};
+static const unsigned int pwm6_mux[] = {
+ PWM6_MARK,
+};
/* - QSPI ------------------------------------------------------------------- */
static const unsigned int qspi_ctrl_pins[] = {
/* SPCLK, SSL */
@@ -4348,6 +4421,18 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
SH_PFC_PIN_GROUP(msiof2_sync_e),
SH_PFC_PIN_GROUP(msiof2_rx_e),
SH_PFC_PIN_GROUP(msiof2_tx_e),
+ SH_PFC_PIN_GROUP(pwm0),
+ SH_PFC_PIN_GROUP(pwm0_b),
+ SH_PFC_PIN_GROUP(pwm1),
+ SH_PFC_PIN_GROUP(pwm1_b),
+ SH_PFC_PIN_GROUP(pwm2),
+ SH_PFC_PIN_GROUP(pwm2_b),
+ SH_PFC_PIN_GROUP(pwm3),
+ SH_PFC_PIN_GROUP(pwm4),
+ SH_PFC_PIN_GROUP(pwm4_b),
+ SH_PFC_PIN_GROUP(pwm5),
+ SH_PFC_PIN_GROUP(pwm5_b),
+ SH_PFC_PIN_GROUP(pwm6),
SH_PFC_PIN_GROUP(qspi_ctrl),
SH_PFC_PIN_GROUP(qspi_data2),
SH_PFC_PIN_GROUP(qspi_data4),
@@ -4745,6 +4830,39 @@ static const char * const msiof2_groups[] = {
"msiof2_tx_e",
};
+static const char * const pwm0_groups[] = {
+ "pwm0",
+ "pwm0_b",
+};
+
+static const char * const pwm1_groups[] = {
+ "pwm1",
+ "pwm1_b",
+};
+
+static const char * const pwm2_groups[] = {
+ "pwm2",
+ "pwm2_b",
+};
+
+static const char * const pwm3_groups[] = {
+ "pwm3",
+};
+
+static const char * const pwm4_groups[] = {
+ "pwm4",
+ "pwm4_b",
+};
+
+static const char * const pwm5_groups[] = {
+ "pwm5",
+ "pwm5_b",
+};
+
+static const char * const pwm6_groups[] = {
+ "pwm6",
+};
+
static const char * const qspi_groups[] = {
"qspi_ctrl",
"qspi_data2",
@@ -4989,6 +5107,13 @@ static const struct sh_pfc_function pinmux_functions[] = {
SH_PFC_FUNCTION(msiof0),
SH_PFC_FUNCTION(msiof1),
SH_PFC_FUNCTION(msiof2),
+ SH_PFC_FUNCTION(pwm0),
+ SH_PFC_FUNCTION(pwm1),
+ SH_PFC_FUNCTION(pwm2),
+ SH_PFC_FUNCTION(pwm3),
+ SH_PFC_FUNCTION(pwm4),
+ SH_PFC_FUNCTION(pwm5),
+ SH_PFC_FUNCTION(pwm6),
SH_PFC_FUNCTION(qspi),
SH_PFC_FUNCTION(scif0),
SH_PFC_FUNCTION(scif1),
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] sh-pfc: r8a7791: Add PWM pin groups and functions
2015-05-18 1:41 [PATCH] sh-pfc: r8a7791: Add PWM pin groups and functions Yoshihiro Shimoda
@ 2015-05-18 7:02 ` Geert Uytterhoeven
2015-05-18 7:52 ` Laurent Pinchart
1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2015-05-18 7:02 UTC (permalink / raw)
To: Yoshihiro Shimoda
Cc: Laurent Pinchart, Linus Walleij, Linux-sh list,
linux-gpio@vger.kernel.org
On Mon, May 18, 2015 at 3:41 AM, Yoshihiro Shimoda
<yoshihiro.shimoda.uh@renesas.com> wrote:
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] sh-pfc: r8a7791: Add PWM pin groups and functions
2015-05-18 1:41 [PATCH] sh-pfc: r8a7791: Add PWM pin groups and functions Yoshihiro Shimoda
2015-05-18 7:02 ` Geert Uytterhoeven
@ 2015-05-18 7:52 ` Laurent Pinchart
1 sibling, 0 replies; 3+ messages in thread
From: Laurent Pinchart @ 2015-05-18 7:52 UTC (permalink / raw)
To: Yoshihiro Shimoda; +Cc: linus.walleij, linux-sh, linux-gpio
Hello Shimoda-san,
Thank you for the patch.
On Monday 18 May 2015 10:41:05 Yoshihiro Shimoda wrote:
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
> drivers/pinctrl/sh-pfc/pfc-r8a7791.c | 125 ++++++++++++++++++++++++++++++++
> 1 file changed, 125 insertions(+)
>
> diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
> b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c index cbf8ec3..6e9ed6f 100644
> --- a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
> +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
> @@ -2928,6 +2928,79 @@ static const unsigned int msiof2_tx_e_pins[] = {
> static const unsigned int msiof2_tx_e_mux[] = {
> MSIOF2_TXD_E_MARK,
> };
> +/* - PWM --------------------------------------------------------------- */
> +static const unsigned int pwm0_pins[] = {
> + RCAR_GP_PIN(6, 14),
> +};
> +static const unsigned int pwm0_mux[] = {
> + PWM0_MARK,
> +};
> +static const unsigned int pwm0_b_pins[] = {
> + RCAR_GP_PIN(5, 30),
> +};
> +static const unsigned int pwm0_b_mux[] = {
> + PWM0_B_MARK,
> +};
> +static const unsigned int pwm1_pins[] = {
> + RCAR_GP_PIN(1, 17),
> +};
> +static const unsigned int pwm1_mux[] = {
> + PWM1_MARK,
> +};
> +static const unsigned int pwm1_b_pins[] = {
> + RCAR_GP_PIN(6, 15),
> +};
> +static const unsigned int pwm1_b_mux[] = {
> + PWM1_B_MARK,
> +};
> +static const unsigned int pwm2_pins[] = {
> + RCAR_GP_PIN(1, 18),
> +};
> +static const unsigned int pwm2_mux[] = {
> + PWM2_MARK,
> +};
> +static const unsigned int pwm2_b_pins[] = {
> + RCAR_GP_PIN(0, 16),
> +};
> +static const unsigned int pwm2_b_mux[] = {
> + PWM2_B_MARK,
> +};
> +static const unsigned int pwm3_pins[] = {
> + RCAR_GP_PIN(1, 24),
> +};
> +static const unsigned int pwm3_mux[] = {
> + PWM3_MARK,
> +};
> +static const unsigned int pwm4_pins[] = {
> + RCAR_GP_PIN(3, 26),
> +};
> +static const unsigned int pwm4_mux[] = {
> + PWM4_MARK,
> +};
> +static const unsigned int pwm4_b_pins[] = {
> + RCAR_GP_PIN(3, 31),
> +};
> +static const unsigned int pwm4_b_mux[] = {
> + PWM4_B_MARK,
> +};
> +static const unsigned int pwm5_pins[] = {
> + RCAR_GP_PIN(7, 21),
> +};
> +static const unsigned int pwm5_mux[] = {
> + PWM5_MARK,
> +};
> +static const unsigned int pwm5_b_pins[] = {
> + RCAR_GP_PIN(7, 20),
> +};
> +static const unsigned int pwm5_b_mux[] = {
> + PWM5_B_MARK,
> +};
> +static const unsigned int pwm6_pins[] = {
> + RCAR_GP_PIN(7, 22),
> +};
> +static const unsigned int pwm6_mux[] = {
> + PWM6_MARK,
> +};
> /* - QSPI -------------------------------------------------------------- */
> static const unsigned int qspi_ctrl_pins[] = {
> /* SPCLK, SSL */
> @@ -4348,6 +4421,18 @@ static const struct sh_pfc_pin_group pinmux_groups[]
> = { SH_PFC_PIN_GROUP(msiof2_sync_e),
> SH_PFC_PIN_GROUP(msiof2_rx_e),
> SH_PFC_PIN_GROUP(msiof2_tx_e),
> + SH_PFC_PIN_GROUP(pwm0),
> + SH_PFC_PIN_GROUP(pwm0_b),
> + SH_PFC_PIN_GROUP(pwm1),
> + SH_PFC_PIN_GROUP(pwm1_b),
> + SH_PFC_PIN_GROUP(pwm2),
> + SH_PFC_PIN_GROUP(pwm2_b),
> + SH_PFC_PIN_GROUP(pwm3),
> + SH_PFC_PIN_GROUP(pwm4),
> + SH_PFC_PIN_GROUP(pwm4_b),
> + SH_PFC_PIN_GROUP(pwm5),
> + SH_PFC_PIN_GROUP(pwm5_b),
> + SH_PFC_PIN_GROUP(pwm6),
> SH_PFC_PIN_GROUP(qspi_ctrl),
> SH_PFC_PIN_GROUP(qspi_data2),
> SH_PFC_PIN_GROUP(qspi_data4),
> @@ -4745,6 +4830,39 @@ static const char * const msiof2_groups[] = {
> "msiof2_tx_e",
> };
>
> +static const char * const pwm0_groups[] = {
> + "pwm0",
> + "pwm0_b",
> +};
> +
> +static const char * const pwm1_groups[] = {
> + "pwm1",
> + "pwm1_b",
> +};
> +
> +static const char * const pwm2_groups[] = {
> + "pwm2",
> + "pwm2_b",
> +};
> +
> +static const char * const pwm3_groups[] = {
> + "pwm3",
> +};
> +
> +static const char * const pwm4_groups[] = {
> + "pwm4",
> + "pwm4_b",
> +};
> +
> +static const char * const pwm5_groups[] = {
> + "pwm5",
> + "pwm5_b",
> +};
> +
> +static const char * const pwm6_groups[] = {
> + "pwm6",
> +};
> +
> static const char * const qspi_groups[] = {
> "qspi_ctrl",
> "qspi_data2",
> @@ -4989,6 +5107,13 @@ static const struct sh_pfc_function
> pinmux_functions[] = { SH_PFC_FUNCTION(msiof0),
> SH_PFC_FUNCTION(msiof1),
> SH_PFC_FUNCTION(msiof2),
> + SH_PFC_FUNCTION(pwm0),
> + SH_PFC_FUNCTION(pwm1),
> + SH_PFC_FUNCTION(pwm2),
> + SH_PFC_FUNCTION(pwm3),
> + SH_PFC_FUNCTION(pwm4),
> + SH_PFC_FUNCTION(pwm5),
> + SH_PFC_FUNCTION(pwm6),
> SH_PFC_FUNCTION(qspi),
> SH_PFC_FUNCTION(scif0),
> SH_PFC_FUNCTION(scif1),
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-18 7:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-18 1:41 [PATCH] sh-pfc: r8a7791: Add PWM pin groups and functions Yoshihiro Shimoda
2015-05-18 7:02 ` Geert Uytterhoeven
2015-05-18 7:52 ` Laurent Pinchart
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).