All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add RZ/G1N PFC driver.
@ 2018-09-11 10:30 Biju Das
  2018-09-11 10:30 ` [PATCH 1/2] dt-bindings: pinctrl: sh-pfc: Document r8a7744 PFC support Biju Das
  2018-09-11 10:30 ` [PATCH 2/2] pinctrl: sh-pfc: r8a7791: Add r8a7744 support Biju Das
  0 siblings, 2 replies; 7+ messages in thread
From: Biju Das @ 2018-09-11 10:30 UTC (permalink / raw)
  To: Linus Walleij, Rob Herring, Geert Uytterhoeven, Laurent Pinchart,
	Mark Rutland
  Cc: Biju Das, linux-gpio, devicetree, Simon Horman, Chris Paterson,
	Fabrizio Castro, linux-renesas-soc

This patch series aims to add support for RZ/G1N (R8A7744) PFC driver.

RZ/G1N SoC is similar to RZ/G1M and R-Car Gen2 M2-W/M2-N SoC.

This patchset is based on renesas-devel-20180906-v4.19-rc2.

Biju Das (2):
  dt-bindings: pinctrl: sh-pfc: Document r8a7744 PFC support
  pinctrl: sh-pfc: r8a7791: Add r8a7744 support

 .../bindings/pinctrl/renesas,pfc-pinctrl.txt       |  1 +
 drivers/pinctrl/sh-pfc/Kconfig                     |  5 +++++
 drivers/pinctrl/sh-pfc/Makefile                    |  1 +
 drivers/pinctrl/sh-pfc/core.c                      |  6 ++++++
 drivers/pinctrl/sh-pfc/pfc-r8a7791.c               | 22 ++++++++++++++++++++++
 drivers/pinctrl/sh-pfc/sh_pfc.h                    |  1 +
 6 files changed, 36 insertions(+)

-- 
2.7.4

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

* [PATCH 1/2] dt-bindings: pinctrl: sh-pfc: Document r8a7744 PFC support
  2018-09-11 10:30 [PATCH 0/2] Add RZ/G1N PFC driver Biju Das
@ 2018-09-11 10:30 ` Biju Das
  2018-09-12  9:31   ` Simon Horman
  2018-09-14 13:01   ` Geert Uytterhoeven
  2018-09-11 10:30 ` [PATCH 2/2] pinctrl: sh-pfc: r8a7791: Add r8a7744 support Biju Das
  1 sibling, 2 replies; 7+ messages in thread
From: Biju Das @ 2018-09-11 10:30 UTC (permalink / raw)
  To: Linus Walleij, Rob Herring, Mark Rutland
  Cc: Biju Das, linux-gpio, devicetree, Simon Horman,
	Geert Uytterhoeven, Chris Paterson, Fabrizio Castro,
	linux-renesas-soc

Document PFC support for the RZ/G1N (R8A7744) SoC.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
---
 Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt
index 01c6f5f..564725d 100644
--- a/Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt
+++ b/Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt
@@ -14,6 +14,7 @@ Required Properties:
     - "renesas,pfc-r8a73a4": for R8A73A4 (R-Mobile APE6) compatible pin-controller.
     - "renesas,pfc-r8a7740": for R8A7740 (R-Mobile A1) compatible pin-controller.
     - "renesas,pfc-r8a7743": for R8A7743 (RZ/G1M) compatible pin-controller.
+    - "renesas,pfc-r8a7744": for R8A7744 (RZ/G1N) compatible pin-controller.
     - "renesas,pfc-r8a7745": for R8A7745 (RZ/G1E) compatible pin-controller.
     - "renesas,pfc-r8a77470": for R8A77470 (RZ/G1C) compatible pin-controller.
     - "renesas,pfc-r8a774a1": for R8A774A1 (RZ/G2M) compatible pin-controller.
-- 
2.7.4

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

* [PATCH 2/2] pinctrl: sh-pfc: r8a7791: Add r8a7744 support
  2018-09-11 10:30 [PATCH 0/2] Add RZ/G1N PFC driver Biju Das
  2018-09-11 10:30 ` [PATCH 1/2] dt-bindings: pinctrl: sh-pfc: Document r8a7744 PFC support Biju Das
@ 2018-09-11 10:30 ` Biju Das
  2018-09-12  9:31   ` Simon Horman
  2018-09-14 13:06   ` Geert Uytterhoeven
  1 sibling, 2 replies; 7+ messages in thread
From: Biju Das @ 2018-09-11 10:30 UTC (permalink / raw)
  To: Laurent Pinchart, Geert Uytterhoeven, Linus Walleij
  Cc: Biju Das, linux-renesas-soc, linux-gpio, Simon Horman,
	Chris Paterson, Fabrizio Castro

Renesas RZ/G1N (R8A7744) is pin compatible with R-Car M2-W/N (R8A7791/3)
and RZ/G1M.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
---
 drivers/pinctrl/sh-pfc/Kconfig       |  5 +++++
 drivers/pinctrl/sh-pfc/Makefile      |  1 +
 drivers/pinctrl/sh-pfc/core.c        |  6 ++++++
 drivers/pinctrl/sh-pfc/pfc-r8a7791.c | 22 ++++++++++++++++++++++
 drivers/pinctrl/sh-pfc/sh_pfc.h      |  1 +
 5 files changed, 35 insertions(+)

diff --git a/drivers/pinctrl/sh-pfc/Kconfig b/drivers/pinctrl/sh-pfc/Kconfig
index 6a7254c..5fad61c 100644
--- a/drivers/pinctrl/sh-pfc/Kconfig
+++ b/drivers/pinctrl/sh-pfc/Kconfig
@@ -39,6 +39,11 @@ config PINCTRL_PFC_R8A7743
 	depends on ARCH_R8A7743
 	select PINCTRL_SH_PFC
 
+config PINCTRL_PFC_R8A7744
+	def_bool y
+	depends on ARCH_R8A7744
+	select PINCTRL_SH_PFC
+
 config PINCTRL_PFC_R8A7745
         def_bool y
         depends on ARCH_R8A7745
diff --git a/drivers/pinctrl/sh-pfc/Makefile b/drivers/pinctrl/sh-pfc/Makefile
index 9510a48..b14cf6a 100644
--- a/drivers/pinctrl/sh-pfc/Makefile
+++ b/drivers/pinctrl/sh-pfc/Makefile
@@ -5,6 +5,7 @@ obj-$(CONFIG_PINCTRL_PFC_EMEV2)	+= pfc-emev2.o
 obj-$(CONFIG_PINCTRL_PFC_R8A73A4)	+= pfc-r8a73a4.o
 obj-$(CONFIG_PINCTRL_PFC_R8A7740)	+= pfc-r8a7740.o
 obj-$(CONFIG_PINCTRL_PFC_R8A7743)	+= pfc-r8a7791.o
+obj-$(CONFIG_PINCTRL_PFC_R8A7744)	+= pfc-r8a7791.o
 obj-$(CONFIG_PINCTRL_PFC_R8A7745)	+= pfc-r8a7794.o
 obj-$(CONFIG_PINCTRL_PFC_R8A77470)	+= pfc-r8a77470.o
 obj-$(CONFIG_PINCTRL_PFC_R8A774A1)	+= pfc-r8a7796.o
diff --git a/drivers/pinctrl/sh-pfc/core.c b/drivers/pinctrl/sh-pfc/core.c
index 0122471..74c533a 100644
--- a/drivers/pinctrl/sh-pfc/core.c
+++ b/drivers/pinctrl/sh-pfc/core.c
@@ -497,6 +497,12 @@ static const struct of_device_id sh_pfc_of_table[] = {
 		.data = &r8a7743_pinmux_info,
 	},
 #endif
+#ifdef CONFIG_PINCTRL_PFC_R8A7744
+	{
+		.compatible = "renesas,pfc-r8a7744",
+		.data = &r8a7744_pinmux_info,
+	},
+#endif
 #ifdef CONFIG_PINCTRL_PFC_R8A7745
 	{
 		.compatible = "renesas,pfc-r8a7745",
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
index 5811784..0371ef1 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
@@ -6634,6 +6634,28 @@ const struct sh_pfc_soc_info r8a7743_pinmux_info = {
 };
 #endif
 
+#ifdef CONFIG_PINCTRL_PFC_R8A7744
+const struct sh_pfc_soc_info r8a7744_pinmux_info = {
+	.name = "r8a77440_pfc",
+	.ops = &r8a7791_pinmux_ops,
+	.unlock_reg = 0xe6060000, /* PMMR */
+
+	.function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
+
+	.pins = pinmux_pins,
+	.nr_pins = ARRAY_SIZE(pinmux_pins),
+	.groups = pinmux_groups.common,
+	.nr_groups = ARRAY_SIZE(pinmux_groups.common),
+	.functions = pinmux_functions.common,
+	.nr_functions = ARRAY_SIZE(pinmux_functions.common),
+
+	.cfg_regs = pinmux_config_regs,
+
+	.pinmux_data = pinmux_data,
+	.pinmux_data_size = ARRAY_SIZE(pinmux_data),
+};
+#endif
+
 #ifdef CONFIG_PINCTRL_PFC_R8A7791
 const struct sh_pfc_soc_info r8a7791_pinmux_info = {
 	.name = "r8a77910_pfc",
diff --git a/drivers/pinctrl/sh-pfc/sh_pfc.h b/drivers/pinctrl/sh-pfc/sh_pfc.h
index 1d491d1..353f4af 100644
--- a/drivers/pinctrl/sh-pfc/sh_pfc.h
+++ b/drivers/pinctrl/sh-pfc/sh_pfc.h
@@ -273,6 +273,7 @@ extern const struct sh_pfc_soc_info emev2_pinmux_info;
 extern const struct sh_pfc_soc_info r8a73a4_pinmux_info;
 extern const struct sh_pfc_soc_info r8a7740_pinmux_info;
 extern const struct sh_pfc_soc_info r8a7743_pinmux_info;
+extern const struct sh_pfc_soc_info r8a7744_pinmux_info;
 extern const struct sh_pfc_soc_info r8a7745_pinmux_info;
 extern const struct sh_pfc_soc_info r8a77470_pinmux_info;
 extern const struct sh_pfc_soc_info r8a774a1_pinmux_info;
-- 
2.7.4

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

* Re: [PATCH 2/2] pinctrl: sh-pfc: r8a7791: Add r8a7744 support
  2018-09-11 10:30 ` [PATCH 2/2] pinctrl: sh-pfc: r8a7791: Add r8a7744 support Biju Das
@ 2018-09-12  9:31   ` Simon Horman
  2018-09-14 13:06   ` Geert Uytterhoeven
  1 sibling, 0 replies; 7+ messages in thread
From: Simon Horman @ 2018-09-12  9:31 UTC (permalink / raw)
  To: Biju Das
  Cc: Laurent Pinchart, Geert Uytterhoeven, Linus Walleij,
	linux-renesas-soc, linux-gpio, Chris Paterson, Fabrizio Castro

On Tue, Sep 11, 2018 at 11:30:05AM +0100, Biju Das wrote:
> Renesas RZ/G1N (R8A7744) is pin compatible with R-Car M2-W/N (R8A7791/3)
> and RZ/G1M.
> 
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>

Reviewed-by: Simon Horman <horms+renesas@verge.net.au>

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

* Re: [PATCH 1/2] dt-bindings: pinctrl: sh-pfc: Document r8a7744 PFC support
  2018-09-11 10:30 ` [PATCH 1/2] dt-bindings: pinctrl: sh-pfc: Document r8a7744 PFC support Biju Das
@ 2018-09-12  9:31   ` Simon Horman
  2018-09-14 13:01   ` Geert Uytterhoeven
  1 sibling, 0 replies; 7+ messages in thread
From: Simon Horman @ 2018-09-12  9:31 UTC (permalink / raw)
  To: Biju Das
  Cc: Linus Walleij, Rob Herring, Mark Rutland, linux-gpio, devicetree,
	Geert Uytterhoeven, Chris Paterson, Fabrizio Castro,
	linux-renesas-soc

On Tue, Sep 11, 2018 at 11:30:04AM +0100, Biju Das wrote:
> Document PFC support for the RZ/G1N (R8A7744) SoC.
> 
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>

Reviewed-by: Simon Horman <horms+renesas@verge.net.au>

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

* Re: [PATCH 1/2] dt-bindings: pinctrl: sh-pfc: Document r8a7744 PFC support
  2018-09-11 10:30 ` [PATCH 1/2] dt-bindings: pinctrl: sh-pfc: Document r8a7744 PFC support Biju Das
  2018-09-12  9:31   ` Simon Horman
@ 2018-09-14 13:01   ` Geert Uytterhoeven
  1 sibling, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2018-09-14 13:01 UTC (permalink / raw)
  To: Biju Das
  Cc: Linus Walleij, Rob Herring, Mark Rutland,
	open list:GPIO SUBSYSTEM,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Simon Horman, Geert Uytterhoeven, Chris Paterson,
	Fabrizio Castro, Linux-Renesas

On Tue, Sep 11, 2018 at 12:36 PM Biju Das <biju.das@bp.renesas.com> wrote:
> Document PFC support for the RZ/G1N (R8A7744) SoC.
>
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in sh-pfc-for-v4.20.

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] 7+ messages in thread

* Re: [PATCH 2/2] pinctrl: sh-pfc: r8a7791: Add r8a7744 support
  2018-09-11 10:30 ` [PATCH 2/2] pinctrl: sh-pfc: r8a7791: Add r8a7744 support Biju Das
  2018-09-12  9:31   ` Simon Horman
@ 2018-09-14 13:06   ` Geert Uytterhoeven
  1 sibling, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2018-09-14 13:06 UTC (permalink / raw)
  To: Biju Das
  Cc: Laurent Pinchart, Geert Uytterhoeven, Linus Walleij,
	Linux-Renesas, open list:GPIO SUBSYSTEM, Simon Horman,
	Chris Paterson, Fabrizio Castro

On Tue, Sep 11, 2018 at 12:36 PM Biju Das <biju.das@bp.renesas.com> wrote:
> Renesas RZ/G1N (R8A7744) is pin compatible with R-Car M2-W/N (R8A7791/3)
> and RZ/G1M.
>
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in sh-pfc-for-v4.20.

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] 7+ messages in thread

end of thread, other threads:[~2018-09-14 18:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-11 10:30 [PATCH 0/2] Add RZ/G1N PFC driver Biju Das
2018-09-11 10:30 ` [PATCH 1/2] dt-bindings: pinctrl: sh-pfc: Document r8a7744 PFC support Biju Das
2018-09-12  9:31   ` Simon Horman
2018-09-14 13:01   ` Geert Uytterhoeven
2018-09-11 10:30 ` [PATCH 2/2] pinctrl: sh-pfc: r8a7791: Add r8a7744 support Biju Das
2018-09-12  9:31   ` Simon Horman
2018-09-14 13:06   ` Geert Uytterhoeven

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.