[PATCH 05/05] arm64: dts: renesas: r8a77990: Add FCPCS+VDPB node for R-Car E3

2018-11-21 Thread Magnus Damm
From: Magnus Damm Add a temporary FCPCS device that also includes VDPB for testing purpose. This prototype level code is not intended for upstream merge. Not-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77990.dtsi |9 + 1 file changed, 9 insertions(+) --- 0001

[PATCH 02/05] arm64: dts: renesas: r8a7795: Add FCPCS+VDPB node for R-Car H3

2018-11-21 Thread Magnus Damm
From: Magnus Damm Add a temporary FCPCS device that also includes VDPB for testing purpose. This prototype level code is not intended for upstream merge. Not-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a7795.dtsi |9 + 1 file changed, 9 insertions(+) --- 0001

[PATCH 04/05] arm64: dts: renesas: r8a77965: Add FCPCS+VDPB node for R-Car M3-N

2018-11-21 Thread Magnus Damm
From: Magnus Damm Add a temporary FCPCS device that also includes VDPB for testing purpose. This prototype level code is not intended for upstream merge. Not-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77965.dtsi |9 + 1 file changed, 9 insertions(+) --- 0001

[PATCH 01/05] Hack FCP driver to poke at FCPCS and VDPB during probe

2018-11-21 Thread Magnus Damm
From: Magnus Damm Hack up the FCP driver to test the power domains and dump registers. This prototype level code is not intended for upstream merge. Not-Signed-off-by: Magnus Damm --- drivers/media/platform/rcar-fcp.c | 42 - drivers/soc/renesas/rcar

[PATCH 03/05] arm64: dts: renesas: r8a7796: Add FCPCS+VDPB node for R-Car M3-W

2018-11-21 Thread Magnus Damm
From: Magnus Damm Add a temporary FCPCS device that also includes VDPB for testing purpose. This prototype level code is not intended for upstream merge. Not-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a7796.dtsi |9 + 1 file changed, 9 insertions(+) --- 0001

[PATCH 00/05] Test R-Car Gen3 SYSC power domains used by FCPCS and VDPB

2018-11-21 Thread Magnus Damm
proach to test IPMMU power domain support in the future. Not-Signed-off-by: Magnus Damm --- Developed on top of renesas-devel-20181119-v4.20-rc3 arch/arm64/boot/dts/renesas/r8a7795.dtsi |9 ++ arch/arm64/boot/dts/renesas/r8a7796.dtsi |9 ++ arch/arm64/boot/dts/renesas/r8a7796

[PATCH 02/03] arm: dts: Include SoC name in DTSI for sh73a0

2018-10-21 Thread Magnus Damm
From: Magnus Damm Update the SH-Mobile AG5 DTSI to include product name. Signed-off-by: Magnus Damm --- arch/arm/boot/dts/sh73a0.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 0001/arch/arm/boot/dts/sh73a0.dtsi +++ work/arch/arm/boot/dts/sh73a0.dtsi 2018-10-22 02:59

[PATCH 01/03] arm: dts: Include SoC name in DTSI for r8a7740

2018-10-21 Thread Magnus Damm
From: Magnus Damm Update the R-Mobile A1 DTSI to include product name. Signed-off-by: Magnus Damm --- arch/arm/boot/dts/r8a7740.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 0001/arch/arm/boot/dts/r8a7740.dtsi +++ work/arch/arm/boot/dts/r8a7740.dtsi 2018-10-22 02:56

[PATCH 03/03] arm: dts: Include SoC name in DTSI for sh73a0

2018-10-21 Thread Magnus Damm
From: Magnus Damm Update the Emma Mobile EV2 DTSI to include product name. Signed-off-by: Magnus Damm --- arch/arm/boot/dts/emev2.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 0001/arch/arm/boot/dts/emev2.dtsi +++ work/arch/arm/boot/dts/emev2.dtsi 2018-10-22 03:00

[PATCH 00/03] Further 32-bit product name updates

2018-10-21 Thread Magnus Damm
is matching the DT binding documentation. Signed-off-by: Magnus Damm --- Applies on top of renesas-devel-20181019-v4.19-rc8 arch/arm/boot/dts/emev2.dtsi |2 +- arch/arm/boot/dts/r8a7740.dtsi |2 +- arch/arm/boot/dts/sh73a0.dtsi |2 +- 3 files changed, 3 insertions(+), 3 deletions(-)

[PATCH/RFC] iommu/ipmmu-vmsa: R-Car M3-N/V3H/E3 AVB whitelist prototype

2018-10-21 Thread Magnus Damm
From: Magnus Damm For testing purpose enable IPMMU for Ethernet-AVB on R-Car M3-N/V3H/E3. Not for upstream merge. Not-Yet-Signed-off-by: Magnus Damm --- Applies on top of renesas-devel-20181019-v4.19-rc8 drivers/iommu/ipmmu-vmsa.c |4 1 file changed, 4 insertions(+) --- 0001

[PATCH 01/03] arm64: dts: renesas: r8a77965: Connect R-Car M3-N AVB to IPMMU

2018-10-21 Thread Magnus Damm
From: Magnus Damm Hook up the R-Car M3-N AVB device to IPMMU-DS0 16 as described in the data sheet. Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77965.dtsi |1 + 1 file changed, 1 insertion(+) --- 0001/arch/arm64/boot/dts/renesas/r8a77965.dtsi +++ work/arch/arm64/boot

[PATCH 02/03] arm64: dts: renesas: r8a77980: Connect R-Car V3H AVB to IPMMU

2018-10-21 Thread Magnus Damm
From: Magnus Damm Hook up the R-Car V3H AVB device to IPMMU-DS1 33 as described in the data sheet. Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77980.dtsi |1 + 1 file changed, 1 insertion(+) --- 0001/arch/arm64/boot/dts/renesas/r8a77980.dtsi +++ work/arch/arm64/boot

[PATCH 00/03] Connect R-Car Gen3 Ethernet-AVB to IPMMU

2018-10-21 Thread Magnus Damm
Ethernet-AVB to IPMMU hardware connection in the Device Tree. This series affects R-Car M3-N, V3H and E3. Other members of the R-Car Gen3 family such as H3, M3-W, V3M and D3 already includes this information in their DT files. Signed-off-by: Magnus Damm --- Developed on top of renesas-devel-20181019

[PATCH 03/03] arm64: dts: renesas: r8a77990: Connect R-Car E3 AVB to IPMMU

2018-10-21 Thread Magnus Damm
From: Magnus Damm Hook up the R-Car E3 AVB device to IPMMU-DS0 16 as described in the data sheet. Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77990.dtsi |1 + 1 file changed, 1 insertion(+) --- 0001/arch/arm64/boot/dts/renesas/r8a77990.dtsi +++ work/arch/arm64/boot/dts

[PATCH/RFC] iommu/ipmmu-vmsa: R-Car V3H SYS-DMAC whitelist prototype

2018-09-17 Thread Magnus Damm
From: Magnus Damm For testing purpose enable IPMMU for SYS-DMAC1 and SYS-DMAC2 on R-Car V3H. Not for upstream merge. Not-Yet-Signed-off-by: Magnus Damm --- Applies on top of renesas-devel-20180914-v4.19-rc3 drivers/iommu/ipmmu-vmsa.c |8 1 file changed, 8 insertions

[PATCH] arm64: dts: renesas: r8a77980: Attach the SYS-DMAC to the IPMMU

2018-09-17 Thread Magnus Damm
From: Magnus Damm For R-Car V3H hook up SYS-DMAC1 and SYS-DMAC2 to IPMMU-DS1 to match information in the R-Car Gen3 Rev.1.00 (April 2018) datasheet. Signed-off-by: Magnus Damm --- Developed on top of renesas-devel-20180914-v4.19-rc3 arch/arm64/boot/dts/renesas/r8a77980.dtsi | 16

[PATCH/RFC] iommu/ipmmu-vmsa: R-Car E3 SYS-DMAC whitelist prototype

2018-09-17 Thread Magnus Damm
From: Magnus Damm For testing purpose enable IPMMU for SYS-DMAC0, SYS-DMAC1 and SYS-DMAC2 on R-Car E3. Not for upstream merge. Not-Yet-Signed-off-by: Magnus Damm --- Applies on top of renesas-devel-20180914-v4.19-rc3 drivers/iommu/ipmmu-vmsa.c | 12 1 file changed, 12

[PATCH 03/03] arm: dts: R-Car Gen1 board comment update

2018-09-17 Thread Magnus Damm
From: Magnus Damm Include R-Car Gen1 product names for Bock-W and Marzen. The product names are taken from: Documentation/devicetree/bindings/arm/shmobile.txt Signed-off-by: Magnus Damm --- Developed on top of renesas-devel-20180914-v4.19-rc3 arch/arm/boot/dts/r8a7778-bockw.dts |2

[PATCH 02/03] arm: dts: Include R-Car Gen2 product name in DTSI files

2018-09-17 Thread Magnus Damm
From: Magnus Damm Improve the user friendliness of the DTS code base by including the R-Car product name in each R-Car Gen2 DTSI file. The product names are taken from: Documentation/devicetree/bindings/arm/shmobile.txt Signed-off-by: Magnus Damm --- Developed on top of renesas-devel

[PATCH 00/03] Further product name updates

2018-09-17 Thread Magnus Damm
documentation. Signed-off-by: Magnus Damm --- Developed on top of renesas-devel-20180914-v4.19-rc3 Documentation/devicetree/bindings/arm/shmobile.txt |2 +- arch/arm/boot/dts/r8a7778-bockw.dts|2 +- arch/arm/boot/dts/r8a7779-marzen.dts |2 +- arch/arm/boot

[PATCH 01/03] dt-bindings: arm: consistently name SH-Mobile AG5 as R8A73A00

2018-09-17 Thread Magnus Damm
From: Magnus Damm Update the description of the AG5 entry to follow same style as other SoCs. The actual DT binding remains unchanged. Signed-off-by: Magnus Damm --- Developed on top of renesas-devel-20180914-v4.19-rc3 Documentation/devicetree/bindings/arm/shmobile.txt |2 +- 1 file

[PATCH] arm64: dts: renesas: r8a77990: Attach the SYS-DMAC to the IPMMU

2018-09-17 Thread Magnus Damm
From: Magnus Damm For R-Car E3 hook up SYS-DMAC0, SYS-DMAC1 and SYS-DMAC2 to IPMMU-DS0 and IPMMU-DS1 in same way as for R-Car H3. This follows the R-Car Gen3 Rev.1.00 (April 2018) datasheet. Signed-off-by: Magnus Damm --- Developed on top of renesas-devel-20180914-v4.19-rc3 arch/arm64

[PATCH/RFC v2 02/02] ravb: Clean up duplex handling

2018-08-20 Thread Magnus Damm
From: Magnus Damm Since only full-duplex operation is supported by the hardware, remove duplex handling code and keep the register setting of ECMR.DM fixed at 1. This updates the driver implementation to follow the data sheet text "This bit should always be set to 1." Not-Yet-

[PATCH/RFC v2 01/02] ravb: Do not announce HDX as supported

2018-08-20 Thread Magnus Damm
From: Magnus Damm According to the data sheet the Ethernet-AVB hardware in R-Car Gen3 and R-Car Gen2 SoCs do not support half duplex operation. So update the driver to mark 100Mbit and 1Gbps HDX as unsupported. Not-Yet-Signed-off-by: Magnus Damm Fixes: c156633f1353 ("Renesas Etherne

[PATCH/RFC v2 00/02] ravb: Duplex handling update V2

2018-08-20 Thread Magnus Damm
Sergei and Geert - thanks! Getting closer to be suitable for upstream merge? Not-Yet-Signed-off-by: Magnus Damm --- Written on top of next-20180820 drivers/net/ethernet/renesas/ravb.h |1 - drivers/net/ethernet/renesas/ravb_main.c | 24 2 files changed, 4

[PATCH] arm64: dts: renesas: r8a77965: Attach the SYS-DMAC to the IPMMU

2018-08-20 Thread Magnus Damm
From: Magnus Damm For R-Car M3-N hook up SYS-DMAC0, SYS-DMAC1 and SYS-DMAC2 to IPMMU-DS0 and IPMMU-DS1 in same way as for R-Car M3-W. This follows the R-Car Gen3 Rev.1.00 (April 2018) datasheet. Signed-off-by: Magnus Damm --- Developed on top of renesas-devel-20180810-v4.18-rc7 arch/arm64

[PATCH] arm: dts: Include R-Car Gen1 product name in DTSI files

2018-08-20 Thread Magnus Damm
From: Magnus Damm Browsing the DTS for all the R-Car SoCs with similar part numbers still makes my head hurt, so to improve the user friendliness of the 32-bit ARM DTS code base include R-Car Gen1 product names for each DTSI file. Signed-off-by: Magnus Damm --- Based on renesas-devel

Re: [PATCH/RFC 01/02] ravb: Do not announce 100Mbps HDX as supported

2018-07-19 Thread Magnus Damm
Hi Geert, On Fri, Jul 20, 2018 at 2:42 AM, Geert Uytterhoeven wrote: > Hi Magnus, > > On Thu, Jul 19, 2018 at 7:25 PM Magnus Damm wrote: >> On Thu, Jul 19, 2018 at 11:32 PM, Sergei Shtylyov >> wrote: >> > On 07/19/2018 02:51 PM, Magnus Damm wrote: >> >>

Re: [PATCH/RFC 01/02] ravb: Do not announce 100Mbps HDX as supported

2018-07-19 Thread Magnus Damm
Hi Geert, On Fri, Jul 20, 2018 at 5:09 AM, Geert Uytterhoeven wrote: > On Thu, Jul 19, 2018 at 7:56 PM Sergei Shtylyov > wrote: >> On 07/19/2018 08:42 PM, Geert Uytterhoeven wrote: >> >>>> From: Magnus Damm >> >>>> According to the da

Re: [PATCH] arm64: dts: renesas: Include R-Car product name in DTSI files

2018-07-19 Thread Magnus Damm
Hi Geert, On Fri, Jul 20, 2018 at 2:37 AM, Geert Uytterhoeven wrote: > Hi Magnus, > > On Thu, Jul 19, 2018 at 7:16 PM Magnus Damm wrote: >> On Thu, Jul 19, 2018 at 9:59 PM, Niklas Söderlund >> wrote: >> > On 2018-07-19 20:19:50 +0900, Magnus Damm wrote: >

Re: [PATCH/RFC 02/02] ravb: Clean up duplex handling

2018-07-19 Thread Magnus Damm
Hi Sergei, On Fri, Jul 20, 2018 at 12:44 AM, Sergei Shtylyov wrote: > On 07/19/2018 02:51 PM, Magnus Damm wrote: > >> From: Magnus Damm >> >> Since only full-duplex operation is supported by the >> hardware, remove duplex handling code and keep the >> re

Re: [PATCH/RFC 01/02] ravb: Do not announce 100Mbps HDX as supported

2018-07-19 Thread Magnus Damm
Hi Sergei, Thanks for your reply! On Thu, Jul 19, 2018 at 11:32 PM, Sergei Shtylyov wrote: > Hello! > > On 07/19/2018 02:51 PM, Magnus Damm wrote: > >> From: Magnus Damm >> >> According to the data sheet the Ethernet-AVB hardware in R-Car Gen3 >> and R-Car

Re: [PATCH] arm64: dts: renesas: Include R-Car product name in DTSI files

2018-07-19 Thread Magnus Damm
Hi Niklas, On Thu, Jul 19, 2018 at 9:59 PM, Niklas Söderlund wrote: > Hi Magnus, > > Thanks for your patch. > > On 2018-07-19 20:19:50 +0900, Magnus Damm wrote: >> From: Magnus Damm >> >> Browsing the DTS for all the R-Car SoCs with similar part numbers >

[PATCH/RFC 01/02] ravb: Do not announce 100Mbps HDX as supported

2018-07-19 Thread Magnus Damm
From: Magnus Damm According to the data sheet the Ethernet-AVB hardware in R-Car Gen3 and R-Car Gen2 SoCs do not support half duplex operation. So update the driver to mark 100Mbit HDX as unsupported. Not-Yet-Signed-off-by: Magnus Damm --- Written on top of renesas-drivers-2018-07-17-v4.18

[PATCH/RFC 02/02] ravb: Clean up duplex handling

2018-07-19 Thread Magnus Damm
From: Magnus Damm Since only full-duplex operation is supported by the hardware, remove duplex handling code and keep the register setting of ECMR.DM fixed at 1. This updates the driver implementation to follow the data sheet text "This bit should always be set to 1." Not-Yet-

[PATCH/RFC 00/02] ravb: Duplex handling update

2018-07-19 Thread Magnus Damm
discussion. Not-Yet-Signed-off-by: Magnus Damm --- Written on top of renesas-drivers-2018-07-17-v4.18-rc5 drivers/net/ethernet/renesas/ravb.h |1 - drivers/net/ethernet/renesas/ravb_main.c | 30 +++--- 2 files changed, 3 insertions(+), 28 deletions(-)

[PATCH] arm64: dts: renesas: r8a77995: Attach the SYS-DMAC to the IPMMU

2018-07-19 Thread Magnus Damm
From: Magnus Damm Hook up SYS-DMAC0, SYS-DMAC1 and SYS-DMAC2 to IPMMU-DS0 and IPMMU-DS1 following the R-Car Gen3 Rev.1.00 (April 2018) datasheet. Signed-off-by: Magnus Damm --- Based on renesas-drivers-2018-07-17-v4.18-rc5 arch/arm64/boot/dts/renesas/r8a77995.dtsi | 12 1

[PATCH] arm64: dts: renesas: Include R-Car product name in DTSI files

2018-07-19 Thread Magnus Damm
From: Magnus Damm Browsing the DTS for all the R-Car SoCs with similar part numbers makes my head hurt, so to improve the user friendliness of the DTS code base include R-Car product name in each DTSI file. Signed-off-by: Magnus Damm --- Based on renesas-drivers-2018-07-17-v4.18-rc5 arch

Re: [PATCH/RFC] ARM: shmobile: Always enable ARCH_TIMER on SoCs with A7 and/or A15

2018-07-12 Thread Magnus Damm
On Fri, Jul 13, 2018 at 1:08 AM, Geert Uytterhoeven wrote: > R-Mobile APE6, R-Car Gen2, and RZ/G1 SoCs have Cortex-A7 and/or > Cortex-A15 CPU cores, all of which have ARM architectured timers. > > Force use of the ARM architectured timer on these SoCs. > This allows to: > - Remove the calls to

[PATCH 03/04] arm64: dts: renesas: r8a77990: hook up I2C0

2018-06-19 Thread Magnus Damm
From: Magnus Damm A hack to add I2C0 on r8a77990. This is needed to hook up the video decoder. Not-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77990.dtsi | 14 ++ 1 file changed, 14 insertions(+) --- 0003/arch/arm64/boot/dts/renesas/r8a77990.dtsi +++ work

[PATCH 02/04] arm64: dts: renesas: r8a77990: add VIN and CSI-2 nodes

2018-06-19 Thread Magnus Damm
From: Magnus Damm Add VIN and CSI device nodes to the r8a77990 dtsi file. Not-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77990.dtsi | 89 + 1 file changed, 89 insertions(+) --- 0001/arch/arm64/boot/dts/renesas/r8a77990.dtsi +++ work/arch

[PATCH 01/04] rcar-vin: r8a77990 prototype

2018-06-19 Thread Magnus Damm
From: Magnus Damm Extend the VIN driver with experimental r8a77990 support. Not-Signed-off-by: Magnus Damm --- drivers/media/platform/rcar-vin/rcar-core.c | 21 + drivers/media/platform/rcar-vin/rcar-csi2.c |8 2 files changed, 29 insertions(+) --- 0001

Re: [RFC] ARM: rmobile: create DT memory nodes for R8A7795 3.0 and newer

2018-06-19 Thread Magnus Damm
Hi Laurent, [dropped u-boot list] On Tue, Jun 19, 2018 at 2:56 PM, Laurent Pinchart wrote: > Hi Magnus, > > On Tuesday, 19 June 2018 08:43:31 EEST Magnus Damm wrote: >> On Tue, Jun 19, 2018 at 11:15 AM, Laurent Pinchart wrote: >> > On Sunday, 17 June 2018 03:08:0

[PATCH] arm64: dts: renesas: IPMMU deferred probe test prototype

2018-06-17 Thread Magnus Damm
From: Magnus Damm Here's my local modification to test IPMMU with SYS-DMAC and the SCIF console on r8a7795 H3ULCB. The dmac1 and dmac2 devices together with audio dmacs are added to the IPMMU white list. The dmac0 device is disabled in DT to easily be able to associate the /proc/interrupt

[PATCH v2 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes

2018-06-17 Thread Magnus Damm
From: Magnus Damm Add IPMMU device nodes for the R-Car V3H SoC aka r8a77980. The r8a77980 IPMMU is quite similar to r8a77970 however VC0 has been added. The IMSSTR bit assignment has also been reworked. Power domains are also quite different however the the documentation is rather unclear about

[PATCH v2 03/03] arm64: dts: renesas: r8a77990: Add IPMMU devices nodes

2018-06-17 Thread Magnus Damm
From: Magnus Damm Add IPMMU device nodes for the R-Car E3 SoC aka r8a77990. The r8a77990 IPMMU is similar to r8a77995. Power domains are however different and the public documentation is still unclear. Based on preliminary information from the hardware team the R-Car E3 SoC comes with an IPMMU

[PATCH v2 01/03] arm64: dts: renesas: r8a77965: Add IPMMU devices nodes

2018-06-17 Thread Magnus Damm
From: Magnus Damm Add IPMMU device nodes for the R-Car M3-N SoC aka r8a77965. The r8a77965 IPMMU is quite similar to r8a7796 however VP0 has been added and PV1 has been removed. Also the IMSSTR bit assignment has been reworked. Signed-off-by: Magnus Damm Reviewed-by: Simon Horman

[PATCH v2 00/03] arm64: dts: renesas: Add IPMMU device nodes V2

2018-06-17 Thread Magnus Damm
and E3 IPMMU DT bindings Please see each individual patch for list of changes. Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 89 + arch/arm64/boot/dts/renesas/r8a77980.dtsi | 63 arch/arm64/boot/dts/renesas

Re: [PATCH 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes

2018-05-24 Thread Magnus Damm
Hi Geert, On Thu, May 24, 2018 at 5:24 PM, Geert Uytterhoeven <ge...@linux-m68k.org> wrote: > Hi Magnus, > > On Thu, May 24, 2018 at 10:18 AM, Magnus Damm <magnus.d...@gmail.com> wrote: >> On Thu, May 24, 2018 at 4:25 PM, Geert Uytterhoeven >> <ge...@linux

Re: [PATCH 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes

2018-05-24 Thread Magnus Damm
Hi Geert, On Thu, May 24, 2018 at 4:25 PM, Geert Uytterhoeven <ge...@linux-m68k.org> wrote: > Hi Magnus, > > On Thu, May 24, 2018 at 4:23 AM, Magnus Damm <magnus.d...@gmail.com> wrote: >> On Tue, May 22, 2018 at 10:10 PM, Simon Horman <ho...@verge.net.au> wrote:

Re: [PATCH 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes

2018-05-23 Thread Magnus Damm
Hi Simon, On Tue, May 22, 2018 at 10:10 PM, Simon Horman <ho...@verge.net.au> wrote: > On Mon, May 21, 2018 at 11:45:01PM +0900, Magnus Damm wrote: >> From: Magnus Damm <damm+rene...@opensource.se> >> >> Add IPMMU device nodes for the R-Car V3H SoC aka r8a77980.

[PATCH 03/03] arm64: dts: renesas: r8a77990: Add IPMMU devices nodes

2018-05-21 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Add IPMMU device nodes for the R-Car E3 SoC aka r8a77990. The r8a77990 IPMMU is similar to r8a77995. Power domains are however different but the documentation seems unclear. As expected VC0 belongs to R8A77990_PD_A3VC however VP0 is f

[PATCH 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes

2018-05-21 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Add IPMMU device nodes for the R-Car V3H SoC aka r8a77980. The r8a77980 IPMMU is quite similar to r8a77970 however VC0 has been added. The IMSSTR bit assignment has also been reworked. Power domains are also quite different h

[PATCH 00/03] arm64: dts: renesas: Add IPMMU device nodes

2018-05-21 Thread Magnus Damm
M3-N, V3H and E3 SoCs. The IPMMU DT binding changes are not yet merged upstream however they have been documented by the following patches: [PATCH] iommu/ipmmu-vmsa: Document R-Car M3-N IPMMU DT bindings [PATCH] iommu/ipmmu-vmsa: Document R-Car V3H and E3 IPMMU DT bindings Signed-off-by: Magnus

[PATCH 01/03] arm64: dts: renesas: r8a77965: Add IPMMU devices nodes

2018-05-21 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Add IPMMU device nodes for the R-Car M3-N SoC aka r8a77965. The r8a77965 IPMMU is quite similar to r8a7796 however VP0 has been added and PV1 has been removed. Also the IMSSTR bit assignment has been reworked. Signed-off-by: Magnus Damm <

[PATCH] iommu/ipmmu-vmsa: Document R-Car V3H and E3 IPMMU DT bindings

2018-05-21 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Update the IPMMU DT binding documentation to include the compat strings for the IPMMU devices included in the R-Car V3H and E3 SoCs. Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- Developed on top of renesas-drivers-2018

[PATCH] arm64: dts: renesas: r8a77995: Add IPMMU power domains

2018-05-21 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Add power domain information to the R-Car D3 IPMMU device nodes. As specified by the data sheet, all the IPMMU devices are always on. Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- Developed on top of renesas-devel-201805

Re: Booting Salvator-X ES1 board with upstream kernel

2018-05-10 Thread Magnus Damm
Hi Gilad, Thanks for your email. On Thu, May 10, 2018 at 5:12 PM, Gilad Ben-Yossef wrote: > Hi there, > > I am trying to add support for the CryptoCell security IP in the > R-Rcar boards to mainline but I've run into some trouble. > > I have an R-Car 3rd gen Salvator-X ES1

[PATCH 04/04] arm64: dts: renesas: r8a77995: Enable IPMMU devices

2018-04-22 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Remove 'status = "disabled"' to make sure all IPMMU devices are enabled in DT on the r8a77995 SoC. Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 10

[PATCH 02/04] arm64: dts: renesas: r8a7796: Enable IPMMU devices

2018-04-22 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Remove 'status = "disabled"' to make sure all IPMMU devices are enabled in DT on the r8a7796 SoC. Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- arch/arm64/boot/dts/renesas/r8a7796.dtsi |5 - 1 fil

[PATCH 03/04] arm64: dts: renesas: r8a77970: Enable IPMMU devices

2018-04-22 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Remove 'status = "disabled"' to make sure all IPMMU devices are enabled in DT on the r8a77970 SoC. Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- arch/arm64/boot/dts/renesas/r8a77970.dtsi |2 -- 1 fil

[PATCH 01/04] arm64: dts: renesas: r8a7795: Enable IPMMU devices

2018-04-22 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Remove 'status = "disabled"' to make sure all IPMMU devices are enabled in DT on the r8a7795 SoC. Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 12 --

[PATCH 00/04] arm64: dts: renesas: Enable IPMMU devices

2018-04-22 Thread Magnus Damm
devices Following the policy of using DT to describe the hardware and not software support state, this series makes sure all IPMMU devices are enabled in DT for SoCs such as r8a7795, r8a7796, r8a77970 and r8a77995. Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- Developed

Re: [PATCH 03/03] ARM: shmobile: stout: Initial support and regulator quirk

2018-04-18 Thread Magnus Damm
Hi Geert, On Wed, Apr 18, 2018 at 5:55 PM, Geert Uytterhoeven <ge...@linux-m68k.org> wrote: > Hi Magnus, > > On Wed, Apr 18, 2018 at 10:33 AM, Magnus Damm <magnus.d...@gmail.com> wrote: >> From: Magnus Damm <damm+rene...@opensource.se> >> >> This is

[PATCH 03/03] ARM: shmobile: stout: Initial support and regulator quirk

2018-04-18 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> This is a back port to v4.16 of the following commits merged in v4.17-rc1: ff938cd14d67 ARM: shmobile: stout: enable R-Car Gen2 regulator quirk 92bcfdb334ca ARM: dts: stout: Initial r8a7790 Stout board support Thanks to Marek, Wolfram and

[PATCH 00/03] v4.16 backports of M3-N PFC, Stout and RAVB

2018-04-18 Thread Magnus Damm
for their efforts with the upstreaming. Not-Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- Fits on top of v4.16 mainline Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt |1 arch/arm/boot/dts/Makefile|1 arch/ar

[PATCH 02/03] ravb: MTU support and minor fix

2018-04-18 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> This is a back port to v4.16 of the following commits merged in v4.17-rc1: 5c3d0fd4b2c0 ravb: remove erroneous comment 75efa06f457b ravb: add support for changing MTU Thanks to Niklas, Sergei and Dave Miller for the upstreaming efforts. Not-

Re: [PATCH 2/2] arm: dts: sh73a0 KZM9 as unhandled IRQs on boot

2018-03-22 Thread Magnus Damm
Hi Geert, On Thu, Mar 22, 2018 at 6:55 PM, Geert Uytterhoeven <ge...@linux-m68k.org> wrote: > Hi Magnus, > > On Wed, Mar 21, 2018 at 11:34 AM, Geert Uytterhoeven > <ge...@linux-m68k.org> wrote: >> On Tue, Mar 20, 2018 at 9:20 AM, Magnus Damm <magnus.d...@gmail.

Re: [PATCH] arm64: dts: renesas: r8a77970: Update IPMMU DS1 bit number

2018-03-22 Thread Magnus Damm
Hi Simon, On Wed, Mar 21, 2018 at 6:57 PM, Simon Horman <ho...@verge.net.au> wrote: > On Wed, Mar 21, 2018 at 09:51:33AM +0100, Simon Horman wrote: >> On Tue, Mar 20, 2018 at 04:51:07PM +0900, Magnus Damm wrote: >> > From: Magnus Damm <damm+rene...@opensource.se> &g

[PATCH 0/2] arm: dts: Legacy board IRQ issues

2018-03-20 Thread Magnus Damm
be happy to see someone else fixing these if possible. Not-Yet-Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- Developed on top of renesas-drivers-2018-03-13-v4.16-rc5 arch/arm/boot/dts/r8a7778-bockw.dts | 12 arch/arm/boot/dts/r8a7778.dtsi

[PATCH 1/2] arm: dts: r8a7778 Bock-W Ethernet has busted IRQs

2018-03-20 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> The on-board ethernet on r8a7778 Bock-W does not work out of the box. Booting with initramfs and trying to do ifconfig up/down will show that something is busted. Judging by the board schematics the IRQ signal from the LAN89218 chip gets

[PATCH 2/2] arm: dts: sh73a0 KZM9 as unhandled IRQs on boot

2018-03-20 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Booting sh73a0 KZM9G results in the following on the console: [0.03] renesas_intc_irqpin e690.interrupt-controller: driving 8 irqs [0.04] random: crng init done [0.12] irq 35: nobody cared (try booting with the &q

[PATCH] arm64: dts: renesas: r8a77970: Update IPMMU DS1 bit number

2018-03-20 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Judging by "R-Car-Gen3-rev0.80" IPMMU IMSSTR register documentation for [R-Car V3M] the DS1 bit field should be bit 0. Update the ipmmu-main property to make it match the data sheet. Signed-off-by: Magnus Damm <damm+re

[PATCH] clk: renesas: cpg-mssr: Adjust r8a77980 ifdef

2018-03-20 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Adjust the R8A77980-specific #ifdefs to use CLK instead of ARCH to follow same style as other SoCs. Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- Noticed in renesas-drivers-2018-03-13-v4.16-rc5 drivers/clk/renesas

[PATCH] iommu/ipmmu-vmsa: Document R-Car M3-N IPMMU DT bindings

2018-03-20 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Update the IPMMU DT binding documentation to include the r8a77965 compat string for the IPMMU devices included in the R-Car M3-N SoC. Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- Documentation/devicetree/bindings/iommu/r

[PATCH] ARM: dts: marzen: Add SDHI0 VCCQ Regulator

2018-02-19 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Add support for the on-board voltage regulator hooked up to GPIO3_20 on r8a7779 Marzen. The board schematics describes the regulator as U4 TPS2110A. Input wise, U4 has D0 fixed to ground, D1 tied to GPIO3_20 while IN1 is fixed to 3.3V a

[PATCH/RFC v3] arm64: r8a77965 Salvator-X SoC/board support prototype

2018-02-19 Thread Magnus Damm
nce this is prototype code and not suitable for mainline merge as-is: Not-Yet-Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- Documentation/devicetree/bindings/arm/shmobile.txt |4 Documentation/devicetree/bindings/clock/renesas,cpg-mssr.txt |

[PATCH 01/02] ARM: dts: silk: Add r1ex24002 EEPROM to DT

2018-02-19 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Extend the Silk board support to include U14 which is an I2C based EEPROM hooked up to the I2C1 bus. Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- arch/arm/boot/dts/r8a7794-silk.dts |6 ++ 1 file changed,

[PATCH 00/02] ARM: dts: silk: Add EEPROM and GPIO keys

2018-02-19 Thread Magnus Damm
on the Gose board support and adjusted to fit the board schematics. Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- Developed on top of renesas-devel-20180215-v4.16-rc1 arch/arm/boot/dts/r8a7794-silk.dts | 61 1 file changed, 61 insertions(+)

[PATCH 02/02] ARM: dts: silk: Add GPIO keys to DT

2018-02-19 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Extend the Silk board support to include SW3, SW4, SW6 and SW12. They are all connected via GPIO lines and handled by the gpio-keys driver. Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- arch/arm/boot/dts/r8a7794-sil

[PATCH/RFC 02/03] arm64: dts: renesas: r8a77970: Add GPIO nodes

2018-01-18 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Add GPIO device nodes for the r8a77970 SoC. Each GPIO device is currently assumed to have 32 pins. Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- arch/arm64/boot/dts/renesas/r8a77970.dtsi | 96 +

[PATCH/RFC 00/03] arm64: dts: renesas: Eagle V3M PFC/GPIO update and SPI NOR flash bitbang hack

2018-01-18 Thread Magnus Damm
This series gives the R-Car V3M SoC and the Eagle board an update when it comes to PFC and GPIO support. Also to test the two QSPI channels are configured as GPIOs and via SPI bitbang the SPI NOR flash chips are probed. Patch 1 and 2 are rather ready for upstream merge: Signed-off-by: Magnus Damm

[PATCH/RFC 03/03] arm64: dts: renesas: eagle: NOR flash SPI bitbang prototype

2018-01-18 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Drive the NOR flash chips via SPI bitbang instead of via the two channels of QSPI hardware. This is useful to test the on-chip GPIO devices. Not-Yet-Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- arch/arm64/boot/dts/rene

[PATCH/RFC 01/03] arm64: dts: renesas: r8a77970: Add PFC node for Eagle V3M

2018-01-18 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Add DT nodes for the PFC on the r8a77970 SoC and hook up the SCIF console to make use of the PFC to configure the pins. Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- Depends on r8a77970 PFC support - included in la

[PATCH/RFC v2] arm64: r8a77965 Salvator-X SoC/board support prototype

2018-01-18 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Here's V2 of a simple prototype hack to get the R-Car M3-N SoC working with the r8a77965 Salvator-X. This version has been updated to fit on top of "renesas-drivers-2018-01-09-v4.15-rc7". The following patches are picked

[PATCH/RFC] iommu/ipmmu-vmsa: 2-stage translation hack using PMB

2017-12-20 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Test code for r8a77964 IPMMU in a special 2-stage translation mode where PMB entries and page tables are used together. The goal is to experiment with the SYS-DMAC and IPMMU to figure out the number of address bits hooked up between them. I

[PATCH/RFC 03/03] iommu/ipmmu-vmsa: Add SYS-DMAC devices as whitelist

2017-12-20 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> For testing purpose add a list of allowed SYS-DMAC devices to the IPMMU driver. These may be used together with SCIF serial ports to validate some basic operation. Not-Yet-Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- d

[PATCH/RFC 02/03] iommu/ipmmu-vmsa: Detect r8a77965 compat strings

2017-12-20 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Match on the r8a77965 SoC in the IPMMU driver. Software wise the same IPMMU driver can be used as for other R-Car Gen3 SoCs, however the hardware contains certain changes so using separate SoC compat strings will allow us more fine grained c

[PATCH/RFC 00/03] iommu/ipmmu-vmsa: IPMMU prototyping on r8a77965

2017-12-20 Thread Magnus Damm
and the IPMMU patches. Not-Yet-Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- Built on top of "renesas-drivers-next-2017-11-14-v4.14" and [PATCH/RFC] arm64: r8a77965 Salvator-X SoC/board support prototype [PATCH/RFC] arm64: r8a77965 Salvator-X IPMMU environment

[PATCH/RFC 01/03] arm64: dts: r8a77965: Enable IPMMU MM, DS0 and DS1

2017-12-20 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Enable the IPMMU-MM, IPMMU-DS0 and IPMMU-DS1 devices on r8a77965. Not-Yet-Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- arch/arm64/boot/dts/renesas/r8a77965.dtsi |3 --- 1 file changed, 3 deletions(-) --- 0021/arc

[PATCH/RFC] arm64: r8a77965 Salvator-X IPMMU environment prototype

2017-12-19 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Here's a simple prototype to get a basic IPMMU environment going on the R-Car M3-N SoC on the r8a77965 Salvator-X board. IPMMU-MM and DS0/DS1 are used with SYS-DMAC that in turn may be used with SCIF for testing. As based "renesas-driver

[PATCH/RFC 04/04] iommu/ipmmu-vmsa: VA64 mode with 30-bit IOVA

2017-11-17 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Hack up the IPMMU driver to enable VM64 mode with 30-bit IOVA. For this configuration the IPMMU hardware is configured with IMTTBCR.SL=0 and TSZ0 bits set to 0x22. This will enable a 30-bit IOVA space and use "Initial lookup level 2"

[PATCH/RFC 00/04] iommu/ipmmu-vmsa: IPMMU IOVA prototyping on r8a7796 ES1.0

2017-11-17 Thread Magnus Damm
future my plan is to continue this activity on more recent hardware such as the r8a77965 SoC (R-Car M3-N). Not-Yet-Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- drivers/iommu/io-pgtable-arm.c | 12 drivers/iommu/io-pgtable.c |4 + drivers/iommu/ipmmu-v

[PATCH/RFC 03/04] iommu/ipmmu-vmsa: VA64 mode with 31-bit IOVA

2017-11-17 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Hack up the IPMMU driver to enable VM64 mode with 31-bit IOVA. For this configuration the IPMMU hardware is configured with IMTTBCR.SL=1 and TSZ0 bits set to 0x21. This will enable a 31-bit IOVA space and use "Initial lookup level 1"

[PATCH/RFC 01/04] iommu: Hack to dump page table configuration on boot

2017-11-17 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Adjust code to output page table configuration on boot. Not for upstream merge. Not-Yet-Signed-off-by: Magnus Damm <damm+rene...@opensource.se> --- drivers/iommu/io-pgtable-arm.c | 12 drivers/iommu/io-pgtable.c |

[PATCH/RFC 02/04] iommu/ipmmu-vmsa: VA64 mode with 32-bit IOVA

2017-11-17 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Hack up the IPMMU driver to enable VM64 mode with 32-bit IOVA. For this configuration the IPMMU hardware is configured with IMTTBCR.SL=1 and TSZ0 bits set to 0x20. This will enable a 32-bit IOVA space and use "Initial lookup level 1"

[PATCH/RFC] arm64: r8a77965 Salvator-X SoC/board support prototype

2017-11-17 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> Here's a simple prototype hack to get the R-Car M3-N SoC working with the r8a77965 Salvator-X that is available in my remote access rack. This code will allow me to test and development IPMMU features on latest mainline together with new ha

Re: [PATCH v4 02/09] iommu/ipmmu-vmsa: Add optional root device feature

2017-10-16 Thread Magnus Damm
Hi Robin, On Tue, Jun 20, 2017 at 2:19 AM, Robin Murphy <robin.mur...@arm.com> wrote: > On 19/06/17 10:14, Magnus Damm wrote: >> From: Magnus Damm <damm+rene...@opensource.se> >> >> Add root device handling to the IPMMU driver by allowing certa

[PATCH v5 05/09] iommu/ipmmu-vmsa: IPMMU device is 40-bit bus master

2017-10-16 Thread Magnus Damm
From: Magnus Damm <damm+rene...@opensource.se> The r8a7795 IPMMU supports 40-bit bus mastering. Both the coherent DMA mask and the streaming DMA mask are set to unlock the 40-bit address space for coherent allocations and streaming operations. Signed-off-by: Magnus Damm <

  1   2   3   4   >