* [PATCH v3 0/4] renesas: r8a779g0: Enable VSPX on R-Car V4H
@ 2024-12-19 15:24 Jacopo Mondi
2024-12-19 15:24 ` [PATCH v3 1/4] clk: renesas: r8a779g0: Add FCPVX clocks Jacopo Mondi
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Jacopo Mondi @ 2024-12-19 15:24 UTC (permalink / raw)
To: Geert Uytterhoeven, Michael Turquette, Stephen Boyd, Magnus Damm,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Laurent Pinchart
Cc: linux-renesas-soc, linux-clk, linux-kernel, devicetree,
Jacopo Mondi, Laurent Pinchart
The series enables the two VSPX instances connected to the R-Car ISP
on Renesas R-Car V4H. Define clock identifiers based on the MSTPCR id
for the VSPX instances and defined device nodes in the V4H .dts file.
The VSPX modules interface with extenal memory through dedicated FCP
instances named FCPVX. Before defining VSPDX, define and enable the
FXPVX instances as well.
Compile-tested only series.
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
---
Changes in v3:
- Test on an actual board and fix the VSPX and FCPVX power domains to
use the ISP power domains
- Re-parent the VSPX and FCPVX clocks to the 800MHz S0D1
- Link to v2: https://lore.kernel.org/r/20241218-rcar-v4h-vspx-v2-0-c673647d96e1@ideasonboard.com
Changes in v2:
- Collect tags
- Re-sort nodes by unit address
- Link to v1: https://lore.kernel.org/r/20241217-rcar-v4h-vspx-v1-0-de04ea044ed4@ideasonboard.com
---
Jacopo Mondi (4):
clk: renesas: r8a779g0: Add FCPVX clocks
arm64: dts: renesas: r8a779g0: Add FCPVX instances
clk: renesas: r8a779g0: Add VSPX clocks
arm64: dts: renesas: r8a779g0: Add VSPX instances
arch/arm64/boot/dts/renesas/r8a779g0.dtsi | 40 +++++++++++++++++++++++++++++++
drivers/clk/renesas/r8a779g0-cpg-mssr.c | 4 ++++
2 files changed, 44 insertions(+)
---
base-commit: 50d451b19cc58cf374160e30cbf72a5ed5b1b129
change-id: 20241217-rcar-v4h-vspx-7d809b701c75
Best regards,
--
Jacopo Mondi <jacopo.mondi@ideasonboard.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v3 1/4] clk: renesas: r8a779g0: Add FCPVX clocks
2024-12-19 15:24 [PATCH v3 0/4] renesas: r8a779g0: Enable VSPX on R-Car V4H Jacopo Mondi
@ 2024-12-19 15:24 ` Jacopo Mondi
2024-12-19 15:24 ` [PATCH v3 2/4] arm64: dts: renesas: r8a779g0: Add FCPVX instances Jacopo Mondi
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Jacopo Mondi @ 2024-12-19 15:24 UTC (permalink / raw)
To: Geert Uytterhoeven, Michael Turquette, Stephen Boyd, Magnus Damm,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Laurent Pinchart
Cc: linux-renesas-soc, linux-clk, linux-kernel, devicetree,
Jacopo Mondi, Laurent Pinchart
Add the FCPVX modules clock for Renesas R-Car V4H (R8A779G0) SoC.
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
---
v2->v3:
- Re-parent the clock to the 800MHz R8A779G0_CLK_S0D1_VIO
---
drivers/clk/renesas/r8a779g0-cpg-mssr.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/clk/renesas/r8a779g0-cpg-mssr.c b/drivers/clk/renesas/r8a779g0-cpg-mssr.c
index 55c8dd032fc325c63727f21dc4d38b8e08ce0ca0..f41e7382a5e66ed15ce4e977691c8b4bdf18d255 100644
--- a/drivers/clk/renesas/r8a779g0-cpg-mssr.c
+++ b/drivers/clk/renesas/r8a779g0-cpg-mssr.c
@@ -238,6 +238,8 @@ static const struct mssr_mod_clk r8a779g0_mod_clks[] __initconst = {
DEF_MOD("pfc2", 917, R8A779G0_CLK_CP),
DEF_MOD("pfc3", 918, R8A779G0_CLK_CP),
DEF_MOD("tsc", 919, R8A779G0_CLK_CL16M),
+ DEF_MOD("fcpvx0", 1100, R8A779G0_CLK_S0D1_VIO),
+ DEF_MOD("fcpvx1", 1101, R8A779G0_CLK_S0D1_VIO),
DEF_MOD("tsn", 2723, R8A779G0_CLK_S0D4_HSC),
DEF_MOD("ssiu", 2926, R8A779G0_CLK_S0D6_PER),
DEF_MOD("ssi", 2927, R8A779G0_CLK_S0D6_PER),
--
2.47.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v3 2/4] arm64: dts: renesas: r8a779g0: Add FCPVX instances
2024-12-19 15:24 [PATCH v3 0/4] renesas: r8a779g0: Enable VSPX on R-Car V4H Jacopo Mondi
2024-12-19 15:24 ` [PATCH v3 1/4] clk: renesas: r8a779g0: Add FCPVX clocks Jacopo Mondi
@ 2024-12-19 15:24 ` Jacopo Mondi
2024-12-19 15:24 ` [PATCH v3 3/4] clk: renesas: r8a779g0: Add VSPX clocks Jacopo Mondi
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Jacopo Mondi @ 2024-12-19 15:24 UTC (permalink / raw)
To: Geert Uytterhoeven, Michael Turquette, Stephen Boyd, Magnus Damm,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Laurent Pinchart
Cc: linux-renesas-soc, linux-clk, linux-kernel, devicetree,
Jacopo Mondi, Laurent Pinchart
Add device nodes for the FCPVX instances on R-Car V4H (R8A779G0) SoC.
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
---
v2->v3:
- Place FCPVX in the ISP power domain
v1->v2:
- Re-sort nodes by unit address
---
arch/arm64/boot/dts/renesas/r8a779g0.dtsi | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
index 61c6b8022ffdc3b22444fb13e748b4aaebe454a4..13bc49a535f8655db2af0493779f2756317ec806 100644
--- a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
@@ -2453,6 +2453,24 @@ port@1 {
};
};
+ fcpvx0: fcp@fedb0000 {
+ compatible = "renesas,fcpv";
+ reg = <0 0xfedb0000 0 0x200>;
+ clocks = <&cpg CPG_MOD 1100>;
+ power-domains = <&sysc R8A779G0_PD_A3ISP0>;
+ resets = <&cpg 1100>;
+ iommus = <&ipmmu_vi1 24>;
+ };
+
+ fcpvx1: fcp@fedb8000 {
+ compatible = "renesas,fcpv";
+ reg = <0 0xfedb8000 0 0x200>;
+ clocks = <&cpg CPG_MOD 1101>;
+ power-domains = <&sysc R8A779G0_PD_A3ISP1>;
+ resets = <&cpg 1101>;
+ iommus = <&ipmmu_vi1 25>;
+ };
+
prr: chipid@fff00044 {
compatible = "renesas,prr";
reg = <0 0xfff00044 0 4>;
--
2.47.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v3 3/4] clk: renesas: r8a779g0: Add VSPX clocks
2024-12-19 15:24 [PATCH v3 0/4] renesas: r8a779g0: Enable VSPX on R-Car V4H Jacopo Mondi
2024-12-19 15:24 ` [PATCH v3 1/4] clk: renesas: r8a779g0: Add FCPVX clocks Jacopo Mondi
2024-12-19 15:24 ` [PATCH v3 2/4] arm64: dts: renesas: r8a779g0: Add FCPVX instances Jacopo Mondi
@ 2024-12-19 15:24 ` Jacopo Mondi
2024-12-19 15:24 ` [PATCH v3 4/4] arm64: dts: renesas: r8a779g0: Add VSPX instances Jacopo Mondi
2024-12-19 16:12 ` [PATCH v3 0/4] renesas: r8a779g0: Enable VSPX on R-Car V4H Wolfram Sang
4 siblings, 0 replies; 7+ messages in thread
From: Jacopo Mondi @ 2024-12-19 15:24 UTC (permalink / raw)
To: Geert Uytterhoeven, Michael Turquette, Stephen Boyd, Magnus Damm,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Laurent Pinchart
Cc: linux-renesas-soc, linux-clk, linux-kernel, devicetree,
Jacopo Mondi, Laurent Pinchart
Add the VSPX modules clock for Renesas R-Car V4H (R8A779G0) SoC.
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
---
v2->v3:
- Re-parent the clock to the 800MHz R8A779G0_CLK_S0D1_VIO
---
drivers/clk/renesas/r8a779g0-cpg-mssr.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/clk/renesas/r8a779g0-cpg-mssr.c b/drivers/clk/renesas/r8a779g0-cpg-mssr.c
index f41e7382a5e66ed15ce4e977691c8b4bdf18d255..d45571096b963b2e204e5d6b9426b664369cb942 100644
--- a/drivers/clk/renesas/r8a779g0-cpg-mssr.c
+++ b/drivers/clk/renesas/r8a779g0-cpg-mssr.c
@@ -238,6 +238,8 @@ static const struct mssr_mod_clk r8a779g0_mod_clks[] __initconst = {
DEF_MOD("pfc2", 917, R8A779G0_CLK_CP),
DEF_MOD("pfc3", 918, R8A779G0_CLK_CP),
DEF_MOD("tsc", 919, R8A779G0_CLK_CL16M),
+ DEF_MOD("vspx0", 1028, R8A779G0_CLK_S0D1_VIO),
+ DEF_MOD("vspx1", 1029, R8A779G0_CLK_S0D1_VIO),
DEF_MOD("fcpvx0", 1100, R8A779G0_CLK_S0D1_VIO),
DEF_MOD("fcpvx1", 1101, R8A779G0_CLK_S0D1_VIO),
DEF_MOD("tsn", 2723, R8A779G0_CLK_S0D4_HSC),
--
2.47.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v3 4/4] arm64: dts: renesas: r8a779g0: Add VSPX instances
2024-12-19 15:24 [PATCH v3 0/4] renesas: r8a779g0: Enable VSPX on R-Car V4H Jacopo Mondi
` (2 preceding siblings ...)
2024-12-19 15:24 ` [PATCH v3 3/4] clk: renesas: r8a779g0: Add VSPX clocks Jacopo Mondi
@ 2024-12-19 15:24 ` Jacopo Mondi
2024-12-19 16:12 ` [PATCH v3 0/4] renesas: r8a779g0: Enable VSPX on R-Car V4H Wolfram Sang
4 siblings, 0 replies; 7+ messages in thread
From: Jacopo Mondi @ 2024-12-19 15:24 UTC (permalink / raw)
To: Geert Uytterhoeven, Michael Turquette, Stephen Boyd, Magnus Damm,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Laurent Pinchart
Cc: linux-renesas-soc, linux-clk, linux-kernel, devicetree,
Jacopo Mondi, Laurent Pinchart
Add device nodes for the VSPX instances on R-Car V4H (R8A779G0) SoC.
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
---
v2->v3:
- Place VSPX in the ISP power domain
v1->v2:
- Re-sort nodes by unit address
---
arch/arm64/boot/dts/renesas/r8a779g0.dtsi | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
index 13bc49a535f8655db2af0493779f2756317ec806..104f740d20d315d43af9d0e63e418155f14a600c 100644
--- a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi
@@ -2471,6 +2471,28 @@ fcpvx1: fcp@fedb8000 {
iommus = <&ipmmu_vi1 25>;
};
+ vspx0: vsp@fedd0000 {
+ compatible = "renesas,vsp2";
+ reg = <0 0xfedd0000 0 0x8000>;
+ interrupts = <GIC_SPI 556 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 1028>;
+ power-domains = <&sysc R8A779G0_PD_A3ISP0>;
+ resets = <&cpg 1028>;
+
+ renesas,fcp = <&fcpvx0>;
+ };
+
+ vspx1: vsp@fedd8000 {
+ compatible = "renesas,vsp2";
+ reg = <0 0xfedd8000 0 0x8000>;
+ interrupts = <GIC_SPI 557 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 1029>;
+ power-domains = <&sysc R8A779G0_PD_A3ISP1>;
+ resets = <&cpg 1029>;
+
+ renesas,fcp = <&fcpvx1>;
+ };
+
prr: chipid@fff00044 {
compatible = "renesas,prr";
reg = <0 0xfff00044 0 4>;
--
2.47.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v3 0/4] renesas: r8a779g0: Enable VSPX on R-Car V4H
2024-12-19 15:24 [PATCH v3 0/4] renesas: r8a779g0: Enable VSPX on R-Car V4H Jacopo Mondi
` (3 preceding siblings ...)
2024-12-19 15:24 ` [PATCH v3 4/4] arm64: dts: renesas: r8a779g0: Add VSPX instances Jacopo Mondi
@ 2024-12-19 16:12 ` Wolfram Sang
2024-12-19 17:15 ` Jacopo Mondi
4 siblings, 1 reply; 7+ messages in thread
From: Wolfram Sang @ 2024-12-19 16:12 UTC (permalink / raw)
To: Jacopo Mondi
Cc: Geert Uytterhoeven, Michael Turquette, Stephen Boyd, Magnus Damm,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Laurent Pinchart,
linux-renesas-soc, linux-clk, linux-kernel, devicetree,
Laurent Pinchart
[-- Attachment #1: Type: text/plain, Size: 232 bytes --]
Hi Jacopo,
> Compile-tested only series.
Can't this go ...
> Changes in v3:
> - Test on an actual board and fix the VSPX and FCPVX power domains to
> use the ISP power domains
... because of this?
Happy hacking,
Wolfram
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 0/4] renesas: r8a779g0: Enable VSPX on R-Car V4H
2024-12-19 16:12 ` [PATCH v3 0/4] renesas: r8a779g0: Enable VSPX on R-Car V4H Wolfram Sang
@ 2024-12-19 17:15 ` Jacopo Mondi
0 siblings, 0 replies; 7+ messages in thread
From: Jacopo Mondi @ 2024-12-19 17:15 UTC (permalink / raw)
To: Wolfram Sang, Jacopo Mondi, Geert Uytterhoeven, Michael Turquette,
Stephen Boyd, Magnus Damm, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Laurent Pinchart, linux-renesas-soc, linux-clk,
linux-kernel, devicetree, Laurent Pinchart
[-- Attachment #1: Type: text/plain, Size: 431 bytes --]
Hi Wolfram
On Thu, Dec 19, 2024 at 05:12:18PM +0100, Wolfram Sang wrote:
> Hi Jacopo,
>
> > Compile-tested only series.
>
> Can't this go ...
Ah yes, leftover from v1 and v2 where I hadn't access to the board
(yet)
>
> > Changes in v3:
> > - Test on an actual board and fix the VSPX and FCPVX power domains to
> > use the ISP power domains
>
> ... because of this?
Indeed!
>
> Happy hacking,
You too :)
>
> Wolfram
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-12-19 17:15 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-19 15:24 [PATCH v3 0/4] renesas: r8a779g0: Enable VSPX on R-Car V4H Jacopo Mondi
2024-12-19 15:24 ` [PATCH v3 1/4] clk: renesas: r8a779g0: Add FCPVX clocks Jacopo Mondi
2024-12-19 15:24 ` [PATCH v3 2/4] arm64: dts: renesas: r8a779g0: Add FCPVX instances Jacopo Mondi
2024-12-19 15:24 ` [PATCH v3 3/4] clk: renesas: r8a779g0: Add VSPX clocks Jacopo Mondi
2024-12-19 15:24 ` [PATCH v3 4/4] arm64: dts: renesas: r8a779g0: Add VSPX instances Jacopo Mondi
2024-12-19 16:12 ` [PATCH v3 0/4] renesas: r8a779g0: Enable VSPX on R-Car V4H Wolfram Sang
2024-12-19 17:15 ` Jacopo Mondi
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).