arm64: renesas: Add support for R Car H3e 2G-and M3e-2G
Subsystems (2)
Geert Uytterhoeven
maintainerv2 cover arm64: renesas: Add support for R Car H3e 2G-and M3e-2G
Hi all,
The new R-Car Gen3e SoCs are different gradings of the existing R-Car Gen3 SoCs. This series adds support for the first two members of the
family: R-Car H3e-2G (R8A779M1) and R-Car M3e-2G (R8A779M3), on the Salvator-XS and ULCB (with and without Kingfisher) development boards.
Changes compared to v1[1]:
- Add Reviewed-by, Acked-by.
- Drop new fam_rcar_gen3e and soc_rcar_[hm]3e, just use the existing
soc_rcar_{h3,m3_w}, - Drop pinctrl fix, which has evolved independently[2],
- Drop mmc fix, which has been superseded by a recent refactoring[3],
- Drop 2 GHz turbo modes, as the official opp-microvolt values are not yet available,
- Widen the audience.
This series has been tested on Salvator-X with R-Car H3 ES3.0 and Salvator-XS with R-Car M3-W+. For testing, a branch with dependencies and fixups to prototype R-Car Gen3e development on older Gen3 SoCs can be found at[4].
I plan to queue this in renesas-devel for v5.15.
Thanks for your comments!
[1] "[PATCH 00/14] arm64: renesas: Add support for R-Car H3e 2G-and M3e-2G"
(https://lore.kernel.org/r/[email protected]/). [2] "[PATCH v2] pinctrl: renesas: Fix pin control matching on R-Car H3e-2G" (https://lore.kernel.org/r/6cdc5bfa424461105779b56f455387e03560cf66.1626707688.git.geert+renesas@glider.be) [3] "[PATCH v3] mmc: host: renesas_sdhi: Refactor renesas_sdhi_probe()" (https://lore.kernel.org/r/[email protected]/)
[2] https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/rcar-gen3e-v2
Geert Uytterhoeven (10):
dt-bindings: arm: renesas: Document R-Car H3e-2G and M3e-2G SoCs and
boards
soc: renesas: Identify R-Car H3e-2G and M3e-2G
arm64: dts: renesas: Add Renesas R8A779M1 SoC support
arm64: dts: renesas: Add Renesas R8A779M3 SoC support
arm64: dts: renesas: Add support for Salvator-XS with R-Car H3e-2G
arm64: dts: renesas: Add support for H3ULCB with R-Car H3e-2G
arm64: dts: renesas: Add support for H3ULCB+Kingfisher with R-Car
H3e-2G
arm64: dts: renesas: Add support for Salvator-XS with R-Car M3e-2G
arm64: dts: renesas: Add support for M3ULCB with R-Car M3e-2G
arm64: dts: renesas: Add support for M3ULCB+Kingfisher with R-Car
M3e-2G.../devicetree/bindings/arm/renesas.yaml | 50 +++++++++++++---- arch/arm64/boot/dts/renesas/Makefile | 8 +++ .../boot/dts/renesas/r8a779m1-salvator-xs.dts | 53 ++++++++++++++++++ .../boot/dts/renesas/r8a779m1-ulcb-kf.dts | 19 +++++++ arch/arm64/boot/dts/renesas/r8a779m1-ulcb.dts | 54 +++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a779m1.dtsi | 12 +++++ .../boot/dts/renesas/r8a779m3-salvator-xs.dts | 46 ++++++++++++++++ .../boot/dts/renesas/r8a779m3-ulcb-kf.dts | 18 +++++++ arch/arm64/boot/dts/renesas/r8a779m3-ulcb.dts | 45 ++++++++++++++++ arch/arm64/boot/dts/renesas/r8a779m3.dtsi | 12 +++++ drivers/soc/renesas/Kconfig | 2 + drivers/soc/renesas/renesas-soc.c | 4 ++ 12 files changed, 312 insertions(+), 11 deletions(-) create mode 100644 arch/arm64/boot/dts/renesas/r8a779m1-salvator-xs.dts create mode 100644 arch/arm64/boot/dts/renesas/r8a779m1-ulcb-kf.dts create mode 100644 arch/arm64/boot/dts/renesas/r8a779m1-ulcb.dts create mode 100644 arch/arm64/boot/dts/renesas/r8a779m1.dtsi create mode 100644 arch/arm64/boot/dts/renesas/r8a779m3-salvator-xs.dts create mode 100644 arch/arm64/boot/dts/renesas/r8a779m3-ulcb-kf.dts create mode 100644 arch/arm64/boot/dts/renesas/r8a779m3-ulcb.dts create mode 100644 arch/arm64/boot/dts/renesas/r8a779m3.dtsi
Signature · 17 lines
2.25.1
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
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
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernelGeert Uytterhoeven
maintainerPATCH v2 1/10 dt-bindings: arm: renesas: Document R-Car H3e-2G and M3e-2G SoCs and boards
Document the compatible values for the R-Car H3e-2G (R8A779M1) and M3e-2G (R8A779M3) SoCs. These are different gradings of the R-Car H3 ES3.0 (R8A77951) and M3-W+ (R8A77961) SoCs.
All R-Car Gen3e on-SoC devices are identical to the devices on the corresponding R-Car Gen3 SoCs, and thus just use the compatible values for the latter. The root compatible properties do gain an additional value, to sort out integration issues if they ever arise.
Document the use of these SoCs on the Salvator-XS and ULCB (with and without Kingfisher) development boards.
---
v2:
- Add Reviewed-by, Acked-by.
--- .../devicetree/bindings/arm/renesas.yaml | 50 +++++++++++++++---- 1 file changed, 39 insertions(+), 11 deletions(-)
Documentation/devicetree/bindings/arm/renesas.yaml +39 -11
@@ -238,17 +238,29 @@ properties: - const: renesas,r8a77961 - description: Kingfisher (SBEV-RCAR-KF-M03) - items: - - const: shimafuji,kingfisher - - enum: - - renesas,h3ulcb - - renesas,m3ulcb - - renesas,m3nulcb - - enum: - - renesas,r8a7795 - - renesas,r8a7796 - - renesas,r8a77961 - - renesas,r8a77965 + oneOf: + - items: + - const: shimafuji,kingfisher + - enum: + - renesas,h3ulcb + - renesas,m3ulcb + - renesas,m3nulcb + - enum: + - renesas,r8a7795 + - renesas,r8a7796 + - renesas,r8a77961 + - renesas,r8a77965 + - items: + - const: shimafuji,kingfisher + - enum: + - renesas,h3ulcb + - renesas,m3ulcb + - enum: + - renesas,r8a779m1 + - renesas,r8a779m3 + - enum: + - renesas,r8a7795 + - renesas,r8a77961 - description: R-Car M3-N (R8A77965) items:
@@ -296,6 +308,22 @@ properties: - const: renesas,falcon-cpu - const: renesas,r8a779a0 + - description: R-Car H3e-2G (R8A779M1) + items: + - enum: + - renesas,h3ulcb # H3ULCB (R-Car Starter Kit Premier) + - renesas,salvator-xs # Salvator-XS (Salvator-X 2nd version) + - const: renesas,r8a779m1 + - const: renesas,r8a7795 + + - description: R-Car M3e-2G (R8A779M3) + items: + - enum: + - renesas,m3ulcb # M3ULCB (R-Car Starter Kit Pro) + - renesas,salvator-xs # Salvator-XS (Salvator-X 2nd version) + - const: renesas,r8a779m3 + - const: renesas,r8a77961 + - description: RZ/N1D (R9A06G032) items: - enum:
Signature · 7 lines
2.25.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Geert Uytterhoeven
maintainerPATCH v2 2/10 soc: renesas: Identify R-Car H3e-2G and M3e-2G
In reply to Geert UytterhoevenAdd support for identifying the R-Car H3e-2G (R8A779M1) and R-Car M3e-2G (R8A779M3) SoCs.
As these are different gradings of the already supported R-Car H3 ES3.0 (R8A77951) and M3-W+ (R8A77961) SoCs, support for them is enabled through the existing ARCH_R8A77951 and ARCH_R8A77961 configuration symbols.
---
v2:
- Drop new fam_rcar_gen3e and soc_rcar_[hm]3e, just use the existing
soc_rcar_{h3,m3_w},
- Add Reviewed-by.
---
drivers/soc/renesas/Kconfig | 2 ++
drivers/soc/renesas/renesas-soc.c | 4 ++++
2 files changed, 6 insertions(+)drivers/soc/renesas/Kconfig +2 -0
@@ -208,6 +208,7 @@ config ARCH_R8A77951 help This enables support for the Renesas R-Car H3 SoC (revisions 2.0 and later). + This includes different gradings like R-Car H3e-2G. config ARCH_R8A77965 bool "ARM64 Platform support for R-Car M3-N"
@@ -229,6 +230,7 @@ config ARCH_R8A77961 select SYSC_R8A77961 help This enables support for the Renesas R-Car M3-W+ SoC. + This includes different gradings like R-Car M3e-2G. config ARCH_R8A77980 bool "ARM64 Platform support for R-Car V3H"
drivers/soc/renesas/renesas-soc.c +4 -0
@@ -284,11 +284,15 @@ static const struct of_device_id renesas_socs[] __initconst = { #if defined(CONFIG_ARCH_R8A77950) || defined(CONFIG_ARCH_R8A77951) { .compatible = "renesas,r8a7795", .data = &soc_rcar_h3 }, #endif +#ifdef CONFIG_ARCH_R8A77951 + { .compatible = "renesas,r8a779m1", .data = &soc_rcar_h3 }, +#endif #ifdef CONFIG_ARCH_R8A77960 { .compatible = "renesas,r8a7796", .data = &soc_rcar_m3_w }, #endif #ifdef CONFIG_ARCH_R8A77961 { .compatible = "renesas,r8a77961", .data = &soc_rcar_m3_w }, + { .compatible = "renesas,r8a779m3", .data = &soc_rcar_m3_w }, #endif #ifdef CONFIG_ARCH_R8A77965 { .compatible = "renesas,r8a77965", .data = &soc_rcar_m3_n },
Signature · 7 lines
2.25.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Geert Uytterhoeven
maintainerPATCH v2 3/10 arm64: dts: renesas: Add Renesas R8A779M1 SoC support
In reply to Geert UytterhoevenAdd support for the Renesas R-Car H3e-2G (R8A779M1) SoC, which is a different grading of the R-Car H3 ES3.0 (R8A77951) SoC.
---
v2:
- Add Reviewed-by.
--- arch/arm64/boot/dts/renesas/r8a779m1.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r8a779m1.dtsi
arch/arm64/boot/dts/renesas/r8a779m1.dtsi new file +12 -0
@@ -0,0 +1,12 @@ +// SPDX-License-Identifier: (GPL-2.0 or MIT) +/* + * Device Tree Source for the R-Car H3e-2G (R8A779M1) SoC + * + * Copyright (C) 2021 Glider bv + */ + +#include "r8a77951.dtsi" + +/ { + compatible = "renesas,r8a779m1", "renesas,r8a7795"; +};
Signature · 7 lines
2.25.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Geert Uytterhoeven
maintainerPATCH v2 4/10 arm64: dts: renesas: Add Renesas R8A779M3 SoC support
In reply to Geert UytterhoevenAdd support for the Renesas R-Car M3e-2G (R8A779M3) SoC, which is a different grading of the R-Car M3-W+ (R8A77961) SoC.
---
v2:
- Add Reviewed-by.
--- arch/arm64/boot/dts/renesas/r8a779m3.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r8a779m3.dtsi
arch/arm64/boot/dts/renesas/r8a779m3.dtsi new file +12 -0
@@ -0,0 +1,12 @@ +// SPDX-License-Identifier: (GPL-2.0 or MIT) +/* + * Device Tree Source for the R-Car M3e-2G (R8A779M3) SoC + * + * Copyright (C) 2021 Glider bv + */ + +#include "r8a77961.dtsi" + +/ { + compatible = "renesas,r8a779m3", "renesas,r8a77961"; +};
Signature · 7 lines
2.25.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Geert Uytterhoeven
maintainerPATCH v2 5/10 arm64: dts: renesas: Add support for Salvator-XS with R-Car H3e-2G
In reply to Geert UytterhoevenAdd support for the Renesas Salvator-X 2nd version development board equipped with an R-Car H3e-2G SiP.
---
v2:
- Add Reviewed-by.
--- arch/arm64/boot/dts/renesas/Makefile | 2 + .../boot/dts/renesas/r8a779m1-salvator-xs.dts | 53 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r8a779m1-salvator-xs.dts
arch/arm64/boot/dts/renesas/Makefile +2 -0
@@ -63,4 +63,6 @@ dtb-$(CONFIG_ARCH_R8A77995) += r8a77995-draak.dtb dtb-$(CONFIG_ARCH_R8A779A0) += r8a779a0-falcon.dtb +dtb-$(CONFIG_ARCH_R8A77951) += r8a779m1-salvator-xs.dtb + dtb-$(CONFIG_ARCH_R9A07G044) += r9a07g044l2-smarc.dtb
arch/arm64/boot/dts/renesas/r8a779m1-salvator-xs.dts new file +53 -0
53 lines not on this page · raw message
Signature · 7 lines
2.25.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Geert Uytterhoeven
maintainerPATCH v2 6/10 arm64: dts: renesas: Add support for H3ULCB with R-Car H3e-2G
In reply to Geert UytterhoevenAdd support for the Renesas R-Car Starter Kit Premier equipped with an R-Car H3e-2G SiP.
---
v2:
- Add Reviewed-by.
--- arch/arm64/boot/dts/renesas/Makefile | 1 + arch/arm64/boot/dts/renesas/r8a779m1-ulcb.dts | 54 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r8a779m1-ulcb.dts
arch/arm64/boot/dts/renesas/Makefile +1 -0
@@ -64,5 +64,6 @@ dtb-$(CONFIG_ARCH_R8A77995) += r8a77995-draak.dtb dtb-$(CONFIG_ARCH_R8A779A0) += r8a779a0-falcon.dtb dtb-$(CONFIG_ARCH_R8A77951) += r8a779m1-salvator-xs.dtb +dtb-$(CONFIG_ARCH_R8A77951) += r8a779m1-ulcb.dtb dtb-$(CONFIG_ARCH_R9A07G044) += r9a07g044l2-smarc.dtb
arch/arm64/boot/dts/renesas/r8a779m1-ulcb.dts new file +54 -0
54 lines not on this page · raw message
Signature · 7 lines
2.25.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Geert Uytterhoeven
maintainerPATCH v2 7/10 arm64: dts: renesas: Add support for H3ULCB+Kingfisher with R-Car H3e-2G
In reply to Geert UytterhoevenAdd support for the Renesas R-Car Starter Kit Premier and Kingfisher combo equipped with an R-Car H3e-2G SiP.
---
v2:
- Add Reviewed-by.
--- arch/arm64/boot/dts/renesas/Makefile | 1 + .../boot/dts/renesas/r8a779m1-ulcb-kf.dts | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r8a779m1-ulcb-kf.dts
arch/arm64/boot/dts/renesas/Makefile +1 -0
@@ -65,5 +65,6 @@ dtb-$(CONFIG_ARCH_R8A779A0) += r8a779a0-falcon.dtb dtb-$(CONFIG_ARCH_R8A77951) += r8a779m1-salvator-xs.dtb dtb-$(CONFIG_ARCH_R8A77951) += r8a779m1-ulcb.dtb +dtb-$(CONFIG_ARCH_R8A77951) += r8a779m1-ulcb-kf.dtb dtb-$(CONFIG_ARCH_R9A07G044) += r9a07g044l2-smarc.dtb
arch/arm64/boot/dts/renesas/r8a779m1-ulcb-kf.dts new file +19 -0
@@ -0,0 +1,19 @@ +// SPDX-License-Identifier: (GPL-2.0 or MIT) +/* + * Device Tree Source for the H3ULCB Kingfisher board with R-Car H3e-2G + * + * Copyright (C) 2021 Glider bv + * + * Based on r8a77951-ulcb-kf.dts + * Copyright (C) 2017 Renesas Electronics Corp. + * Copyright (C) 2017 Cogent Embedded, Inc. + */ + +#include "r8a779m1-ulcb.dts" +#include "ulcb-kf.dtsi" + +/ { + model = "Renesas H3ULCB Kingfisher board based on r8a779m1"; + compatible = "shimafuji,kingfisher", "renesas,h3ulcb", + "renesas,r8a779m1", "renesas,r8a7795"; +};
Signature · 7 lines
2.25.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Geert Uytterhoeven
maintainerPATCH v2 8/10 arm64: dts: renesas: Add support for Salvator-XS with R-Car M3e-2G
In reply to Geert UytterhoevenAdd support for the Renesas Salvator-X 2nd version development board equipped with an R-Car M3e-2G SiP.
---
v2:
- Add Reviewed-by.
--- arch/arm64/boot/dts/renesas/Makefile | 2 + .../boot/dts/renesas/r8a779m3-salvator-xs.dts | 46 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r8a779m3-salvator-xs.dts
arch/arm64/boot/dts/renesas/Makefile +2 -0
@@ -67,4 +67,6 @@ dtb-$(CONFIG_ARCH_R8A77951) += r8a779m1-salvator-xs.dtb dtb-$(CONFIG_ARCH_R8A77951) += r8a779m1-ulcb.dtb dtb-$(CONFIG_ARCH_R8A77951) += r8a779m1-ulcb-kf.dtb +dtb-$(CONFIG_ARCH_R8A77961) += r8a779m3-salvator-xs.dtb + dtb-$(CONFIG_ARCH_R9A07G044) += r9a07g044l2-smarc.dtb
arch/arm64/boot/dts/renesas/r8a779m3-salvator-xs.dts new file +46 -0
46 lines not on this page · raw message
Signature · 7 lines
2.25.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Geert Uytterhoeven
maintainerPATCH v2 9/10 arm64: dts: renesas: Add support for M3ULCB with R-Car M3e-2G
In reply to Geert UytterhoevenAdd support for the Renesas R-Car Starter Kit Pro equipped with an R-Car M3e-2G SiP.
---
v2:
- Add Reviewed-by.
--- arch/arm64/boot/dts/renesas/Makefile | 1 + arch/arm64/boot/dts/renesas/r8a779m3-ulcb.dts | 45 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r8a779m3-ulcb.dts
arch/arm64/boot/dts/renesas/Makefile +1 -0
@@ -68,5 +68,6 @@ dtb-$(CONFIG_ARCH_R8A77951) += r8a779m1-ulcb.dtb dtb-$(CONFIG_ARCH_R8A77951) += r8a779m1-ulcb-kf.dtb dtb-$(CONFIG_ARCH_R8A77961) += r8a779m3-salvator-xs.dtb +dtb-$(CONFIG_ARCH_R8A77961) += r8a779m3-ulcb.dtb dtb-$(CONFIG_ARCH_R9A07G044) += r9a07g044l2-smarc.dtb
arch/arm64/boot/dts/renesas/r8a779m3-ulcb.dts new file +45 -0
45 lines not on this page · raw message
Signature · 7 lines
2.25.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Geert Uytterhoeven
maintainerPATCH v2 10/10 arm64: dts: renesas: Add support for M3ULCB+Kingfisher with R-Car M3e-2G
In reply to Geert UytterhoevenAdd support for the Renesas R-Car Starter Kit Pro and Kingfisher combo equipped with an R-Car M3e-2G SiP.
---
v2:
- Add Reviewed-by.
--- arch/arm64/boot/dts/renesas/Makefile | 1 + .../boot/dts/renesas/r8a779m3-ulcb-kf.dts | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r8a779m3-ulcb-kf.dts
arch/arm64/boot/dts/renesas/Makefile +1 -0
@@ -69,5 +69,6 @@ dtb-$(CONFIG_ARCH_R8A77951) += r8a779m1-ulcb-kf.dtb dtb-$(CONFIG_ARCH_R8A77961) += r8a779m3-salvator-xs.dtb dtb-$(CONFIG_ARCH_R8A77961) += r8a779m3-ulcb.dtb +dtb-$(CONFIG_ARCH_R8A77961) += r8a779m3-ulcb-kf.dtb dtb-$(CONFIG_ARCH_R9A07G044) += r9a07g044l2-smarc.dtb
arch/arm64/boot/dts/renesas/r8a779m3-ulcb-kf.dts new file +18 -0
@@ -0,0 +1,18 @@ +// SPDX-License-Identifier: (GPL-2.0 or MIT) +/* + * Device Tree Source for the M3ULCB Kingfisher board with R-Car M3e-2G + * + * Copyright (C) 2021 Glider bv + * + * Based on r8a77961-ulcb-kf.dts + * Copyright (C) 2020 Eugeniu Rosca <[email protected]> + */ + +#include "r8a779m3-ulcb.dts" +#include "ulcb-kf.dtsi" + +/ { + model = "Renesas M3ULCB Kingfisher board based on r8a779m3"; + compatible = "shimafuji,kingfisher", "renesas,m3ulcb", + "renesas,r8a779m3", "renesas,r8a77961"; +};
Signature · 7 lines
2.25.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel