All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] RZ/G2M SoC identification support
@ 2018-07-24 15:47 Biju Das
  2018-07-24 15:47 ` [PATCH 1/3] dt-bindings: arm: Document RZ/G2M SoC DT bindings Biju Das
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Biju Das @ 2018-07-24 15:47 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland, Catalin Marinas, Will Deacon
  Cc: Biju Das, Simon Horman, Magnus Damm, linux-renesas-soc,
	devicetree, Geert Uytterhoeven, Chris Paterson, Fabrizio Castro

This patch series aims to add SoC identification support 
for RZ/G2M SoC. RZ/G2M SoC is similar to R-Car Gen3 M3-W SoC.


Biju Das (3):
  dt-bindings: arm: Document RZ/G2M SoC DT bindings
  arm64: Add Renesas R8A774A1 support
  soc: renesas: Identify RZ/G2M

 Documentation/devicetree/bindings/arm/shmobile.txt |  2 ++
 arch/arm64/Kconfig.platforms                       |  6 +++++
 drivers/soc/renesas/renesas-soc.c                  | 27 ++++++++++++++++------
 3 files changed, 28 insertions(+), 7 deletions(-)

-- 
2.7.4

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

* [PATCH 1/3] dt-bindings: arm: Document RZ/G2M SoC DT bindings
  2018-07-24 15:47 [PATCH 0/3] RZ/G2M SoC identification support Biju Das
@ 2018-07-24 15:47 ` Biju Das
  2018-07-26 11:44   ` Geert Uytterhoeven
  2018-07-31 22:14   ` Rob Herring
  2018-07-24 15:47   ` Biju Das
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 11+ messages in thread
From: Biju Das @ 2018-07-24 15:47 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland
  Cc: Biju Das, Simon Horman, Magnus Damm, linux-renesas-soc,
	devicetree, Geert Uytterhoeven, Chris Paterson, Fabrizio Castro

Add device tree bindings documentation for Renesas RZ/G2M (r8a774a1) SoC.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>
---
 Documentation/devicetree/bindings/arm/shmobile.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/shmobile.txt b/Documentation/devicetree/bindings/arm/shmobile.txt
index 89b4a38..8acd3cd 100644
--- a/Documentation/devicetree/bindings/arm/shmobile.txt
+++ b/Documentation/devicetree/bindings/arm/shmobile.txt
@@ -23,6 +23,8 @@ SoCs:
     compatible = "renesas,r8a7745"
   - RZ/G1C (R8A77470)
     compatible = "renesas,r8a77470"
+  - RZ/G2M (R8A774A1)
+    compatible = "renesas,r8a774a1"
   - R-Car M1A (R8A77781)
     compatible = "renesas,r8a7778"
   - R-Car H1 (R8A77790)
-- 
2.7.4

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

* [PATCH 2/3] arm64: Add Renesas R8A774A1 support
  2018-07-24 15:47 [PATCH 0/3] RZ/G2M SoC identification support Biju Das
@ 2018-07-24 15:47   ` Biju Das
  2018-07-24 15:47   ` Biju Das
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 11+ messages in thread
From: Biju Das @ 2018-07-24 15:47 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon
  Cc: Biju Das, linux-arm-kernel, Simon Horman, Geert Uytterhoeven,
	Chris Paterson, Fabrizio Castro, linux-renesas-soc

Add configuration option for the RZ/G2M (R8A774A1) SoC.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>
---
 arch/arm64/Kconfig.platforms | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index d5aeac3..6b9f487 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -178,6 +178,12 @@ config ARCH_RENESAS
 	help
 	  This enables support for the ARMv8 based Renesas SoCs.
 
+config ARCH_R8A774A1
+	bool "Renesas RZ/G2M SoC Platform"
+	depends on ARCH_RENESAS
+	help
+	  This enables support for the Renesas RZ/G2M SoC.
+
 config ARCH_R8A7795
 	bool "Renesas R-Car H3 SoC Platform"
 	depends on ARCH_RENESAS
-- 
2.7.4

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

* [PATCH 2/3] arm64: Add Renesas R8A774A1 support
@ 2018-07-24 15:47   ` Biju Das
  0 siblings, 0 replies; 11+ messages in thread
From: Biju Das @ 2018-07-24 15:47 UTC (permalink / raw)
  To: linux-arm-kernel

Add configuration option for the RZ/G2M (R8A774A1) SoC.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>
---
 arch/arm64/Kconfig.platforms | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index d5aeac3..6b9f487 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -178,6 +178,12 @@ config ARCH_RENESAS
 	help
 	  This enables support for the ARMv8 based Renesas SoCs.
 
+config ARCH_R8A774A1
+	bool "Renesas RZ/G2M SoC Platform"
+	depends on ARCH_RENESAS
+	help
+	  This enables support for the Renesas RZ/G2M SoC.
+
 config ARCH_R8A7795
 	bool "Renesas R-Car H3 SoC Platform"
 	depends on ARCH_RENESAS
-- 
2.7.4

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

* [PATCH 3/3] soc: renesas: Identify RZ/G2M
  2018-07-24 15:47 [PATCH 0/3] RZ/G2M SoC identification support Biju Das
  2018-07-24 15:47 ` [PATCH 1/3] dt-bindings: arm: Document RZ/G2M SoC DT bindings Biju Das
  2018-07-24 15:47   ` Biju Das
@ 2018-07-24 15:47 ` Biju Das
  2018-07-26 11:47   ` Geert Uytterhoeven
  2018-07-26 13:27 ` [PATCH 0/3] RZ/G2M SoC identification support Simon Horman
  3 siblings, 1 reply; 11+ messages in thread
From: Biju Das @ 2018-07-24 15:47 UTC (permalink / raw)
  To: Simon Horman
  Cc: Biju Das, Magnus Damm, linux-renesas-soc, Geert Uytterhoeven,
	Chris Paterson, Fabrizio Castro

This patch adds support for identifying the RZ/G2M (r8a774a1) SoC.
It corrects the original RZ/G SoC family name to RZ/G1 and also 
adds support for the new RZ/G2 SoC family.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>
---
This patch corrects the RZ/G family name. Can it be 
considered for 4.19?
---
 drivers/soc/renesas/renesas-soc.c | 27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)

diff --git a/drivers/soc/renesas/renesas-soc.c b/drivers/soc/renesas/renesas-soc.c
index d44d0e6..5691618 100644
--- a/drivers/soc/renesas/renesas-soc.c
+++ b/drivers/soc/renesas/renesas-soc.c
@@ -50,11 +50,16 @@ static const struct renesas_family fam_rza __initconst __maybe_unused = {
 	.name	= "RZ/A",
 };
 
-static const struct renesas_family fam_rzg __initconst __maybe_unused = {
-	.name	= "RZ/G",
+static const struct renesas_family fam_rzg1 __initconst __maybe_unused = {
+	.name	= "RZ/G1",
 	.reg	= 0xff000044,		/* PRR (Product Register) */
 };
 
+static const struct renesas_family fam_rzg2 __initconst __maybe_unused = {
+	.name	= "RZ/G2",
+	.reg	= 0xfff00044,		/* PRR (Product Register) */
+};
+
 static const struct renesas_family fam_shmobile __initconst __maybe_unused = {
 	.name	= "SH-Mobile",
 	.reg	= 0xe600101c,		/* CCCR (Common Chip Code Register) */
@@ -81,30 +86,35 @@ static const struct renesas_soc soc_rmobile_a1 __initconst __maybe_unused = {
 };
 
 static const struct renesas_soc soc_rz_g1h __initconst __maybe_unused = {
-	.family	= &fam_rzg,
+	.family	= &fam_rzg1,
 	.id	= 0x45,
 };
 
 static const struct renesas_soc soc_rz_g1m __initconst __maybe_unused = {
-	.family	= &fam_rzg,
+	.family	= &fam_rzg1,
 	.id	= 0x47,
 };
 
 static const struct renesas_soc soc_rz_g1n __initconst __maybe_unused = {
-	.family	= &fam_rzg,
+	.family	= &fam_rzg1,
 	.id	= 0x4b,
 };
 
 static const struct renesas_soc soc_rz_g1e __initconst __maybe_unused = {
-	.family	= &fam_rzg,
+	.family	= &fam_rzg1,
 	.id	= 0x4c,
 };
 
 static const struct renesas_soc soc_rz_g1c __initconst __maybe_unused = {
-	.family	= &fam_rzg,
+	.family	= &fam_rzg1,
 	.id	= 0x53,
 };
 
+static const struct renesas_soc soc_rz_g2m __initconst __maybe_unused = {
+	.family	= &fam_rzg2,
+	.id	= 0x52,
+};
+
 static const struct renesas_soc soc_rcar_m1a __initconst __maybe_unused = {
 	.family	= &fam_rcar_gen1,
 };
@@ -205,6 +215,9 @@ static const struct of_device_id renesas_socs[] __initconst = {
 #ifdef CONFIG_ARCH_R8A77470
 	{ .compatible = "renesas,r8a77470",	.data = &soc_rz_g1c },
 #endif
+#ifdef CONFIG_ARCH_R8A774A1
+	{ .compatible = "renesas,r8a774a1",	.data = &soc_rz_g2m },
+#endif
 #ifdef CONFIG_ARCH_R8A7778
 	{ .compatible = "renesas,r8a7778",	.data = &soc_rcar_m1a },
 #endif
-- 
2.7.4

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

* Re: [PATCH 1/3] dt-bindings: arm: Document RZ/G2M SoC DT bindings
  2018-07-24 15:47 ` [PATCH 1/3] dt-bindings: arm: Document RZ/G2M SoC DT bindings Biju Das
@ 2018-07-26 11:44   ` Geert Uytterhoeven
  2018-07-31 22:14   ` Rob Herring
  1 sibling, 0 replies; 11+ messages in thread
From: Geert Uytterhoeven @ 2018-07-26 11:44 UTC (permalink / raw)
  To: Biju Das
  Cc: Rob Herring, Mark Rutland, Simon Horman, Magnus Damm,
	Linux-Renesas,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Geert Uytterhoeven, Chris Paterson, Fabrizio Castro

On Tue, Jul 24, 2018 at 5:53 PM Biju Das <biju.das@bp.renesas.com> wrote:
> Add device tree bindings documentation for Renesas RZ/G2M (r8a774a1) SoC.
>
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>

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

* Re: [PATCH 2/3] arm64: Add Renesas R8A774A1 support
  2018-07-24 15:47   ` Biju Das
@ 2018-07-26 11:44     ` Geert Uytterhoeven
  -1 siblings, 0 replies; 11+ messages in thread
From: Geert Uytterhoeven @ 2018-07-26 11:44 UTC (permalink / raw)
  To: Biju Das
  Cc: Catalin Marinas, Will Deacon, Linux ARM, Simon Horman,
	Geert Uytterhoeven, Chris Paterson, Fabrizio Castro,
	Linux-Renesas

On Tue, Jul 24, 2018 at 5:53 PM Biju Das <biju.das@bp.renesas.com> wrote:
> Add configuration option for the RZ/G2M (R8A774A1) SoC.
>
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>

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

* [PATCH 2/3] arm64: Add Renesas R8A774A1 support
@ 2018-07-26 11:44     ` Geert Uytterhoeven
  0 siblings, 0 replies; 11+ messages in thread
From: Geert Uytterhoeven @ 2018-07-26 11:44 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Jul 24, 2018 at 5:53 PM Biju Das <biju.das@bp.renesas.com> wrote:
> Add configuration option for the RZ/G2M (R8A774A1) SoC.
>
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at 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] 11+ messages in thread

* Re: [PATCH 3/3] soc: renesas: Identify RZ/G2M
  2018-07-24 15:47 ` [PATCH 3/3] soc: renesas: Identify RZ/G2M Biju Das
@ 2018-07-26 11:47   ` Geert Uytterhoeven
  0 siblings, 0 replies; 11+ messages in thread
From: Geert Uytterhoeven @ 2018-07-26 11:47 UTC (permalink / raw)
  To: Biju Das
  Cc: Simon Horman, Magnus Damm, Linux-Renesas, Geert Uytterhoeven,
	Chris Paterson, Fabrizio Castro

Hi Biju,

On Tue, Jul 24, 2018 at 5:53 PM Biju Das <biju.das@bp.renesas.com> wrote:
> This patch adds support for identifying the RZ/G2M (r8a774a1) SoC.
> It corrects the original RZ/G SoC family name to RZ/G1 and also
> adds support for the new RZ/G2 SoC family.

Note that there are no in-kernel users (e.g. soc_device_match()) of the family
name. I'm not aware of any userspace users of /sys/devices/soc0/family.

> Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>

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

* Re: [PATCH 0/3] RZ/G2M SoC identification support
  2018-07-24 15:47 [PATCH 0/3] RZ/G2M SoC identification support Biju Das
                   ` (2 preceding siblings ...)
  2018-07-24 15:47 ` [PATCH 3/3] soc: renesas: Identify RZ/G2M Biju Das
@ 2018-07-26 13:27 ` Simon Horman
  3 siblings, 0 replies; 11+ messages in thread
From: Simon Horman @ 2018-07-26 13:27 UTC (permalink / raw)
  To: Biju Das
  Cc: Rob Herring, Mark Rutland, Catalin Marinas, Will Deacon,
	Magnus Damm, linux-renesas-soc, devicetree, Geert Uytterhoeven,
	Chris Paterson, Fabrizio Castro

On Tue, Jul 24, 2018 at 04:47:15PM +0100, Biju Das wrote:
> This patch series aims to add SoC identification support 
> for RZ/G2M SoC. RZ/G2M SoC is similar to R-Car Gen3 M3-W SoC.
> 
> 
> Biju Das (3):
>   dt-bindings: arm: Document RZ/G2M SoC DT bindings
>   arm64: Add Renesas R8A774A1 support
>   soc: renesas: Identify RZ/G2M

Thanks, applied for v4.20.

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

* Re: [PATCH 1/3] dt-bindings: arm: Document RZ/G2M SoC DT bindings
  2018-07-24 15:47 ` [PATCH 1/3] dt-bindings: arm: Document RZ/G2M SoC DT bindings Biju Das
  2018-07-26 11:44   ` Geert Uytterhoeven
@ 2018-07-31 22:14   ` Rob Herring
  1 sibling, 0 replies; 11+ messages in thread
From: Rob Herring @ 2018-07-31 22:14 UTC (permalink / raw)
  To: Biju Das
  Cc: Mark Rutland, Simon Horman, Magnus Damm, linux-renesas-soc,
	devicetree, Geert Uytterhoeven, Chris Paterson, Fabrizio Castro

On Tue, Jul 24, 2018 at 04:47:16PM +0100, Biju Das wrote:
> Add device tree bindings documentation for Renesas RZ/G2M (r8a774a1) SoC.
> 
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>
> ---
>  Documentation/devicetree/bindings/arm/shmobile.txt | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Rob Herring <robh@kernel.org>

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

end of thread, other threads:[~2018-07-31 22:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-24 15:47 [PATCH 0/3] RZ/G2M SoC identification support Biju Das
2018-07-24 15:47 ` [PATCH 1/3] dt-bindings: arm: Document RZ/G2M SoC DT bindings Biju Das
2018-07-26 11:44   ` Geert Uytterhoeven
2018-07-31 22:14   ` Rob Herring
2018-07-24 15:47 ` [PATCH 2/3] arm64: Add Renesas R8A774A1 support Biju Das
2018-07-24 15:47   ` Biju Das
2018-07-26 11:44   ` Geert Uytterhoeven
2018-07-26 11:44     ` Geert Uytterhoeven
2018-07-24 15:47 ` [PATCH 3/3] soc: renesas: Identify RZ/G2M Biju Das
2018-07-26 11:47   ` Geert Uytterhoeven
2018-07-26 13:27 ` [PATCH 0/3] RZ/G2M SoC identification support 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.