ARM GIC DT binding reg block mismatch? (Re: [PATCH v11 1/8] arm64: renesas: r8a7795: Add Renesas R8A7795 SoC support)

2016-02-15 Thread Geert Uytterhoeven
Cc Marz Zyngier Cc Dirk Behme Cc devicetree Cc linux-renesas-soc Drop linux-sh On Wed, Dec 9, 2015 at 9:23 AM, Geert Uytterhoeven wrote: > On Tue, Nov 3, 2015 at 3:28 PM, Mark Rutland wrote: >> On Wed, Oct 21, 2015 at 03:34:39PM +0200, Geert Uytterhoeven wrote: >>> On Thu, Oct 15, 2015 at 12:58

Re: [PATCH v2] arm64: dts: r8a7795: use GIC_* defines

2016-02-15 Thread Geert Uytterhoeven
On Tue, Feb 2, 2016 at 2:31 PM, Simon Horman wrote: > Use GIC_* defines for GIC interrupt cells in r8a7795 device tree. > > Signed-off-by: Simon Horman Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 --

Re: ARM GIC DT binding reg block mismatch? (Re: [PATCH v11 1/8] arm64: renesas: r8a7795: Add Renesas R8A7795 SoC support)

2016-02-15 Thread Marc Zyngier
On 15/02/16 08:16, Geert Uytterhoeven wrote: > Cc Marz Zyngier > Cc Dirk Behme > Cc devicetree > Cc linux-renesas-soc > Drop linux-sh > > On Wed, Dec 9, 2015 at 9:23 AM, Geert Uytterhoeven > wrote: >> On Tue, Nov 3, 2015 at 3:28 PM, Mark Rutland wrote: >>> On Wed, Oct 21, 2015 at 03:34:39PM +02

Re: [PATCH/RFC 1/9] clk: shmobile: r8a7795: Add FCP clocks

2016-02-15 Thread Geert Uytterhoeven
On Fri, Feb 12, 2016 at 3:00 AM, Laurent Pinchart wrote: > The parent clock isn't documented in the datasheet, use S2D1 as a best > guess for now. Looks like a good guess... I assume the driver doesn't depend on the clock rate? > Signed-off-by: Laurent Pinchart Reviewed-by: Geert Uytterhoeven

Re: [PATCH/RFC 2/9] clk: shmobile: r8a7795: Add LVDS module clock

2016-02-15 Thread Geert Uytterhoeven
On Fri, Feb 12, 2016 at 3:00 AM, Laurent Pinchart wrote: > The parent clock hasn't been validated yet. I assume the driver doesn't depend on the clock rate? > Signed-off-by: Laurent Pinchart Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoe

Re: [RFC/PATCH] [media] rcar-vin: add Renesas R-Car VIN IP core

2016-02-15 Thread Hans Verkuil
On 02/14/2016 05:55 PM, Niklas Söderlund wrote: > A V4L2 driver for Renesas R-Car VIN IP cores that do not depend on > soc_camera. The driver is heavily based on its predecessor and aims to > replace the soc_camera driver. Fantastic! I've been hoping that this would be done at some point. It was v

Re: [PATCH/RFC 3/9] v4l: Add Renesas R-Car FCP driver

2016-02-15 Thread Geert Uytterhoeven
Hi Laurent, On Fri, Feb 12, 2016 at 3:00 AM, Laurent Pinchart wrote: > The FCP is a companion module of video processing modules in the > Renesas R-Car Gen3 SoCs. It provides data compression and decompression, > data caching, and converting of AXI transaction in order to reduce the "conversion"

Re: [PATCH/RFC 6/9] ARM64: renesas: r8a7795: Add FCPV nodes

2016-02-15 Thread Geert Uytterhoeven
Hi Laurent, On Fri, Feb 12, 2016 at 3:00 AM, Laurent Pinchart wrote: > The FCPs handle the interface between various IP cores and memory. Add > the instances related to the VSP2s. > > Signed-off-by: Laurent Pinchart > --- > arch/arm64/boot/dts/renesas/r8a7795.dtsi | 63 > ++

Re: [PATCH/RFC 7/9] ARM64: renesas: r8a7795: Add VSP instances

2016-02-15 Thread Geert Uytterhoeven
Hi Laurent, On Fri, Feb 12, 2016 at 3:00 AM, Laurent Pinchart wrote: > The r8a7795 has 9 VSP instances with various capabilities. > > Only the VSPD instances are currently enabled as the other 5 instances > cause the following crash when reading the version register. > > [5.284206] Bad mode i

Re: ARM GIC DT binding reg block mismatch? (Re: [PATCH v11 1/8] arm64: renesas: r8a7795: Add Renesas R8A7795 SoC support)

2016-02-15 Thread Geert Uytterhoeven
Hi Marc, On Mon, Feb 15, 2016 at 9:45 AM, Marc Zyngier wrote: > On 15/02/16 08:16, Geert Uytterhoeven wrote: >> On Wed, Dec 9, 2015 at 9:23 AM, Geert Uytterhoeven >> wrote: >>> On Tue, Nov 3, 2015 at 3:28 PM, Mark Rutland wrote: On Wed, Oct 21, 2015 at 03:34:39PM +0200, Geert Uytterhoeven

Re: [RFC/PATCH] [media] rcar-vin: add Renesas R-Car VIN IP core

2016-02-15 Thread Hans Verkuil
On 02/15/2016 10:28 AM, Hans Verkuil wrote: >> +static const struct v4l2_ioctl_ops rvin_ioctl_ops = { >> +.vidioc_querycap= rvin_querycap, >> +.vidioc_try_fmt_vid_cap = rvin_try_fmt_vid_cap, >> +.vidioc_g_fmt_vid_cap = rvin_g_fmt_vid_cap, >> +.vidio

Re: ARM GIC DT binding reg block mismatch? (Re: [PATCH v11 1/8] arm64: renesas: r8a7795: Add Renesas R8A7795 SoC support)

2016-02-15 Thread Marc Zyngier
On 15/02/16 10:35, Geert Uytterhoeven wrote: > Hi Marc, > > On Mon, Feb 15, 2016 at 9:45 AM, Marc Zyngier wrote: >> On 15/02/16 08:16, Geert Uytterhoeven wrote: >>> On Wed, Dec 9, 2015 at 9:23 AM, Geert Uytterhoeven >>> wrote: On Tue, Nov 3, 2015 at 3:28 PM, Mark Rutland wrote: > On W

Re: [PATCH] ARM: dts: porter: add MAX3355 support

2016-02-15 Thread Sergei Shtylyov
On 2/15/2016 4:45 AM, Simon Horman wrote: Now that Maxim Integrated MAX3355 'extcon' driver and device tree bindings are upstream along with the 'extcon' hook in the Renesas USBHS driver, we can add MAX3355 device node to the Porter device tree and properly refer to it from the USBHS node ins

Re: [PATCH 0/2] Add Renesas R8A7794 audio PFC support

2016-02-15 Thread Geert Uytterhoeven
Hi Sergei, On Wed, Feb 10, 2016 at 11:37 PM, Sergei Shtylyov wrote: >Here's the set of 2 patches against the 'devel' branch of Linus Walleij's > 'linux-pinctrl.git' repo. Here we add the PFC support for the Renesas R8A7794 > SSI devices and audio clocks. Thanks! > [1/2] pinctrl: sh-pfc: r8a

Re: [RFC/PATCH] [media] rcar-vin: add Renesas R-Car VIN IP core

2016-02-15 Thread Ulrich Hecht
On Sun, Feb 14, 2016 at 5:55 PM, Niklas Söderlund wrote: > A V4L2 driver for Renesas R-Car VIN IP cores that do not depend on > soc_camera. The driver is heavily based on its predecessor and aims to > replace the soc_camera driver. Thanks a lot, this will allow me to implement HDMI input properly

[PATCH] pinctrl: sh-pfc: Rework PFC GPIO support

2016-02-15 Thread Magnus Damm
From: Magnus Damm The sh-pfc Pinctrl driver is currently handling SoC-specific PFC hardware blocks on Arm64, Arm and SH architectures. For older SoCs using SH cores and some 32-bit Arm SoCs the PFC hardware also provides GPIO functionality. On the majority of 32-bit Arm SoCs from Renesas and so

[PATCH] pinctrl: sh-pfc: r8a7795: Add support for INTC-EX IRQ pins

2016-02-15 Thread Magnus Damm
From: Magnus Damm Most pins on the r8a7795 SoC can be configured in GPIO mode for interrupt and GPIO functionality, while a couple of them can also be routed to the INTC-EX hardware block (formerly known as IRQC). On r8a7795 the INTC-EX hardware handles pins IRQ0 -> IRQ5 and this patch adds supp

[PATCH v3 0/2] ARM: shmobile: Avoid writing to .text

2016-02-15 Thread Geert Uytterhoeven
Hi Simon, Magnus, When CONFIG_DEBUG_RODATA=y, the kernel crashes during system suspend: Freezing user space processes ... (elapsed 0.004 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done. PM: suspend of devices complete after 111.948 msecs

[PATCH v3 2/2] ARM: shmobile: Remove shmobile_boot_arg

2016-02-15 Thread Geert Uytterhoeven
CPU boot configuration writes to shmobile_boot_arg, which is located in the .text section, and thus should not be written to. As of commit 1d33a354bbb618ba ("ARM: shmobile: Per-CPU SMP boot / sleep code for SCU SoCs"), and ignoring accidental remainings, shmobile_boot_arg is always set to MPIDR_HW

[PATCH v3 1/2] ARM: shmobile: Move shmobile_smp_{mpidr,fn,arg}[] from .text to .bss

2016-02-15 Thread Geert Uytterhoeven
If CONFIG_DEBUG_RODATA=y, the kernel crashes during system suspend: Freezing user space processes ... (elapsed 0.004 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done. PM: suspend of devices complete after 111.948 msecs PM: late suspend of devic

[PATCH] clk: shmobile: r8a7795: Add INTC-EX clock

2016-02-15 Thread Magnus Damm
From: Magnus Damm Add the "intc-ex" clock to the r8a7795 CPG MSSR driver. The parent clock is assumed to be S3D1 since other INTC hardware is using this clock. Signed-off-by: Magnus Damm --- Developed on top of renesas-drivers-2016-02-09-v4.5-rc3 drivers/clk/shmobile/r8a7795-cpg-mssr.c |

Re: [PATCH/RFC 1/9] clk: shmobile: r8a7795: Add FCP clocks

2016-02-15 Thread Laurent Pinchart
Hi Geert, On Monday 15 February 2016 10:22:22 Geert Uytterhoeven wrote: > On Fri, Feb 12, 2016 at 3:00 AM, Laurent Pinchart wrote: > > The parent clock isn't documented in the datasheet, use S2D1 as a best > > guess for now. > > Looks like a good guess... > I assume the driver doesn't depend on t

Re: [PATCH/RFC 2/9] clk: shmobile: r8a7795: Add LVDS module clock

2016-02-15 Thread Laurent Pinchart
Hi Geert, On Monday 15 February 2016 10:24:02 Geert Uytterhoeven wrote: > On Fri, Feb 12, 2016 at 3:00 AM, Laurent Pinchart wrote: > > The parent clock hasn't been validated yet. > > I assume the driver doesn't depend on the clock rate? Correct. > > Signed-off-by: Laurent Pinchart > > > > Rev

Re: [PATCH/RFC 3/9] v4l: Add Renesas R-Car FCP driver

2016-02-15 Thread Laurent Pinchart
Hi Geert, Thank you for the review. On Monday 15 February 2016 10:32:35 Geert Uytterhoeven wrote: > On Fri, Feb 12, 2016 at 3:00 AM, Laurent Pinchart wrote: > > The FCP is a companion module of video processing modules in the > > Renesas R-Car Gen3 SoCs. It provides data compression and decompres

[PATCH] serial: sh-sci: Remove redundant instances of EARLYCON_DECLARE()

2016-02-15 Thread Geert Uytterhoeven
As of commit 2eaa790989e03900 ("earlycon: Use common framework for earlycon declarations") it is no longer needer to specify both EARLYCON_DECLARE() and OF_EARLYCON_DECLARE(). Signed-off-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c | 5 - 1 file changed, 5 deletions(-) diff --git

[PATCH] clk: shmobile: cpg-mssr: Update serial port clock in example

2016-02-15 Thread Geert Uytterhoeven
Cfr. commit a9ec81f4ed5c05db ("serial: sh-sci: Drop the interface clock"). Signed-off-by: Geert Uytterhoeven --- I plan to queue this up with the other clk-shmobile patches in clk-shmobile-for-v4.6 and send a pull request later. Documentation/devicetree/bindings/clock/renesas,cpg-mssr.txt | 2 +

Re: [PATCH] arm64: dts: r8a7795: Add GIC-400 virtual interfaces

2016-02-15 Thread Dirk Behme
On 15.02.2016 06:46, Kuninori Morimoto wrote: Hi Dirk Cc Geert Besides the distributor and the CPU interface the GIC-400 additionally supports the virtual interface control blocks and the virtual CPU interfaces. Add the physical base addresses and size for these. See http://infocenter.arm.c

[PATCH] ravb: Update DT binding example for final CPG/MSSR bindings

2016-02-15 Thread Geert Uytterhoeven
The example in the DT binding documentation uses the preliminary DT bindings for the r8a7795 MSTP clocks, which never went upstream. Update the example to use the DT bindings for the upstream Clock Pulse Generator / Module Standby and Software Reset hardware block. Signed-off-by: Geert Uytterhoeve

Re: [PATCH/RFC 6/9] ARM64: renesas: r8a7795: Add FCPV nodes

2016-02-15 Thread Laurent Pinchart
Hi Geert, Thank you for the review. On Monday 15 February 2016 10:45:39 Geert Uytterhoeven wrote: > On Fri, Feb 12, 2016 at 3:00 AM, Laurent Pinchart wrote: > > The FCPs handle the interface between various IP cores and memory. Add > > the instances related to the VSP2s. > > > > Signed-off-by: L

Re: [PATCH/RFC 7/9] ARM64: renesas: r8a7795: Add VSP instances

2016-02-15 Thread Laurent Pinchart
Hi Geert, On Monday 15 February 2016 10:58:36 Geert Uytterhoeven wrote: > On Fri, Feb 12, 2016 at 3:00 AM, Laurent Pinchart wrote: > > The r8a7795 has 9 VSP instances with various capabilities. > > > > Only the VSPD instances are currently enabled as the other 5 instances > > cause the following

Re: [PATCH] pinctrl: sh-pfc: Rework PFC GPIO support

2016-02-15 Thread Laurent Pinchart
Hi Magnus, Thank you for the patch. On Monday 15 February 2016 21:04:38 Magnus Damm wrote: > From: Magnus Damm > > The sh-pfc Pinctrl driver is currently handling SoC-specific > PFC hardware blocks on Arm64, Arm and SH architectures. > > For older SoCs using SH cores and some 32-bit Arm SoCs t

[PATCH 0/2] ARM: shmobile: use Lager as reference for I2C slave and core switch

2016-02-15 Thread Wolfram Sang
This series provides the necessary preparation to use Lager for testing the above mentioned features. After this, the rest is done at runtime as described in the upstream documentation. This series depends on the i2c-demux-pinctrl driver which is in linux-next already. Because IIC0/I2C0 is unpopul

[PATCH 1/2] ARM: shmobile: defconfig: enable I2C demultiplexer and slave eeprom

2016-02-15 Thread Wolfram Sang
From: Wolfram Sang The Lager board shall be the reference platform for the runtime I2C IP core switcher and for I2C slave support. Enable the needed drivers for this. Signed-off-by: Wolfram Sang --- arch/arm/configs/shmobile_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch

[PATCH 2/2] ARM: shmobile: r8a7790: lager: use demuxer for IIC0/I2C0

2016-02-15 Thread Wolfram Sang
From: Wolfram Sang Make it possible to select which I2C IP core you want to run on the EXIO-A connector. This is the reference how to use this feature. Update the copyright while we are here. Signed-off-by: Wolfram Sang --- arch/arm/boot/dts/r8a7790-lager.dts | 32 +

Re: [PATCH] serial: sh-sci: Remove redundant instances of EARLYCON_DECLARE()

2016-02-15 Thread Sergei Shtylyov
Hello. On 2/15/2016 3:36 PM, Geert Uytterhoeven wrote: As of commit 2eaa790989e03900 ("earlycon: Use common framework for 12-digt ID is enough earlycon declarations") it is no longer needer to specify both Needed? EARLYCON_DECLARE() and OF_EARLYCON_DECLARE(). Signed-off-by: Geert

[PATCH RESEND 0/3] arm64: salvator-x: enable SD card slots

2016-02-15 Thread Wolfram Sang
These are the remaining patches needed to get the SD slots on a Salvator-X board working. I decided to collect and resend them as a separate series to make it more clear where we are and to ensure everyone is in the loop :) There are no changes to patch 1 since it was originally posted. This one s

Re: [PATCH RESEND 0/3] arm64: salvator-x: enable SD card slots

2016-02-15 Thread Wolfram Sang
On Mon, Feb 15, 2016 at 02:34:34PM +0100, Wolfram Sang wrote: > These are the remaining patches needed to get the SD slots on a Salvator-X > board working. I decided to collect and resend them as a separate series to > make it more clear where we are and to ensure everyone is in the loop :) Sorry,

[PATCH RESEND 2/3] arm64: dts: r8a7795: Add SDHI support to dtsi

2016-02-15 Thread Wolfram Sang
From: Ai Kyuse Signed-off-by: Ai Kyuse Signed-off-by: Yoshihiro Shimoda [wsa: squashed some fixes and added mmc-caps] Signed-off-by: Wolfram Sang --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 38 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/

[PATCH RESEND 0/3] arm64: salvator-x: enable SD card slots

2016-02-15 Thread Wolfram Sang
These are the remaining patches needed to get the SD slots on a Salvator-X board working. I decided to collect and resend them as a separate series to make it more clear where we are and to ensure everyone is in the loop :) There are no changes to patch 1 since it was originally posted. This one s

[PATCH RESEND 1/3] mmc: sdhi: Add r8a7795 support

2016-02-15 Thread Wolfram Sang
From: Wolfram Sang Registers are 64bit apart, so we refactor bus_shift handling a little and set it based on the DT compatible. Also, EXT_ACC is different. It has been tested on a Salvator-X (Gen3) and, to check for regressions, on a Lager (Gen2). Signed-off-by: Ai Kyuse Signed-off-by: Wolfram

[PATCH RESEND 3/3] arm64: dts: r8a7795: salvator-x: enable SDHI0 & 3

2016-02-15 Thread Wolfram Sang
From: Ai Kyuse Add the exposed SD card slots. The on-board eMMC needs to wait until we fixed the 8bit support (it works with 4bit if you really want it now). Signed-off-by: Ai Kyuse Signed-off-by: Wolfram Sang --- arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 83 ++

Re: [PATCH] pinctrl: sh-pfc: Rework PFC GPIO support

2016-02-15 Thread Geert Uytterhoeven
On Mon, Feb 15, 2016 at 1:55 PM, Laurent Pinchart wrote: >> --- 0001/drivers/pinctrl/sh-pfc/Makefile >> +++ work/drivers/pinctrl/sh-pfc/Makefile 2016-02-15 19:56:50.720513000 > +0900 >> @@ -1,11 +1,8 @@ >> sh-pfc-objs = core.o pinctrl.o >> -ifeq ($(CONFIG_GPIO_SH_PFC),y) >>

Re: [PATCH 0/2] ARM: shmobile: use Lager as reference for I2C slave and core switch

2016-02-15 Thread Geert Uytterhoeven
Hi Wolfram On Mon, Feb 15, 2016 at 1:57 PM, Wolfram Sang wrote: > This series provides the necessary preparation to use Lager for testing the > above mentioned features. After this, the rest is done at runtime as described > in the upstream documentation. Thanks for your series! > This series d

Re: [PATCH 0/2] ARM: shmobile: use Lager as reference for I2C slave and core switch

2016-02-15 Thread Wolfram Sang
> > I can think of is someone using: > > a) IIC0 with an external board > > b) the Lager DTS from upstream unmodified > > c) a private .config and forgot to activate the i2c-demux-pinctrl > > driver > > > > We could point this person to the working shmobile_defconfig, thou

Re: [PATCH] dmaengine: use phys_addr_t for slave configuration

2016-02-15 Thread Vinod Koul
On Tue, Feb 09, 2016 at 11:57:24PM +0100, Wolfram Sang wrote: > > > This is a dependency for adding iommu support to the rcar-dmac driver, cfr. > > "[PATCH v2 0/5] dmaengine: rcar-dmac: add iommu support for slave > > transfers". > > http://www.spinics.net/lists/linux-renesas-soc/msg00066.html >

Re: [PATCH] dmaengine: use phys_addr_t for slave configuration

2016-02-15 Thread Wolfram Sang
> > > This is a dependency for adding iommu support to the rcar-dmac driver, > > > cfr. > > > "[PATCH v2 0/5] dmaengine: rcar-dmac: add iommu support for slave > > > transfers". > > > http://www.spinics.net/lists/linux-renesas-soc/msg00066.html > > > https://www.mail-archive.com/linux-renesas-so

Re: ARM GIC DT binding reg block mismatch? (Re: [PATCH v11 1/8] arm64: renesas: r8a7795: Add Renesas R8A7795 SoC support)

2016-02-15 Thread Dirk Behme
On 15.02.2016 11:55, Marc Zyngier wrote: On 15/02/16 10:35, Geert Uytterhoeven wrote: Hi Marc, On Mon, Feb 15, 2016 at 9:45 AM, Marc Zyngier wrote: On 15/02/16 08:16, Geert Uytterhoeven wrote: On Wed, Dec 9, 2015 at 9:23 AM, Geert Uytterhoeven wrote: On Tue, Nov 3, 2015 at 3:28 PM, Mark Ru

Re: ARM GIC DT binding reg block mismatch? (Re: [PATCH v11 1/8] arm64: renesas: r8a7795: Add Renesas R8A7795 SoC support)

2016-02-15 Thread Marc Zyngier
On 15/02/16 18:53, Dirk Behme wrote: > On 15.02.2016 11:55, Marc Zyngier wrote: >> On 15/02/16 10:35, Geert Uytterhoeven wrote: >>> Hi Marc, >>> >>> On Mon, Feb 15, 2016 at 9:45 AM, Marc Zyngier wrote: On 15/02/16 08:16, Geert Uytterhoeven wrote: > On Wed, Dec 9, 2015 at 9:23 AM, Geert Uy

[PATCH v3 4/7] ARM: dts: r8a7793: Add L2 cache-controller node

2016-02-15 Thread Geert Uytterhoeven
Add a device node for the L2 cache, and link the CPU node to it. The L2 cache for the Cortex-A15 CPU cores is 1 MiB large (organized as 64 KiB x 16 ways). Signed-off-by: Geert Uytterhoeven --- v3: - Drop "arm,data-latency" and "arm,tag-latency" properties, as they may not be valid when usi

[PATCH v3 6/7] arm64: dts: r8a7795: Add missing properties to CA57 L2 cache node

2016-02-15 Thread Geert Uytterhoeven
Add the missing "cache-unified" and "cache-level" properties to the Cortex-A57 cache-controller node. Signed-off-by: Geert Uytterhoeven --- v3: - Remaining part of "[PATCH v2 6/6] arm64: renesas: r8a7795: Add L2 cache-controller nodes", after dropping the "arm,data-latency" and "arm,tag

[PATCH v3 2/7] ARM: dts: r8a7790: Add L2 cache-controller nodes

2016-02-15 Thread Geert Uytterhoeven
Add device nodes for the L2 caches, and link the CPU nodes to them. The L2 cache for the Cortex-A15 CPU cores is 2 MiB large (organized as 128 KiB x 16 ways). The L2 cache for the Cortex-A7 CPU cores is 512 KiB large (organized as 64 KiB x 8 ways). Signed-off-by: Geert Uytterhoeven --- v3: -

[PATCH v3 1/7] ARM: dts: r8a73a4: Add L2 cache-controller nodes

2016-02-15 Thread Geert Uytterhoeven
Add device nodes for the L2 caches, and link the CPU node to its L2 cache node. The L2 cache for the Cortex-A15 CPU cores is 1 MiB large (organized as 64 KiB x 16 ways), and located in PM domain A3SM. The L2 cache for the Cortex-A7 CPU cores is 512 KiB large (organized as 64 KiB x 8 ways), and lo

[PATCH v3 7/7] arm64: dts: r8a7795: Add CA53 L2 cache-controller node

2016-02-15 Thread Geert Uytterhoeven
Add a device node for the Cortex-A53 L2 cache-controller. The L2 cache for the Cortex-A53 CPU cores is 512 KiB large (organized as 32 KiB x 16 ways). Signed-off-by: Geert Uytterhoeven --- v3: - Remaining part of "[PATCH v2 6/6] arm64: renesas: r8a7795: Add L2 cache-controller nodes". ---

[PATCH v3 3/7] ARM: dts: r8a7791: Add L2 cache-controller node

2016-02-15 Thread Geert Uytterhoeven
Add a device node for the L2 cache, and link the CPU nodes to it. The L2 cache for the Cortex-A15 CPU cores is 1 MiB large (organized as 64 KiB x 16 ways). Signed-off-by: Geert Uytterhoeven --- v3: - Drop "arm,data-latency" and "arm,tag-latency" properties, as they may not be valid when us

[PATCH v3 5/7] ARM: dts: r8a7794: Add L2 cache-controller node

2016-02-15 Thread Geert Uytterhoeven
Add a device node for the L2 cache, and link the CPU nodes to it. The L2 cache for the Cortex-A7 CPU cores is 512 KiB large (organized as 64 KiB x 8 ways). Signed-off-by: Geert Uytterhoeven --- v3: - Change one-line summary prefix to match current arm-soc practices, v2: - Drop (incorrect) o

[PATCH v3 0/7] ARM/arm64: dts: renesas: Add/complete L2 cache-controller nodes

2016-02-15 Thread Geert Uytterhoeven
ged one-line summary prefix to match current arm-soc practices. This series is against renesas-devel-20160215-v4.5-rc4. It has been tested on r8a73a4/ape6evm, r8a7791/koelsch, r8a7794/alt, and r8a7795/salvator-x. For your convenience, I've also pushed this series to git://git.kernel.org/pub

[PATCH/RFC v2 03/11] soc: renesas: Improve rcar_sysc_power() debug info

2016-02-15 Thread Geert Uytterhoeven
Print requested power domain state. Signed-off-by: Geert Uytterhoeven --- v2: - New. --- drivers/soc/renesas/pm-rcar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/renesas/pm-rcar.c b/drivers/soc/renesas/pm-rcar.c index bc605d9fbc6ce79c..cc684e9cc8db5d1c 1006

[PATCH/RFC v2 06/11] ARM: dts: r8a7779: Add SYSC PM domains

2016-02-15 Thread Geert Uytterhoeven
Add a device node for the System Controller, with subnodes that represent the hardware power area hierarchy. Hook up ARM CPU cores 1-3 to their respective PM domains. Note that ARM CPU core 0 cannot be shut off. Signed-off-by: Geert Uytterhoeven --- v2: - Correct sysc "reg" property (#address/s

[PATCH/RFC v2 00/11] ARM/arm64: renesas: Add SYSC PM Domain DT Support

2016-02-15 Thread Geert Uytterhoeven
ARM/arm64: dts: renesas: Add/complete L2 cache-controller nodes"), - Minor fixes. This series is against renesas-devel-20160215-v4.5-rc4, with series "[PATCH v3 0/7] ARM/arm64: dts: renesas: Add/complete L2 cache-controller nodes" applied. It is not yet meant to be applied! It'

[PATCH/RFC v2 05/11] soc: renesas: rcar: Handle clock domain devices in SYSC PM domains

2016-02-15 Thread Geert Uytterhoeven
R-Car H3 contains some hardware modules (e.g. VSP and FCP_V) that are not only located in a power area controlled by the SYSC system controller, but that are also part of the generic CPG/MSSR clock domain. Make sure both are handled by enabling module clock PM when the device for such a hardware mo

[PATCH/RFC v2 07/11] ARM: dts: r8a7790: Add SYSC PM domains

2016-02-15 Thread Geert Uytterhoeven
Add a device node for the System Controller, with subnodes that represent the hardware power area hierarchy. Hook up the Cortex-A15 and Cortex-A7 CPU cores and L2 caches/SCUs to their respective PM domains. Signed-off-by: Geert Uytterhoeven --- v2: - Change one-line summary prefix to match curr

[PATCH/RFC v2 09/11] ARM: dts: r8a7793: Add SYSC PM domains

2016-02-15 Thread Geert Uytterhoeven
Add a device node for the System Controller, with subnodes that represent the hardware power area hierarchy. Hook up the first Cortex-A15 CPU core and the Cortex-A15 L2 cache/SCU to their respective PM domains. Signed-off-by: Geert Uytterhoeven --- v2: - Change one-line summary prefix to match

[PATCH/RFC v2 11/11] arm64: dts: r8a7795: Add SYSC PM domains

2016-02-15 Thread Geert Uytterhoeven
Add a device node for the System Controller, with subnodes that represent the hardware power area hierarchy. Hook up the Cortex-A57 CPU cores and the Cortex-A57 and Cortex A53 L2 caches/SCUs to their respective PM domains. Signed-off-by: Geert Uytterhoeven --- The SH core was dropped in datasheet

[PATCH/RFC v2 08/11] ARM: dts: r8a7791: Add SYSC PM domains

2016-02-15 Thread Geert Uytterhoeven
Add a device node for the System Controller, with subnodes that represent the hardware power area hierarchy. Hook up the Cortex-A15 CPU cores and the Cortex-A15 L2 cache/SCU to their respective PM domains. Signed-off-by: Geert Uytterhoeven --- v2: - Change one-line summary prefix to match curre

[PATCH/RFC v2 01/11] PM / Domains: Add DT bindings for the R-Car System Controller

2016-02-15 Thread Geert Uytterhoeven
The Renesas R-Car System Controller provides power management for the CPU cores and various coprocessors, following the generic PM domain bindings in Documentation/devicetree/bindings/power/power_domain.txt. This supports R-Car Gen1, Gen2, and Gen3. Signed-off-by: Geert Uytterhoeven --- Alternat

[PATCH/RFC v2 04/11] soc: renesas: rcar: Add DT support for SYSC PM domains

2016-02-15 Thread Geert Uytterhoeven
Populate the SYSC PM domains from DT. Special cases, like PM domains containing CPU cores or SCUs, are handled by scanning the DT topology. The SYSCIER register value is derived from the PM domains found in DT, which will allow to get rid of the hardcoded values in pm-rcar-gen2.c. However, this m

[PATCH/RFC v2 02/11] soc: renesas: Move pm-rcar to drivers/soc/renesas/

2016-02-15 Thread Geert Uytterhoeven
Move the pm-rcar driver to drivers/soc/renesas/, so it can be shared between arm32 (R-Car H1 and Gen2) and arm64 (R-Car Gen3). Signed-off-by: Geert Uytterhoeven --- v2: - New. --- arch/arm/mach-shmobile/Kconfig | 8 ++-- arch/arm/mach-shmobile/Makefile

[PATCH/RFC v2 10/11] ARM: dts: r8a7794: Add SYSC PM domains

2016-02-15 Thread Geert Uytterhoeven
Add a device node for the System Controller, with subnodes that represent the hardware power area hierarchy. Hook up the Cortex-A7 CPU cores and the Cortex-A7 L2 cache/SCU to their respective PM domains. Signed-off-by: Geert Uytterhoeven --- v2: - Change one-line summary prefix to match current

[PATCH] ARM: dts: r8a7794: replace gpio-key,wakeup with wakeup-source property

2016-02-15 Thread Simon Horman
Though the keyboard driver for GPIO buttons(gpio-keys) will continue to check for/support the legacy "gpio-key,wakeup" boolean property to enable gpio buttons as wakeup source, "wakeup-source" is the new standard binding. This patch replaces the legacy "gpio-key,wakeup" with the unified "wakeup-so

Re: [PATCH] ARM: dts: porter: fix JP3 jumper description

2016-02-15 Thread Simon Horman
On Mon, Feb 15, 2016 at 04:50:17AM +, Kuninori Morimoto wrote: > > Hi > > > When finishing the Porter sound support patch, I managed to call the JP3 > > jumper SW3 in the comment. Fix this along with (also miscalled) jumper > > positions... > > > > Fixes: 493b4da7c10c ("ARM: dts: porter: a

Re: [PATCH v2] arm64: dts: r8a7795: use GIC_* defines

2016-02-15 Thread Simon Horman
On Mon, Feb 15, 2016 at 09:21:29AM +0100, Geert Uytterhoeven wrote: > On Tue, Feb 2, 2016 at 2:31 PM, Simon Horman > wrote: > > Use GIC_* defines for GIC interrupt cells in r8a7795 device tree. > > > > Signed-off-by: Simon Horman > > Acked-by: Geert Uytterhoeven Thanks, I have queued this up.

Re: [PATCH v3 0/2] ARM: shmobile: Avoid writing to .text

2016-02-15 Thread Simon Horman
On Mon, Feb 15, 2016 at 01:20:06PM +0100, Geert Uytterhoeven wrote: > Hi Simon, Magnus, > > When CONFIG_DEBUG_RODATA=y, the kernel crashes during system suspend: > > Freezing user space processes ... (elapsed 0.004 seconds) done. > Freezing remaining freezable tasks ... (elapsed 0

Re: [PATCH/RFC v2 05/11] soc: renesas: rcar: Handle clock domain devices in SYSC PM domains

2016-02-15 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Monday 15 February 2016 22:16:54 Geert Uytterhoeven wrote: > R-Car H3 contains some hardware modules (e.g. VSP and FCP_V) that are > not only located in a power area controlled by the SYSC system > controller, but that are also part of the generic CPG/MSSR cl

Re: [PATCH/RFC v2 03/11] soc: renesas: Improve rcar_sysc_power() debug info

2016-02-15 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Monday 15 February 2016 22:16:52 Geert Uytterhoeven wrote: > Print requested power domain state. > > Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart > --- > v2: > - New. > --- > drivers/soc/renesas/pm-rcar.c | 2 +- > 1 file changed, 1

Re: [PATCH/RFC] gpio: rcar: Add Runtime PM handling for interrupts

2016-02-15 Thread Linus Walleij
On Tue, Feb 9, 2016 at 4:19 PM, Geert Uytterhoeven wrote: Quoting in verbatim as we add new recipients. I don't know about any runtime_pm_get():s from the irqchip functions: Ulf and others are discussing with Thomas Gleixner about a more general solution here. But since it's a regression I gues

Re: [PATCH/RFC v2 02/11] soc: renesas: Move pm-rcar to drivers/soc/renesas/

2016-02-15 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Monday 15 February 2016 22:16:51 Geert Uytterhoeven wrote: > Move the pm-rcar driver to drivers/soc/renesas/, so it can be shared > between arm32 (R-Car H1 and Gen2) and arm64 (R-Car Gen3). > > Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchar

Re: [PATCH 1/2] pinctrl: sh-pfc: r8a7794: add SSI pin groups

2016-02-15 Thread Linus Walleij
On Wed, Feb 10, 2016 at 11:38 PM, Sergei Shtylyov wrote: > From: Ryo Kataoka > > Add the SSI pin groups to the R8A7794 PFC driver. > > [Sergei: fixed inconsistent alternate pin group naming, split SSI5/6 pin > groups into data/control ones, moved SSI7 data B group to its proper place, > fixed p

Re: [PATCH/RFC v2 04/11] soc: renesas: rcar: Add DT support for SYSC PM domains

2016-02-15 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Monday 15 February 2016 22:16:53 Geert Uytterhoeven wrote: > Populate the SYSC PM domains from DT. > > Special cases, like PM domains containing CPU cores or SCUs, are > handled by scanning the DT topology. > > The SYSCIER register value is derived from the

Re: [PATCH/RFC v2 01/11] PM / Domains: Add DT bindings for the R-Car System Controller

2016-02-15 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Monday 15 February 2016 22:16:50 Geert Uytterhoeven wrote: > The Renesas R-Car System Controller provides power management for the > CPU cores and various coprocessors, following the generic PM domain > bindings in Documentation/devicetree/bindings/power/powe

Re: [PATCH] clk: shmobile: cpg-mssr: Update serial port clock in example

2016-02-15 Thread Michael Turquette
Quoting Geert Uytterhoeven (2016-02-15 04:39:37) > Cfr. commit a9ec81f4ed5c05db ("serial: sh-sci: Drop the interface > clock"). > > Signed-off-by: Geert Uytterhoeven > --- > I plan to queue this up with the other clk-shmobile patches in > clk-shmobile-for-v4.6 and send a pull request later. Ack.

Re: [PATCH/RFC v2 01/11] PM / Domains: Add DT bindings for the R-Car System Controller

2016-02-15 Thread Laurent Pinchart
On Tuesday 16 February 2016 01:08:18 Laurent Pinchart wrote: > On Monday 15 February 2016 22:16:50 Geert Uytterhoeven wrote: > > The Renesas R-Car System Controller provides power management for the > > CPU cores and various coprocessors, following the generic PM domain > > bindings in Documentatio

Re: [PATCH 1/2] ravb: kill useless *switch* defaults

2016-02-15 Thread Simon Horman
On Sun, Feb 14, 2016 at 10:56:03PM +0300, Sergei Shtylyov wrote: > The driver has the *default* case doing nothing in the *switch* statement > with an integer expression -- remove it. > > Signed-off-by: Sergei Shtylyov Reviewed-by: Simon Horman

Re: [PATCH 2/2] sh_eth: kill useless *switch* defaults

2016-02-15 Thread Simon Horman
On Sun, Feb 14, 2016 at 10:56:33PM +0300, Sergei Shtylyov wrote: > The driver often has the *default* cases doing nothing in the *switch* > statements with the integer expressions -- remove them. > > Signed-off-by: Sergei Shtylyov Reviewed-by: Simon Horman

Re: [PATCH] ravb: Update DT binding example for final CPG/MSSR bindings

2016-02-15 Thread Simon Horman
On Mon, Feb 15, 2016 at 01:41:31PM +0100, Geert Uytterhoeven wrote: > The example in the DT binding documentation uses the preliminary DT > bindings for the r8a7795 MSTP clocks, which never went upstream. > Update the example to use the DT bindings for the upstream Clock Pulse > Generator / Module

Re: [PATCH 0/4][RESEND] thermal: rcar: use thermal-zone on DT

2016-02-15 Thread Simon Horman
On Wed, Feb 10, 2016 at 12:34:13AM +, Kuninori Morimoto wrote: > > Hi Eduardo, Simon > > > > > Hi Eduardo > > > > > > > > I'm sorry I didn't mention you. > > > > Can you please check these patches ? > > > > > > Yes Morimoto, they are now on my todo list. > > > > > > Applied first one. >

[PATCH 00/02] arm64: r8a7795 INTC-EX support using RENESAS_IRQC

2016-02-15 Thread Magnus Damm
arm64: r8a7795 INTC-EX support using RENESAS_IRQC [PATCH 01/02] arm64: dts: r8a7795: Add INTC-EX device node [PATCH 02/02] arm64: renesas: Enable RENESAS_IRQC These two patches add the INTC-EX device node to the r8a7795 DTSI file and selects RENESAS_IRQC to enable the irqchip driver. Those two to

[PATCH 01/02] arm64: dts: r8a7795: Add INTC-EX device node

2016-02-15 Thread Magnus Damm
From: Magnus Damm Add a single r8a7795 INTC-EX device node to support external IRQ pins IRQ0 -> IRQ5. Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 15 +++ 1 file changed, 15 insertions(+) --- 0001/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ work/ar

[PATCH 02/02] arm64: renesas: Enable RENESAS_IRQC

2016-02-15 Thread Magnus Damm
From: Magnus Damm Select RENESAS_IRQC for Arm64 SoCs from Renesas to enable build of drivers/irqchip/irq-renesas-irqc.c. Signed-off-by: Magnus Damm --- arch/arm64/Kconfig.platforms |1 + 1 file changed, 1 insertion(+) --- 0001/arch/arm64/Kconfig.platforms +++ work/arch/arm64/Kconfig.plat

[PATCH/RFC] arm64: dts: r8a7795: Salvator-X INTC-EX IRQ2 test prototype

2016-02-15 Thread Magnus Damm
From: Magnus Damm This patch is a prototype hack that can be used to test INTC-EX using the IRQ2 signal on r8a7795 Salvator-X with a loop back adapter. The external loop back adapter is connected to EXIO_D and connects pin 9 (IRQ2/GP2_02) and pin 26 (ExA22/GP2_06). To test enable CONFIG_GPIO_SY

[PATCH] usb: host: xhci-plat: fix cannot work if R-Car Gen2/3 run on above 4GB phys

2016-02-15 Thread Yoshihiro Shimoda
On xHCI controllers of R-Car Gen2 and Gen3, the AC64 bit (bit 0) of HCCPARAMS1 is set to 1. However, these SoCs don't support 64-bit address memory pointers. So, this driver should call dma_set_coherent_mask(dev, DMA_BIT_MASK(32)) in xhci_gen_setup(). Otherwise, the xHCI controller will be died aft

ravb: Possible Regression In "net: phy: Avoid polling PHY with PHY_IGNORE_INTERRUPTS"

2016-02-15 Thread Simon Horman
Hi Florian, I have observed what appears to be a regression in the ravb ethernet driver caused by d5c3d84657db ("net: phy: Avoid polling PHY with PHY_IGNORE_INTERRUPTS"). When booting net-next configured with the ARM64 defconfig on the Renesas r8a7795/salvator-x I see the following and the ravb i

Re: ravb: Possible Regression In "net: phy: Avoid polling PHY with PHY_IGNORE_INTERRUPTS"

2016-02-15 Thread Florian Fainelli
On February 15, 2016 7:26:46 PM PST, Simon Horman wrote: >Hi Florian, > >I have observed what appears to be a regression in the ravb ethernet >driver >caused by d5c3d84657db ("net: phy: Avoid polling PHY with >PHY_IGNORE_INTERRUPTS"). > >When booting net-next configured with the ARM64 defconfig on

Re: ravb: Possible Regression In "net: phy: Avoid polling PHY with PHY_IGNORE_INTERRUPTS"

2016-02-15 Thread Simon Horman
Hi Florian, On Mon, Feb 15, 2016 at 09:08:46PM -0800, Florian Fainelli wrote: > On February 15, 2016 7:26:46 PM PST, Simon Horman wrote: > >Hi Florian, > > > >I have observed what appears to be a regression in the ravb ethernet > >driver > >caused by d5c3d84657db ("net: phy: Avoid polling PHY wit

Re: [PATCH] ARM: dts: r8a7794: replace gpio-key,wakeup with wakeup-source property

2016-02-15 Thread Geert Uytterhoeven
On Mon, Feb 15, 2016 at 10:48 PM, Simon Horman wrote: > Though the keyboard driver for GPIO buttons(gpio-keys) will continue to > check for/support the legacy "gpio-key,wakeup" boolean property to > enable gpio buttons as wakeup source, "wakeup-source" is the new > standard binding. > > This patch

Re: [PATCH v3 6/7] arm64: dts: r8a7795: Add missing properties to CA57 L2 cache node

2016-02-15 Thread Dirk Behme
On 15.02.2016 21:38, Geert Uytterhoeven wrote: Add the missing "cache-unified" and "cache-level" properties to the Cortex-A57 cache-controller node. Signed-off-by: Geert Uytterhoeven --- v3: - Remaining part of "[PATCH v2 6/6] arm64: renesas: r8a7795: Add L2 cache-controller nodes", aft

Re: [PATCH v3 7/7] arm64: dts: r8a7795: Add CA53 L2 cache-controller node

2016-02-15 Thread Dirk Behme
On 15.02.2016 21:38, Geert Uytterhoeven wrote: Add a device node for the Cortex-A53 L2 cache-controller. The L2 cache for the Cortex-A53 CPU cores is 512 KiB large (organized as 32 KiB x 16 ways). Signed-off-by: Geert Uytterhoeven --- v3: - Remaining part of "[PATCH v2 6/6] arm64: renesas:

Re: [PATCH v3 7/7] arm64: dts: r8a7795: Add CA53 L2 cache-controller node

2016-02-15 Thread Geert Uytterhoeven
Hi Dirk, On Tue, Feb 16, 2016 at 7:44 AM, Dirk Behme wrote: > On 15.02.2016 21:38, Geert Uytterhoeven wrote: >> Add a device node for the Cortex-A53 L2 cache-controller. >> >> The L2 cache for the Cortex-A53 CPU cores is 512 KiB large (organized as >> 32 KiB x 16 ways). >> >> Signed-off-by: Geert

[PATCH v3 04/06] devicetree: bindings: Deprecate property, update example

2016-02-15 Thread Magnus Damm
From: Magnus Damm Deprecate "renesas,channels-mask" and update the r8a7790 CMT example. Signed-off-by: Magnus Damm Acked-by: Geert Uytterhoeven Acked-by: Laurent Pinchart Acked-by: Rob Herring --- Changes since V2: - Added Acked-by from Rob - Removed Tested-by tag from DT binding patch -

[PATCH v3 00/06] clocksource: sh_cmt: DT binding rework V3

2016-02-15 Thread Magnus Damm
clocksource: sh_cmt: DT binding rework V3 [PATCH v3 01/06] devicetree: bindings: Remove sh7372 CMT binding [PATCH v3 02/06] devicetree: bindings: R-Car Gen2 CMT0 and CMT1 bindings [PATCH v3 03/06] devicetree: bindings: r8a73a4 and R-Car Gen2 CMT bindings [PATCH v3 04/06] devicetree: bindings: Depr

[PATCH v3 02/06] devicetree: bindings: R-Car Gen2 CMT0 and CMT1 bindings

2016-02-15 Thread Magnus Damm
From: Magnus Damm Add documentation for new separate CMT0 and CMT1 DT compatible strings for R-Car Gen2. These compat strings allow us to enable CMT1-specific features in the driver. The old compat strings will be deprecated in the not so distant future. Signed-off-by: Magnus Damm Acked-by: Gee

  1   2   >