[PATCH/RFC] ARM: dts: emev2: Add whitespace for GPIO nodes

2019-09-17 Thread Magnus Damm
From: Magnus Damm It turns out that the GPIO nodes for EMEV2 are missing whitespace, so focus on what is important in life and adjust the coding style to match the rest of the code base. Signed-off-by: Magnus Damm --- arch/arm/boot/dts/emev2.dtsi |4 1 file changed, 4 insertions

[PATCH/RFC] serial: sh-sci: Update uartclk based on selected clock

2019-08-20 Thread Magnus Damm
From: Magnus Damm I noticed that uartclk never gets updated as it is today. This compile tested patch makes sure uartclk is in sync with whatever clock is selected during sci_set_termios(). Exposing the actual value to user space seems like a good plan to me. Another semi-related issue: The

Re: [PATCH 1/3] ARM: dts: Update CMT1 DT compat strings on r8a7740

2019-06-18 Thread Magnus Damm
Hi Geert, On Tue, Jun 18, 2019 at 11:08 PM Geert Uytterhoeven wrote: > > Hi Magnus, > > On Mon, Jun 17, 2019 at 11:16 AM Magnus Damm wrote: > > From: Magnus Damm > > > > Update the r8a7740 to use the CMT1 DT compat string documented in: > > [PATCH 2/8] dt-b

Re: [PATCH 2/3] clocksource/drivers/sh_cmt: Remove "cmt-48-gen2" support

2019-06-18 Thread Magnus Damm
Hi Geert, On Tue, Jun 18, 2019 at 11:01 PM Geert Uytterhoeven wrote: > > Hi Magnus, > > On Mon, Jun 17, 2019 at 11:59 AM Magnus Damm wrote: > > From: Magnus Damm > > > > Since late 2017 the DT compat string "renesas,cmt-48-gen2" has not been in >

Re: [PATCH 0/8] dt-bindings: timer: renesas, cmt: Various updates

2019-06-18 Thread Magnus Damm
On Tue, Jun 18, 2019 at 7:31 PM Simon Horman wrote: > > On Mon, Jun 17, 2019 at 06:02:47PM +0900, Magnus Damm wrote: > > dt-bindings: timer: renesas, cmt: Various updates > > > > [PATCH 1/8] dt-bindings: timer: renesas, cmt: Add CMT0234 to sh73a0 and > > r8a77

Re: [PATCH 0/3] clocksource/drivers/sh_cmt: Minor DT compat string update

2019-06-18 Thread Magnus Damm
On Tue, Jun 18, 2019 at 7:31 PM Simon Horman wrote: > > On Mon, Jun 17, 2019 at 07:00:06PM +0900, Magnus Damm wrote: > > clocksource/drivers/sh_cmt: Minor DT compat string update > > > > [PATCH 1/3] clocksource/drivers/sh_cmt: SoC-specific match for CMT1 on > > r8a

Re: [PATCH 0/3] ARM: dts: Minor CMT update for 32-bit ARM SoCs

2019-06-18 Thread Magnus Damm
On Tue, Jun 18, 2019 at 7:46 PM Simon Horman wrote: > > On Mon, Jun 17, 2019 at 06:16:42PM +0900, Magnus Damm wrote: > > ARM: dts: Minor CMT update for 32-bit ARM SoCs > > > > [PATCH 1/3] ARM: dts: Update CMT1 DT compat strings on r8a7740 > > [PATCH 2/3] ARM: dts: Up

[PATCH 0/3] clocksource/drivers/sh_cmt: Minor DT compat string update

2019-06-17 Thread Magnus Damm
as deprecated Move over to new CMT1 bindings on r8a7740 and sh73a0 and get rid of old stale stuff such as "cmt-48-gen2" while keeping "cmt-48" around but document it as deprecated. Signed-off-by: Magnus Damm --- Patch 1 and patch 3 depend on updated SoC-specific DT bin

[PATCH 1/3] clocksource/drivers/sh_cmt: SoC-specific match for CMT1 on r8a7740 and sh73a0

2019-06-17 Thread Magnus Damm
From: Magnus Damm Add SoC-specific matching for CMT1 on r8a7740 and sh73a0. This allows us to move away from the old DT bindings such as - "renesas,cmt-48-sh73a0" - "renesas,cmt-48-r8a7740" - "renesas,cmt-48" in favour for the now commonly used format "ren

[PATCH 2/3] clocksource/drivers/sh_cmt: Remove "cmt-48-gen2" support

2019-06-17 Thread Magnus Damm
From: Magnus Damm Since late 2017 the DT compat string "renesas,cmt-48-gen2" has not been in use in the upstream kernel. SoC-specific strings and the fallback string "rcar-gen2-cmt1" are now used in the DTSI instead. Remove "renesas,cmt-48-gen2" from the CMT drive

[PATCH 3/3] clocksource/drivers/sh_cmt: Document "cmt-48" as deprecated

2019-06-17 Thread Magnus Damm
From: Magnus Damm Update the CMT driver to mark "renesas,cmt-48" as deprecated. Instead of documenting a theoretical hardware device based on current software support level, define DT bindings top-down based on available data sheet information and make use of part numbers in the

[PATCH 3/3] ARM: dts: Add CMT0 and CMT1 to r8a7792

2019-06-17 Thread Magnus Damm
From: Magnus Damm Add CMT0 and CMT1 to the R-Car Gen2 V2H (r8a7792) SoC. Signed-off-by: Magnus Damm --- arch/arm/boot/dts/r8a7792.dtsi | 34 ++ 1 file changed, 34 insertions(+) --- 0001/arch/arm/boot/dts/r8a7792.dtsi +++ work/arch/arm/boot/dts/r8a7792.dtsi

[PATCH 0/3] ARM: dts: Minor CMT update for 32-bit ARM SoCs

2019-06-17 Thread Magnus Damm
. In particular r8a7740 and sh73a0 get their DT compat strings updated and r8a7792 gets a fresh set of CMT devices. Signed-off-by: Magnus Damm --- Patch 1 and Patch 2 depend on the following DT binding change: [PATCH 2/8] dt-bindings: timer: renesas, cmt: Update CMT1 on sh73a0 and r8a7740 arch/arm

[PATCH 2/3] ARM: dts: Update CMT1 DT compat strings on sh73a0

2019-06-17 Thread Magnus Damm
From: Magnus Damm Update the sh73a0 to use the CMT1 DT compat string documented in: [PATCH 2/8] dt-bindings: timer: renesas, cmt: Update CMT1 on sh73a0 and r8a7740 The "renesas,cmt-48" portion is left as-is to avoid breakage until the CMT driver has been updated to make use of the new

[PATCH 1/3] ARM: dts: Update CMT1 DT compat strings on r8a7740

2019-06-17 Thread Magnus Damm
From: Magnus Damm Update the r8a7740 to use the CMT1 DT compat string documented in: [PATCH 2/8] dt-bindings: timer: renesas, cmt: Update CMT1 on sh73a0 and r8a7740 The "renesas,cmt-48" portion is left as-is to avoid breakage until the CMT driver has been updated to make use of

[PATCH 8/8] dt-bindings: timer: renesas, cmt: Update R-Car Gen3 CMT1 usage

2019-06-17 Thread Magnus Damm
From: Magnus Damm The R-Car Gen3 SoCs so far come with a total for 4 on-chip CMT devices: - CMT0 - CMT1 - CMT2 - CMT3 CMT0 includes two rather basic 32-bit timer channels. The rest of the on-chip CMT devices support 48-bit counters and have 8 channels each. Based on the data sheet

[PATCH 7/8] dt-bindings: timer: renesas, cmt: Add CMT0 and CMT1 to r8a77995

2019-06-17 Thread Magnus Damm
From: Magnus Damm This patch adds DT binding documentation for the CMT devices on the R-Car Gen3 D3 (r8a77995) SoC. Signed-off-by: Magnus Damm --- Documentation/devicetree/bindings/timer/renesas,cmt.txt |2 ++ 1 file changed, 2 insertions(+) --- 0012/Documentation/devicetree/bindings

[PATCH 2/8] dt-bindings: timer: renesas, cmt: Update CMT1 on sh73a0 and r8a7740

2019-06-17 Thread Magnus Damm
From: Magnus Damm This patch reworks the DT binding documentation for the 6-channel 48-bit CMTs known as CMT1 on r8a7740 and sh73a0. After the update the same style of DT binding as the rest of the upstream SoCs will now also be used by r8a7740 and sh73a0. The DT binding "cmt-48"

[PATCH 5/8] dt-bindings: timer: renesas, cmt: Add CMT0 and CMT1 to r8a77965

2019-06-17 Thread Magnus Damm
From: Magnus Damm This patch adds DT binding documentation for the CMT devices on the R-Car Gen3 M3-N (r8a77965) SoC. Signed-off-by: Magnus Damm --- Documentation/devicetree/bindings/timer/renesas,cmt.txt |2 ++ 1 file changed, 2 insertions(+) --- 0009/Documentation/devicetree/bindings

[PATCH 4/8] dt-bindings: timer: renesas, cmt: Add CMT0 and CMT1 to r8a7795

2019-06-17 Thread Magnus Damm
From: Magnus Damm This patch adds DT binding documentation for the CMT devices on the R-Car Gen3 H3 (r8a7795) SoC. Signed-off-by: Magnus Damm --- Documentation/devicetree/bindings/timer/renesas,cmt.txt |2 ++ 1 file changed, 2 insertions(+) --- 0006/Documentation/devicetree/bindings

[PATCH 1/8] dt-bindings: timer: renesas, cmt: Add CMT0234 to sh73a0 and r8a7740

2019-06-17 Thread Magnus Damm
From: Magnus Damm Document the on-chip CMT devices included in r8a7740 and sh73a0. Included in this patch is DT binding documentation for 32-bit CMTs CMT0, CMT2, CMT3 and CMT4. They all contain a single channel and are quite similar however some minor differences still exist: - "Counter

[PATCH 6/8] dt-bindings: timer: renesas, cmt: Add CMT0 and CMT1 to r8a77990

2019-06-17 Thread Magnus Damm
From: Magnus Damm This patch adds DT binding documentation for the CMT devices on the R-Car Gen3 E3 (r8a77990) SoC. Signed-off-by: Magnus Damm --- Documentation/devicetree/bindings/timer/renesas,cmt.txt |2 ++ 1 file changed, 2 insertions(+) --- 0010/Documentation/devicetree/bindings

[PATCH 3/8] dt-bindings: timer: renesas, cmt: Add CMT0 and CMT1 to r8a7792

2019-06-17 Thread Magnus Damm
From: Magnus Damm This patch adds DT binding documentation for the CMT devices on the R-Car Gen2 V2H (r8a7792) SoC. Signed-off-by: Magnus Damm --- Documentation/devicetree/bindings/timer/renesas,cmt.txt |2 ++ 1 file changed, 2 insertions(+) --- 0004/Documentation/devicetree/bindings

[PATCH 0/8] dt-bindings: timer: renesas, cmt: Various updates

2019-06-17 Thread Magnus Damm
Gen3 DT bindings for H3, M3-N, E3 an D3. - Update the R-Car Gen3 description to reflect current usage. Please see each individual patch for more information. Signed-off-by: Magnus Damm --- Documentation/devicetree/bindings/timer/renesas,cmt.txt | 54 +-- 1 file changed, 33 insertions

[PATCH 0/2] arm/arm64: dts: Use ip=on for bootargs

2019-05-18 Thread Magnus Damm
pick the desired protocol. I recall the ISC DHCP server being a helpful tool to test BOOTP and DHCP. Signed-off-by: Magnus Damm --- Developed on top of renesas-devel-20190516-v5.1 arch/arm/boot/dts/emev2-kzm9d.dts|2 +- arch/arm/boot/dts/r7s72100-genmai.dts

[PATCH 1/2] arm: dts: Use ip=on for bootargs

2019-05-18 Thread Magnus Damm
From: Magnus Damm Convert bootargs from ip=dhcp to ip=on Signed-off-by: Magnus Damm --- arch/arm/boot/dts/emev2-kzm9d.dts |2 +- arch/arm/boot/dts/r7s72100-genmai.dts |2 +- arch/arm/boot/dts/r8a73a4-ape6evm.dts |2 +- arch/arm/boot/dts/r8a7740

[PATCH 2/2] arm64: dts: renesas: Use ip=on for bootargs

2019-05-18 Thread Magnus Damm
From: Magnus Damm Convert bootargs from ip=dhcp to ip=on Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts |2 +- arch/arm64/boot/dts/renesas/r8a77970-eagle.dts |2 +- arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts |2 +- arch/arm64/boot/dts

[PATCH 4/4] arm: dts: ape6evm: Reorder bootargs

2019-04-17 Thread Magnus Damm
From: Magnus Damm Reorder bootargs parameters to make the APE6EVM board bootargs match other boards from Renesas. No need to be special. Signed-off-by: Magnus Damm --- arch/arm/boot/dts/r8a73a4-ape6evm.dts |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 0001/arch/arm/boot/dts

[PATCH 3/4] arm: dts: marzen: Add rw to bootargs and use ip=dhcp

2019-04-17 Thread Magnus Damm
From: Magnus Damm Add rw as bootargs parameter and change from ip=on to ip=dhcp to make the Marzen board bootargs match other boards from Renesas. No need to be special. Signed-off-by: Magnus Damm --- arch/arm/boot/dts/r8a7779-marzen.dts |2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 1/4] arm: dts: kzm9d: Add rw parameter to bootargs

2019-04-17 Thread Magnus Damm
From: Magnus Damm Add rw as bootargs parameter to make the KZM9D board bootargs match other boards from Renesas. No need to be special. Signed-off-by: Magnus Damm --- arch/arm/boot/dts/emev2-kzm9d.dts |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 0001/arch/arm/boot/dts/emev2

[PATCH 2/4] arm: dts: bockw: Reorder bootargs

2019-04-17 Thread Magnus Damm
From: Magnus Damm Reorder bootargs parameters to make the BockW board bootargs match other boards from Renesas. No need to be special. Signed-off-by: Magnus Damm --- arch/arm/boot/dts/r8a7778-bockw.dts |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 0001/arch/arm/boot/dts

[PATCH 0/4] arm: dts: Bootargs update for older boards from Renesas

2019-04-17 Thread Magnus Damm
make bootargs more consistent across older boards with 32-bit ARM SoCs from Renesas. Simple reordering, adding rw parameter and in case of Marzen we go from ip=on to ip=dhcp. I believe using the ip parameter consistently across the boards is a good first step. Signed-off-by: Magnus Damm

Re: [PATCH/RFC V2] iommu/ipmmu-vmsa: Disable IPMMU when address expansion is not needed

2019-03-19 Thread Magnus Damm
Hi Geert, On Tue, Mar 19, 2019 at 10:34 PM Geert Uytterhoeven wrote: > > Hi Magnus, > > On Tue, Mar 19, 2019 at 2:24 PM Magnus Damm wrote: > > From: Magnus Damm > > > > Add a memory bank location check to the whitelist handling. > > > > Signed-off-

Re: [PATCH/RFC 01/09] iommu/ipmmu-vmsa: Disable IPMMU when address expansion is not needed

2019-03-19 Thread Magnus Damm
Hi Geert, On Thu, Feb 21, 2019 at 1:10 AM Geert Uytterhoeven wrote: > > Hi Magnus, > > On Wed, Feb 20, 2019 at 3:55 PM Magnus Damm wrote: > > From: Magnus Damm > > > > Add a memory bank location check to the whitelist handling. > > > > Signed-off-

[PATCH] arm64: dts: renesas: Update Ebisu and Draak bootargs

2019-03-19 Thread Magnus Damm
From: Magnus Damm Update Ebisu and Draak bootargs to match other boards Signed-off-by: Magnus Damm --- Developed on top of 5.1-rc1 arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts |2 +- arch/arm64/boot/dts/renesas/r8a77995-draak.dts |2 +- 2 files changed, 2 insertions(+), 2

[PATCH/RFC V2] iommu/ipmmu-vmsa: Disable IPMMU when address expansion is not needed

2019-03-19 Thread Magnus Damm
From: Magnus Damm Add a memory bank location check to the whitelist handling. Signed-off-by: Magnus Damm --- Changes since V1: - None, simply broke out this patch from the rest of the series drivers/iommu/ipmmu-vmsa.c |7 +++ 1 file changed, 7 insertions(+) --- 0001/drivers/iommu

[PATCH/RFC 08/09] arm64: dts: renesas: eagle: Introduce keepipmmu boot parameter

2019-02-20 Thread Magnus Damm
From: Magnus Damm Introduce a keepipmmu boot paramenter to let the user override. Not-Yet-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77970-eagle.dts |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 0001/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +++ work

[PATCH/RFC 09/09] arm64: dts: renesas: cat874: Introduce keepipmmu boot parameter

2019-02-20 Thread Magnus Damm
From: Magnus Damm Introduce a keepipmmu boot paramenter to let the user override. Not-Yet-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 0001/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts +++ work

[PATCH/RFC 04/09] arm64: dts: renesas: ulcb: Introduce keepipmmu boot parameter

2019-02-20 Thread Magnus Damm
From: Magnus Damm Introduce a keepipmmu boot paramenter to let the user override. Not-Yet-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/ulcb.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 0001/arch/arm64/boot/dts/renesas/ulcb.dtsi +++ work/arch/arm64/boot/dts

[PATCH/RFC 03/09] iommu/ipmmu-vmsa: Introduce keepipmmu boot parameter

2019-02-20 Thread Magnus Damm
From: Magnus Damm Introduce a keepipmmu boot paramenter to let the user override. Not-Yet-Signed-off-by: Magnus Damm --- drivers/iommu/ipmmu-vmsa.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) --- 0004/drivers/iommu/ipmmu-vmsa.c +++ work/drivers/iommu/ipmmu-vmsa.c

[PATCH/RFC 05/09] arm64: dts: renesas: salvator: Introduce keepipmmu boot parameter

2019-02-20 Thread Magnus Damm
From: Magnus Damm Introduce a keepipmmu boot paramenter to let the user override. Not-Yet-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/salvator-common.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 0001/arch/arm64/boot/dts/renesas/salvator-common.dtsi

[PATCH/RFC 02/09] iommu/ipmmu-vmsa: Display system memory informationn during boot

2019-02-20 Thread Magnus Damm
From: Magnus Damm Clarify runtime memory bank detection in the IPMMU driver. Not-Yet-Signed-off-by: Magnus Damm --- drivers/iommu/ipmmu-vmsa.c |8 1 file changed, 8 insertions(+) --- 0002/drivers/iommu/ipmmu-vmsa.c +++ work/drivers/iommu/ipmmu-vmsa.c 2019-02-20 23:09

[PATCH/RFC 06/09] arm64: dts: renesas: draak: Introduce keepipmmu boot parameter

2019-02-20 Thread Magnus Damm
From: Magnus Damm Introduce a keepipmmu boot paramenter to let the user override. Not-Yet-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77995-draak.dts |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 0001/arch/arm64/boot/dts/renesas/r8a77995-draak.dts +++ work

[PATCH/RFC 07/09] arm64: dts: renesas: ebisu: Introduce keepipmmu boot parameter

2019-02-20 Thread Magnus Damm
From: Magnus Damm Introduce a keepipmmu boot paramenter to let the user override. Not-Yet-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 0001/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts +++ work

[PATCH/RFC 01/09] iommu/ipmmu-vmsa: Disable IPMMU when address expansion is not needed

2019-02-20 Thread Magnus Damm
From: Magnus Damm Add a memory bank location check to the whitelist handling. Signed-off-by: Magnus Damm --- drivers/iommu/ipmmu-vmsa.c |7 +++ 1 file changed, 7 insertions(+) --- 0001/drivers/iommu/ipmmu-vmsa.c +++ work/drivers/iommu/ipmmu-vmsa.c 2019-02-20 22:59:28.589893396

[PATCH/RFC 00/09] IPMMU address translation enablement prototype

2019-02-20 Thread Magnus Damm
upstream merge however patch 1/9 might be not so far off. Not-Signed-off-by: Magnus Damm --- Developed on top of next-20190215 arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts |2 - arch/arm64/boot/dts/renesas/r8a77970-eagle.dts |2 - arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts |2

[PATCH/RFC 06/06] arm64: dts: renesas: r8a77980: One IMP-X5 device for R-Car V3H

2019-01-21 Thread Magnus Damm
From: Magnus Damm Add an IMP-X5 device node to the r8a77980 device tree source. Not for upstream merge. Not-Yet-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77980.dtsi |9 + 1 file changed, 9 insertions(+) --- 0001/arch/arm64/boot/dts/renesas/r8a77980.dtsi

[PATCH/RFC 05/06] arm64: dts: renesas: r8a77970: One IMP-X5 device for R-Car V3M

2019-01-21 Thread Magnus Damm
From: Magnus Damm Add an IMP-X5 device node to the r8a77970 device tree source. Not for upstream merge. Not-Yet-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77970.dtsi |9 + 1 file changed, 9 insertions(+) --- 0001/arch/arm64/boot/dts/renesas/r8a77970.dtsi

[PATCH/RFC 04/06] arm64: dts: renesas: r8a77965: One IMP-X5 device for R-Car M3-N

2019-01-21 Thread Magnus Damm
From: Magnus Damm Add an IMP-X5 device node to the r8a77965 device tree source. Not for upstream merge. Not-Yet-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77965.dtsi |9 + 1 file changed, 9 insertions(+) --- 0001/arch/arm64/boot/dts/renesas/r8a77965.dtsi

[PATCH/RFC 03/06] arm64: dts: renesas: r8a7796: One IMP-X5 device for R-Car M3-W

2019-01-21 Thread Magnus Damm
From: Magnus Damm Add an IMP-X5 device node to the r8a7796 device tree source. Not for upstream merge. Not-Yet-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a7796.dtsi |9 + 1 file changed, 9 insertions(+) --- 0003/arch/arm64/boot/dts/renesas/r8a7796.dtsi

[PATCH/RFC 00/06] R-Car Gen3 IMP-X5 prototype code

2019-01-21 Thread Magnus Damm
for upstream merge. Written for H3 ES2 ULCB. Created as an example of how to test power domains for a certain device. I hope to use this approach to test IPMMU power domain support in the future. Not-Signed-off-by: Magnus Damm --- Developed on top of v5.0-rc3 arch/arm64/boot/dts/renesas

[PATCH/RFC 01/06] Prototype code for IMP-X5

2019-01-21 Thread Magnus Damm
From: Magnus Damm Prototype code to read out the IMP-X5 register settings at probe() time. Not for upstream merge. Not-Yet-Signed-off-by: Magnus Damm --- drivers/soc/renesas/Makefile |2 drivers/soc/renesas/renesas-test-imp-x5.c | 77 + 2

[PATCH/RFC 02/06] arm64: dts: renesas: r8a7795: One IMP-X5 device for R-Car H3

2019-01-21 Thread Magnus Damm
From: Magnus Damm Add an IMP-X5 device node to the r8a7795 device tree source. Not for upstream merge. Not-Yet-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a7795.dtsi |9 + 1 file changed, 9 insertions(+) --- 0002/arch/arm64/boot/dts/renesas/r8a7795.dtsi

Re: [PATCH/RFC 00/02] Remove undocumented IMR-LX4 device nodes

2019-01-21 Thread Magnus Damm
Hi Geert, On Mon, Jan 21, 2019 at 8:53 PM Geert Uytterhoeven wrote: > > Hi Magnus, > > On Mon, Jan 21, 2019 at 12:49 PM Magnus Damm wrote: > > Remove undocumented IMR-LX4 device nodes > > > > [PATCH/RFC 01/02] arm64: dts: renesas: r8a7795: Remove IMR-LX4 device nod

[PATCH/RFC 00/02] Remove undocumented IMR-LX4 device nodes

2019-01-21 Thread Magnus Damm
blindly adding more DT nodes with a DT binding but without a driver seems a bit suboptimal compared to testing against an actual driver. Signed-off-by: Magnus Damm --- Developed on top of v5.0-rc3 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 40 -- arch/arm64/boot

[PATCH/RFC 01/02] arm64: dts: renesas: r8a7795: Remove IMR-LX4 device nodes

2019-01-21 Thread Magnus Damm
From: Magnus Damm Get rid of undocumented IMR-LX4 device nodes for the r8a7795 SoC. I would much prefer to have a proper driver with documented DT bindings in upstream instead. However removing DT nodes seems better than this current half-way state. Signed-off-by: Magnus Damm --- arch/arm64

[PATCH/RFC 02/02] arm64: dts: renesas: r8a7796: Remove IMR-LX4 device nodes

2019-01-21 Thread Magnus Damm
From: Magnus Damm Get rid of undocumented IMR-LX4 device nodes for the r8a7796 SoC. I would much prefer to have a proper driver with documented DT bindings in upstream instead. However removing DT nodes seems better than this current half-way state. Signed-off-by: Magnus Damm --- arch/arm64

[PATCH 09/09] Random build workarounds for renesas-drivers

2018-12-19 Thread Magnus Damm
From: Magnus Damm The latest renesas-drivers release does not build for me with the arm64 defconfig. Probably related to my old toolchain. Take the easy way out and work around the build issues locally. Not for upstream merge. Not-Signed-off-by: Magnus Damm --- Applies on top of renesas

[PATCH 08/09] arm64: dts: renesas: r8a77990: One IMR-LX4 device for R-Car E3

2018-12-19 Thread Magnus Damm
From: Magnus Damm Introduce a single IMR-LX4 device to the r8a77995 dtsi file. Not for upstream merge. Not-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 10 ++ 1 file changed, 10 insertions(+) --- 0001/arch/arm64/boot/dts/renesas/r8a77995.dtsi

[PATCH 04/09] arm64: dts: renesas: r8a77965: One IMR-LX4 device for R-Car M3-N

2018-12-19 Thread Magnus Damm
From: Magnus Damm Introduce a single IMR-LX4 device to the r8a77965 dtsi file. Not for upstream merge. Not-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 11 +++ 1 file changed, 11 insertions(+) --- 0001/arch/arm64/boot/dts/renesas/r8a77965.dtsi

[PATCH 02/09] arm64: dts: renesas: r8a7795: One IMR-LX4 device for R-Car H3

2018-12-19 Thread Magnus Damm
From: Magnus Damm We will only test a single IMR-LX4 device, so get rid of the other channels in the r8a7795 dtsi file. Not for upstream merge. Not-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 30 -- 1 file changed, 30 deletions

[PATCH 06/09] arm64: dts: renesas: r8a77980: One IMR-LX4 device for R-Car V3H

2018-12-19 Thread Magnus Damm
From: Magnus Damm Introduce a single IMR-LX4 device to the r8a77980 dtsi file. Not for upstream merge. Not-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77980.dtsi | 10 ++ 1 file changed, 10 insertions(+) --- 0001/arch/arm64/boot/dts/renesas/r8a77980.dtsi

[PATCH 01/09] Prototype code for basic IMR-LX4 test

2018-12-19 Thread Magnus Damm
From: Magnus Damm Introduce some basic test code for the IMR-LX4 device included in R-Car Gen3 SoCs. At this point the code only controls clocks and power domains using Runtime PM and resets the device. Obviously a proper driver would be much more useful. This code is however useful to test

[PATCH 07/09] arm64: dts: renesas: r8a77995: One IMR-LX4 device for R-Car D3

2018-12-19 Thread Magnus Damm
From: Magnus Damm Introduce a single IMR-LX4 device to the r8a77990 dtsi file. Not for upstream merge. Not-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77990.dtsi | 10 ++ 1 file changed, 10 insertions(+) --- 0001/arch/arm64/boot/dts/renesas/r8a77990.dtsi

[PATCH 03/09] arm64: dts: renesas: r8a7796: One IMR-LX4 device for R-Car M3-W

2018-12-19 Thread Magnus Damm
From: Magnus Damm We will only test a single IMR-LX4 device, so get rid of the other channels in the r8a7796 dtsi file. Not for upstream merge. Not-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 10 -- 1 file changed, 10 deletions(-) --- 0001/arch/arm64

[PATCH 05/09] arm64: dts: renesas: r8a77970: One IMR-LX4 device for R-Car V3M

2018-12-19 Thread Magnus Damm
From: Magnus Damm Introduce a single IMR-LX4 device to the r8a77970 dtsi file. Not for upstream merge. Not-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77970.dtsi | 10 ++ 1 file changed, 10 insertions(+) --- 0001/arch/arm64/boot/dts/renesas/r8a77970.dtsi

[PATCH 00/09] Test R-Car Gen3 IMR-LX4 device

2018-12-19 Thread Magnus Damm
-Signed-off-by: Magnus Damm --- Developed on top of renesas-drivers-2018-12-18-v4.20-rc7 arch/arm64/boot/dts/renesas/r8a7795.dtsi| 30 - arch/arm64/boot/dts/renesas/r8a7796.dtsi| 10 --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 11 +++ arch/arm64/boot/dts

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

2018-11-21 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. Fixes: c156633f1353 ("Renesas Ethernet AVB driver proper") Signed-off-

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

2018-11-21 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." Fixes: c1

[PATCH v3 00/02] ravb: Duplex handling update V3

2018-11-21 Thread Magnus Damm
river proper") Signed-off-by: Magnus Damm Reviewed-by: Sergei Shtylyov --- Applies on top of next-20181121 drivers/net/ethernet/renesas/ravb.h |1 - drivers/net/ethernet/renesas/ravb_main.c | 23 +-- 2 files changed, 5 insertions(+), 19 deletions(-)

[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 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 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 00/05] Test R-Car Gen3 SYSC power domains used by FCPCS and VDPB

2018-11-21 Thread Magnus Damm
ach 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
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 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 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 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 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 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 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-Sig

[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 data sheet the

  1   2   3   4   5   >