arm64: dts: renesas: r8a77995: Add VSP support
Subsystems (2)
cover arm64: dts: renesas: r8a77995: Add VSP support
From: Kieran Bingham <[email protected]>
The r8a77995-d3 platform supports 3 VSP instances. One VSPBS can be used as a dual-input image blender, while two VSPD instances can be utilised as part of a display (DU) pipeline.
Kieran Bingham (4):
arm64: dts: renesas: r8a77995: add FCPVB node
arm64: dts: renesas: r8a77995: add FCPVD nodes
arm64: dts: renesas: r8a77995: add VSPBS instance
arm64: dts: renesas: r8a77995: add VSPD instances
arch/arm64/boot/dts/renesas/r8a77995.dtsi | 57 +++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+)
Signature · 1 line
2.7.4
PATCH 1/4 arm64: dts: renesas: r8a77995: add FCPVB node
From: Kieran Bingham <[email protected]>
The FCPVB handles the interface between the VSPB and memory.
--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/renesas/r8a77995.dtsi +9 -0
@@ -691,6 +691,15 @@ #phy-cells = <0>; status = "disabled"; }; + + fcpvb0: fcp at fe96f000 { + compatible = "renesas,fcpv"; + reg = <0 0xfe96f000 0 0x200>; + clocks = <&cpg CPG_MOD 607>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 607>; + iommus = <&ipmmu_vp0 5>; + }; }; timer {
Signature · 1 line
2.7.4
Re: [PATCH 1/4] arm64: dts: renesas: r8a77995: add FCPVB node
Hi Kieran,
Thank you for the patch.
Quoted 5 lines · On Tuesday, 13 February 2018 00:25:26 EET Kieran Bingham wrote:
From: Kieran Bingham <[email protected]>
The FCPVB handles the interface between the VSPB and memory.
Signed-off-by Kieran Bingham <[email protected]>
Quoted 25 lines
--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)(quoted diff) +0
-0
b/arch/arm64/boot/dts/renesas/r8a77995.dtsiindexcd3c6a30fc47..6cf935d307d9100644arch/arm64/boot/dts/renesas/r8a77995.dtsi +9
-0@@ -691,6 +691,15 @@ #phy-cells = <0>; status = "disabled"; }; + + fcpvb0: fcp@fe96f000 { + compatible = "renesas,fcpv"; + reg = <0 0xfe96f000 0 0x200>; + clocks = <&cpg CPG_MOD 607>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 607>; + iommus = <&ipmmu_vp0 5>; + }; }; timer {
Signature · 3 lines
Regards, Laurent Pinchart
Simon Horman
AppliedRe: [PATCH 1/4] arm64: dts: renesas: r8a77995: add FCPVB node
Quoted 4 lines · Laurent Pinchart
Hi Kieran,
Thank you for the patch.
Quoted 8 lines
Quoted 5 lines · On Tuesday, 13 February 2018 00:25:26 EET Kieran Bingham wrote:
From: Kieran Bingham <[email protected]>
The FCPVB handles the interface between the VSPB and memory.
Signed-off-by Kieran Bingham <[email protected]>Reviewed-by Laurent Pinchart <[email protected]>
Thanks, applied.
PATCH 2/4 arm64: dts: renesas: r8a77995: add FCPVD nodes
In reply to Kieran BinghamFrom: Kieran Bingham <[email protected]>
The FCPVD handles the interface between the VSPD and memory.
--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
arch/arm64/boot/dts/renesas/r8a77995.dtsi +18 -0
@@ -700,6 +700,24 @@ resets = <&cpg 607>; iommus = <&ipmmu_vp0 5>; }; + + fcpvd0: fcp at fea27000 { + compatible = "renesas,fcpv"; + reg = <0 0xfea27000 0 0x200>; + clocks = <&cpg CPG_MOD 603>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 603>; + iommus = <&ipmmu_vi0 8>; + }; + + fcpvd1: fcp at fea2f000 { + compatible = "renesas,fcpv"; + reg = <0 0xfea2f000 0 0x200>; + clocks = <&cpg CPG_MOD 602>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 602>; + iommus = <&ipmmu_vi0 9>; + }; }; timer {
Signature · 1 line
2.7.4
Re: [PATCH 2/4] arm64: dts: renesas: r8a77995: add FCPVD nodes
Hi Kieran,
Thank you for the patch.
Quoted 5 lines · On Tuesday, 13 February 2018 00:25:27 EET Kieran Bingham wrote:
From: Kieran Bingham <[email protected]>
The FCPVD handles the interface between the VSPD and memory.
Signed-off-by Kieran Bingham <[email protected]>
I would however squash this with patch 1/4 from the same series.
Quoted 34 lines
--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)(quoted diff) +0
-0
b/arch/arm64/boot/dts/renesas/r8a77995.dtsiindex6cf935d307d9..196a917afea6100644arch/arm64/boot/dts/renesas/r8a77995.dtsi +18
-0@@ -700,6 +700,24 @@ resets = <&cpg 607>; iommus = <&ipmmu_vp0 5>; }; + + fcpvd0: fcp@fea27000 { + compatible = "renesas,fcpv"; + reg = <0 0xfea27000 0 0x200>; + clocks = <&cpg CPG_MOD 603>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 603>; + iommus = <&ipmmu_vi0 8>; + }; + + fcpvd1: fcp@fea2f000 { + compatible = "renesas,fcpv"; + reg = <0 0xfea2f000 0 0x200>; + clocks = <&cpg CPG_MOD 602>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 602>; + iommus = <&ipmmu_vi0 9>; + }; }; timer {
Signature · 3 lines
Regards, Laurent Pinchart
Simon Horman
Reviewed-by Laurent PinchartRe: [PATCH 2/4] arm64: dts: renesas: r8a77995: add FCPVD nodes
Quoted 7 lines · Laurent Pinchart
Hi Kieran,
Thank you for the patch.
Quoted 2 lines · On Tuesday, 13 February 2018 00:25:27 EET Kieran Bingham wrote:
From: Kieran Bingham <[email protected]>
Quoted 7 lines
Quoted 3 lines
The FCPVD handles the interface between the VSPD and memory.
Signed-off-by Kieran Bingham <[email protected]>Reviewed-by Laurent Pinchart <[email protected]>I would however squash this with patch 1/4 from the same series.
Thanks, I've taken the liberty of doing so when applying this patch. The result is as follows:
From: Kieran Bingham <[email protected]>
Subject: [PATCH] arm64: dts: renesas: r8a77995: add FCPV[BD] node
The FCPVB handles the interface between the VSPB and memory. The FCPVD handles the interface between the VSPD and memory.
--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)
arch/arm64/boot/dts/renesas/r8a77995.dtsi +27 -0
@@ -691,6 +691,33 @@ #phy-cells = <0>; status = "disabled"; }; + + fcpvb0: fcp at fe96f000 { + compatible = "renesas,fcpv"; + reg = <0 0xfe96f000 0 0x200>; + clocks = <&cpg CPG_MOD 607>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 607>; + iommus = <&ipmmu_vp0 5>; + }; + + fcpvd0: fcp at fea27000 { + compatible = "renesas,fcpv"; + reg = <0 0xfea27000 0 0x200>; + clocks = <&cpg CPG_MOD 603>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 603>; + iommus = <&ipmmu_vi0 8>; + }; + + fcpvd1: fcp at fea2f000 { + compatible = "renesas,fcpv"; + reg = <0 0xfea2f000 0 0x200>; + clocks = <&cpg CPG_MOD 602>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 602>; + iommus = <&ipmmu_vi0 9>; + }; }; timer {
Signature · 1 line
2.11.0
Re: [PATCH 2/4] arm64: dts: renesas: r8a77995: add FCPVD nodes
Hi Simon,
Quoted 10 lines · Simon Horman
Quoted 9 lines · Laurent Pinchart
Hi Kieran,
Thank you for the patch.
Quoted 4 lines · On Tuesday, 13 February 2018 00:25:27 EET Kieran Bingham wrote:
From: Kieran Bingham <[email protected]>
The FCPVD handles the interface between the VSPD and memory.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Kieran Bingham <[email protected]>Reviewed-by Laurent Pinchart <[email protected]>I would however squash this with patch 1/4 from the same series.
Thanks, I've taken the liberty of doing so when applying this patch. The result is as follows:
That's probably fine, but there was a follow up series which already handles this.
--
Kieran
Quoted 53 lines
From: Kieran Bingham <[email protected]>
Subject: [PATCH] arm64: dts: renesas: r8a77995: add FCPV[BD] nodeThe FCPVB handles the interface between the VSPB and memory. The FCPVD handles the interface between the VSPD and memory.
Signed-off-by Kieran Bingham <[email protected]>Reviewed-by Laurent Pinchart <[email protected]>[simon: squahsed FCPVB and FCPVD patches]Signed-off-by Simon Horman <[email protected]>--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)arch/arm64/boot/dts/renesas/r8a77995.dtsi +27
-0@@ -691,6 +691,33 @@ #phy-cells = <0>; status = "disabled"; }; + + fcpvb0: fcp at fe96f000 { + compatible = "renesas,fcpv"; + reg = <0 0xfe96f000 0 0x200>; + clocks = <&cpg CPG_MOD 607>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 607>; + iommus = <&ipmmu_vp0 5>; + }; + + fcpvd0: fcp at fea27000 { + compatible = "renesas,fcpv"; + reg = <0 0xfea27000 0 0x200>; + clocks = <&cpg CPG_MOD 603>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 603>; + iommus = <&ipmmu_vi0 8>; + }; + + fcpvd1: fcp at fea2f000 { + compatible = "renesas,fcpv"; + reg = <0 0xfea2f000 0 0x200>; + clocks = <&cpg CPG_MOD 602>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 602>; + iommus = <&ipmmu_vi0 9>; + }; }; timer {
Re: [PATCH 2/4] arm64: dts: renesas: r8a77995: add FCPVD nodes
Quoted 15 lines · Kieran Bingham
Hi Simon,
Quoted 12 lines · Simon Horman
Quoted 11 lines · Laurent Pinchart
Hi Kieran,
Thank you for the patch.
Quoted 5 lines · On Tuesday, 13 February 2018 00:25:27 EET Kieran Bingham wrote:
From: Kieran Bingham <[email protected]>
The FCPVD handles the interface between the VSPD and memory.
Signed-off-by Kieran Bingham <[email protected]>
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Reviewed-by Laurent Pinchart <[email protected]>I would however squash this with patch 1/4 from the same series.
Thanks, I've taken the liberty of doing so when applying this patch. The result is as follows:
That's probably fine, but there was a follow up series which already handles this.
Thanks, I've dropped this and will use the follow-up series instead.
PATCH 3/4 arm64: dts: renesas: r8a77995: add VSPBS instance
In reply to Kieran BinghamFrom: Kieran Bingham <[email protected]>
The r8a77995 has a VSPBS to support image processing such as blending of 2 input images.
--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/renesas/r8a77995.dtsi +10 -0
@@ -692,6 +692,16 @@ status = "disabled"; }; + vspbs: vsp at fe960000 { + compatible = "renesas,vsp2"; + reg = <0 0xfe960000 0 0x4000>; + interrupts = <GIC_SPI 465 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 627>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 627>; + renesas,fcp = <&fcpvb0>; + }; + fcpvb0: fcp at fe96f000 { compatible = "renesas,fcpv"; reg = <0 0xfe96f000 0 0x200>;
Signature · 1 line
2.7.4
Re: [PATCH 3/4] arm64: dts: renesas: r8a77995: add VSPBS instance
Hi Kieran,
Thank you for the patch.
Quoted 16 lines · On Tuesday, 13 February 2018 00:25:28 EET Kieran Bingham wrote:
From: Kieran Bingham <[email protected]>
The r8a77995 has a VSPBS to support image processing such as blending of 2 input images.
Signed-off-by Kieran Bingham <[email protected]>--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)(quoted diff) +0
-0
b/arch/arm64/boot/dts/renesas/r8a77995.dtsiindex196a917afea6..50c891f6649f100644
arch/arm64/boot/dts/renesas/r8a77995.dtsi line 697
Quoted 6 lines
arch/arm64/boot/dts/renesas/r8a77995.dtsi +3
-0@@ -692,6 +692,16 @@ status = "disabled"; }; + vspbs: vsp@fe960000 { + compatible = "renesas,vsp2"; + reg = <0 0xfe960000 0 0x4000>;
Unless I'm mistaken the VSPD instance has a CLUT on RPF2, so you need to extend the memory region to include it. It's probably safe to set the size to 0x8000 to include the whole VSP memory region, even if most of the 0x4000-0x7fff range is not used.
It seems that r8a7795 and r8a7796 suffer from the same issue upstream, they should be fixed.
Apart from that,
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77995.dtsi +7
-0+ interrupts = <GIC_SPI 465 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 627>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 627>; + renesas,fcp = <&fcpvb0>; + }; + fcpvb0: fcp@fe96f000 { compatible = "renesas,fcpv"; reg = <0 0xfe96f000 0 0x200>;
Signature · 3 lines
Regards, Laurent Pinchart
PATCH 4/4 arm64: dts: renesas: r8a77995: add VSPD instances
In reply to Kieran BinghamFrom: Kieran Bingham <[email protected]>
The r8a77995 has two VSPDs to handle display pipelines with a DU.
--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
arch/arm64/boot/dts/renesas/r8a77995.dtsi +20 -0
@@ -711,6 +711,16 @@ iommus = <&ipmmu_vp0 5>; }; + vspd0: vsp at fea20000 { + compatible = "renesas,vsp2"; + reg = <0 0xfea20000 0 0x4000>; + interrupts = <GIC_SPI 466 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 623>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 623>; + renesas,fcp = <&fcpvd0>; + }; + fcpvd0: fcp at fea27000 { compatible = "renesas,fcpv"; reg = <0 0xfea27000 0 0x200>;
@@ -720,6 +730,16 @@ iommus = <&ipmmu_vi0 8>; }; + vspd1: vsp at fea80000 { + compatible = "renesas,vsp2"; + reg = <0 0xfea28000 0 0x4000>; + interrupts = <GIC_SPI 467 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 622>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 622>; + renesas,fcp = <&fcpvd1>; + }; + fcpvd1: fcp at fea2f000 { compatible = "renesas,fcpv"; reg = <0 0xfea2f000 0 0x200>;
Signature · 1 line
2.7.4
Re: [PATCH 4/4] arm64: dts: renesas: r8a77995: add VSPD instances
Hi Kieran,
Thank you for the patch.
Quoted 15 lines · On Tuesday, 13 February 2018 00:25:29 EET Kieran Bingham wrote:
From: Kieran Bingham <[email protected]>
The r8a77995 has two VSPDs to handle display pipelines with a DU.
Signed-off-by Kieran Bingham <[email protected]>--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)(quoted diff) +0
-0
b/arch/arm64/boot/dts/renesas/r8a77995.dtsiindex50c891f6649f..2c14a8dfd201100644
arch/arm64/boot/dts/renesas/r8a77995.dtsi line 716
Quoted 6 lines
arch/arm64/boot/dts/renesas/r8a77995.dtsi +3
-0@@ -711,6 +711,16 @@ iommus = <&ipmmu_vp0 5>; }; + vspd0: vsp@fea20000 { + compatible = "renesas,vsp2"; + reg = <0 0xfea20000 0 0x4000>;
Same issue as in patch 3/4 (for which I have incorrectly mentioned VSPD instead of VSPBS). I'd just extend the region size to 0x8000 for both VSPDs.
Apart from that,
Quoted 27 lines
arch/arm64/boot/dts/renesas/r8a77995.dtsi +17
-0+ interrupts = <GIC_SPI 466 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 623>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 623>; + renesas,fcp = <&fcpvd0>; + }; + fcpvd0: fcp@fea27000 { compatible = "renesas,fcpv"; reg = <0 0xfea27000 0 0x200>;@@ -720,6 +730,16 @@ iommus = <&ipmmu_vi0 8>; }; + vspd1: vsp@fea80000 { + compatible = "renesas,vsp2"; + reg = <0 0xfea28000 0 0x4000>; + interrupts = <GIC_SPI 467 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 622>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 622>; + renesas,fcp = <&fcpvd1>; + }; + fcpvd1: fcp@fea2f000 { compatible = "renesas,fcpv"; reg = <0 0xfea2f000 0 0x200>;
Signature · 3 lines
Regards, Laurent Pinchart