[PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support

2018-09-05 Thread Sergei Shtylyov
Add support for the R-Car gen3 CMT0 and CMT1 bindings -- they seem to be the same CMT0 and CMT1 as in R-Car gen2 SoCs. Also document R8A779{7|8} bindings as these are the R-Car gen3 SoCs for which the initial support was done. Signed-off-by: Sergei Shtylyov ---

[PATCH 1/2] clocksource: sh_cmt: properly line-wrap sh_cmt_of_table[] initializer

2018-09-05 Thread Sergei Shtylyov
There's no good reason for the sh_cmt_of_table[] initializer to violate the 80-column limit, especially after the commit 8d50e9476bb4 ("clocksource/drivers/sh_cmt: Mark "renesas,cmt-48-gen2" deprecated") partially fixed it -- fix the R-Car gen2 related entries as well. Signed-off-by: Sergei

[PATCH 0/2] Add R-Car gen3 SoC support to the CMT driver

2018-09-05 Thread Sergei Shtylyov
Hello! Here's the set of 2 patches against the 'tip.git' repo's 'timers/core' branch plus the driver fixup for the 64-bit machines posted recently. We're adding support for the CMT0 and CMT1 found in the R-Car gen3 SoCs. [1/2] clocksource: sh_cmt: properly line-wrap sh_cmt_of_table[] initializer

[PATCH] watchdog: rza_wdt: Extend clock sources for RZ/A2

2018-09-05 Thread Chris Brandt
The RZ/A2 watchdog timer extends the clock source options in order to give you longer timeout options. Signed-off-by: Chris Brandt --- drivers/watchdog/rza_wdt.c | 75 -- 1 file changed, 59 insertions(+), 16 deletions(-) diff --git

[PATCH] clk: renesas: r8a77970: add CMT clocks

2018-09-05 Thread Sergei Shtylyov
Add the R8A77970 CMT module clocks. Based on the original (and large) patch by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- drivers/clk/renesas/r8a77970-cpg-mssr.c |4 1 file changed, 4 insertions(+) Index:

Re: [PATCH v2 7/8] arm64: dts: r8a77990: Add I2C device nodes

2018-09-05 Thread Laurent Pinchart
Hi Jacopo, Thank you for the patch. On Wednesday, 5 September 2018 18:29:44 EEST Jacopo Mondi wrote: > From: Takeshi Kihara > > Add device nodes for I2C ch[0-7] to R-Car E3 R8A77990 device tree. > > Signed-off-by: Takeshi Kihara > Signed-off-by: Jacopo Mondi > Reviewed-by: Geert

Re: [PATCH/RFT] arm64: dts: renesas: r8a77995-draak: Add MSIOF ch2 pins support

2018-09-05 Thread Geert Uytterhoeven
Hi Kaneko-san, On Tue, Sep 4, 2018 at 10:22 PM Yoshihiro Kaneko wrote: > From: Hiromitsu Yamasaki > > This patch adds support for MSIOF ch2 pinctrl to use the LVDS Control > Connector (CN41) for the Draak board on the R8A77995 SoC. > > Signed-off-by: Hiromitsu Yamasaki > Signed-off-by: Takeshi

Re: [PATCH/RFT] arm64: dts: renesas: r8a77990: Add SYS-DMAC device nodes

2018-09-05 Thread Geert Uytterhoeven
On Tue, Sep 4, 2018 at 10:23 PM Yoshihiro Kaneko wrote: > From: Takeshi Kihara > > This patch adds SYS-DMAC{0,1,2} device nodes for the R8A77990 SoC. > > Signed-off-by: Takeshi Kihara > Signed-off-by: Yoshihiro Kaneko Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s,

Re: [RFC PATCH v3 1/4] watchdog: core: add mechanism to prevent removing if NOWAYOUT

2018-09-05 Thread Wolfram Sang
> > Is the intent of the proposed changes to prevent the unload of > > a module if it was loaded with the "nowayout" parameter? > > > > If so, I thought the WD "nowayout" semantic was only supposed to be in > > effect > > after /dev/watchdog was opened. The proposed change looks like it makes

RE: [PATCH v3] clk: renesas: cpg-mssr: Add R7S9210 support

2018-09-05 Thread Chris Brandt
Hi Geert, On Wednesday, September 05, 2018 1, Geert Uytterhoeven wrote: > > SoI guess I didn't really have an issue after all. > > You do want to: > 1. Document the two register ranges in the DT bindings, > 2. Update the driver to map both ranges on RZ/A2. The driver does not need to be

[PATCH v2 8/8] arm64: dts: renesas: ebisu: Add HDMI and CVBS input

2018-09-05 Thread Jacopo Mondi
Add HDMI and CVBS inputs device nodes to R-Car E3 Ebisu board. Both HDMI and CVBS inputs are connected to an ADV7482 video decoder hooked to the SoC CSI-2 receiver port. Signed-off-by: Jacopo Mondi --- arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts | 86 ++ 1 file

[PATCH v2 2/8] media: rcar-vin: Add support for R-Car R8A77990

2018-09-05 Thread Jacopo Mondi
Add R-Car E3 R8A77990 SoC to the rcar-vin supported ones. Based on the experimental patch from Magnus Damm. Signed-off-by: Jacopo Mondi --- drivers/media/platform/rcar-vin/rcar-core.c | 20 1 file changed, 20 insertions(+) diff --git

[PATCH/RFT v2 0/8] arm64: dts: renesas: Ebisu: Add HDMI and CVBS input

2018-09-05 Thread Jacopo Mondi
Hello renesas list, this series add supports for the HDMI and CVBS input to R-Car E3 R8A77990 Ebisu board. It's an RFT, as I don't have an Ebisu to test with :( The series adds supports for the following items: - PFC: add VIN groups and functions - R-Car VIN and R-Car CSI-2: add support for

[PATCH v2 6/8] arm64: dts: r8a77990: Add VIN and CSI-2 device nodes

2018-09-05 Thread Jacopo Mondi
From: Koji Matsuoka Add device nodes for VIN4, VIN5 and CSI40 to R-Car E3 R8A77990 device tree. Signed-off-by: Koji Matsuoka Signed-off-by: Takeshi Kihara Signed-off-by: Jacopo Mondi --- arch/arm64/boot/dts/renesas/r8a77990.dtsi | 79 +++ 1 file changed, 79

[PATCH v2 1/8] media: dt-bindings: rcar-vin: Add R8A77990 support

2018-09-05 Thread Jacopo Mondi
Add compatible string for R-Car E3 R8A77990 to the list of SoCs supported by rcar-vin driver. Signed-off-by: Jacopo Mondi Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/media/rcar_vin.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 5/8] pinctrl: sh-pfc: r8a77990: Add VIN pins, groups and functions

2018-09-05 Thread Jacopo Mondi
This patch adds VIN{4,5} pins, groups and functions to the R8A77990 SoC. Signed-off-by: Jacopo Mondi --- drivers/pinctrl/sh-pfc/pfc-r8a77990.c | 250 ++ 1 file changed, 250 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77990.c

[PATCH v2 7/8] arm64: dts: r8a77990: Add I2C device nodes

2018-09-05 Thread Jacopo Mondi
From: Takeshi Kihara Add device nodes for I2C ch[0-7] to R-Car E3 R8A77990 device tree. Signed-off-by: Takeshi Kihara Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Tested-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a77990.dtsi | 123 ++

[PATCH v2 4/8] media: rcar-csi2: Add R8A77990 support

2018-09-05 Thread Jacopo Mondi
Add support for R-Car E3 R8A77965 to R-Car CSI-2 driver. Based on the experimental patch from Magnus Damm. Signed-off-by: Jacopo Mondi --- drivers/media/platform/rcar-vin/rcar-csi2.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/media/platform/rcar-vin/rcar-csi2.c

[PATCH v2 3/8] media: dt-bindings: rcar-csi2: Add R8A77990

2018-09-05 Thread Jacopo Mondi
Add compatible string for R-Car E3 R8A77990 to the list of supported SoCs. Signed-off-by: Jacopo Mondi Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/media/renesas,rcar-csi2.txt | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH v3] clk: renesas: cpg-mssr: Add R7S9210 support

2018-09-05 Thread Geert Uytterhoeven
Hi Chris, On Wed, Sep 5, 2018 at 5:02 PM Chris Brandt wrote: > On Wednesday, September 05, 2018 1, Geert Uytterhoeven wrote: > > > So, I think I need to rework this driver to add the ability to add > > > multiple address regions. > > > > Your main driver for this block (clock?) can register the

RE: [PATCH v3] clk: renesas: cpg-mssr: Add R7S9210 support

2018-09-05 Thread Chris Brandt
Hi Geert, On Wednesday, September 05, 2018 1, Geert Uytterhoeven wrote: > > So, I think I need to rework this driver to add the ability to add > > multiple address regions. > > Your main driver for this block (clock?) can register the watchdog. > Either directly with the watchdog subsystem, or

Re: [PATCH/RFT] pinctrl: sh-pfc: r8a77995: Add MSIOF pins, groups and functions

2018-09-05 Thread Geert Uytterhoeven
Hi Kaneko-san, On Tue, Sep 4, 2018 at 10:22 PM Yoshihiro Kaneko wrote: > From: Takeshi Kihara > > This patch adds MSIOF{0,1,2,3} pins, groups and functions to R8A77995 SoC. > > Signed-off-by: Takeshi Kihara > Signed-off-by: Yoshihiro Kaneko Thanks for your patch! > This patch is based on

RE: [PATCH v3] clk: renesas: cpg-mssr: Add R7S9210 support

2018-09-05 Thread Chris Brandt
Hi Geert, On Wednesday, August 29, 2018, Chris Brandt wrote: > > Add support for the R7S9210 (RZ/A2) Clock Pulse Generator and Module > Standby. I ran into an issue with this driver. The issue is that the registers needed for this driver are scattered throughout the address space. I can't

Re: [RFC PATCH v3 1/4] watchdog: core: add mechanism to prevent removing if NOWAYOUT

2018-09-05 Thread Geert Uytterhoeven
Hi Jerry, On Wed, Aug 29, 2018 at 10:55 PM Jerry Hoemann wrote: > On Wed, Aug 29, 2018 at 09:42:38AM +0200, Wolfram Sang wrote: > > To prevent removing if NOWAYOUT, we invalidate the .remove function and > > suppress the bind/unbind attributes in sysfs. These are driver > > capabilities, so we

Re: [PATCH 1/5] arm64: dts: r8a7795: Add cpuidle support for CA57 cores

2018-09-05 Thread Geert Uytterhoeven
Hi Uli, On Fri, Aug 17, 2018 at 3:19 PM Ulrich Hecht wrote: > From: Khiem Nguyen > > Enable cpuidle (core shutdown) support for R-Car H3 CA57 cores. > > Parameters were found after evaluation by gaku.inami...@bp.renesas.com; they > help to keep the performance and reduce the power consumption.

Re: [PATCH] arm64: dts: renesas: revise properties for usb 2.0

2018-09-05 Thread Geert Uytterhoeven
Hi Shimoda-san, On Fri, Aug 31, 2018 at 10:22 AM Yoshihiro Shimoda wrote: > R-Car Gen3 needs to enable/deassert clocks/resets of both usb 2.0 > host (included phy) and peripheral. Otherwise, other side device > cannot work correctly. So, this patch revises properties of clocks > and resets.

Re: [PATCH V5] ARM: shmobile: Rework the PMIC IRQ line quirk

2018-09-05 Thread Geert Uytterhoeven
Hi Marek, On Mon, Jun 11, 2018 at 2:15 PM Marek Vasut wrote: > Rather than hard-coding the quirk topology, which stopped scaling, > parse the information from DT. The code looks for all compatible > PMICs -- da9063 and da9210 -- and checks if their IRQ line is tied > to the same pin. If so, the

Applied "spi: rspi: Fix invalid SPI use during system suspend" to the spi tree

2018-09-05 Thread Mark Brown
The patch spi: rspi: Fix invalid SPI use during system suspend has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Applied "spi: sh-msiof: Fix handling of write value for SISTR register" to the spi tree

2018-09-05 Thread Mark Brown
The patch spi: sh-msiof: Fix handling of write value for SISTR register has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "spi: sh-msiof: Fix invalid SPI use during system suspend" to the spi tree

2018-09-05 Thread Mark Brown
The patch spi: sh-msiof: Fix invalid SPI use during system suspend has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Applied "spi: rspi: Fix interrupted DMA transfers" to the spi tree

2018-09-05 Thread Mark Brown
The patch spi: rspi: Fix interrupted DMA transfers has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus

Re: [PATCH V2 RESEND] gpio: of: make example syntactically correct

2018-09-05 Thread Geert Uytterhoeven
CC LinusW On Sun, Jan 21, 2018 at 1:12 PM Wolfram Sang wrote: > > The ';' was missing. And cosmetic: there was a space too much. > > Signed-off-by: Wolfram Sang > Reviewed-by: Niklas Söderlund Reviewed-by: Geert Uytterhoeven > --- > > No changes since V2, only Niklas' tag added. > > Changes

Re: [PATCH] arm64: dts: renesas: r8a77990: Add all MSIOF nodes

2018-09-05 Thread Simon Horman
On Mon, Sep 03, 2018 at 07:30:00PM +0200, Geert Uytterhoeven wrote: > Add the device nodes for all MSIOF SPI controllers, incl. clocks, power > domains, and resets properties. > > Signed-off-by: Geert Uytterhoeven Thanks Geert, applied for v4.20.

Re: [PATCH] pinctrl: sh-pfc: r8a77990: Add MSIOF pins, groups and functions

2018-09-05 Thread Simon Horman
On Mon, Sep 03, 2018 at 07:32:30PM +0200, Geert Uytterhoeven wrote: > From: Takeshi Kihara > > This patch adds MSIOF{0,1,2,3} pins, groups and functions to > the R8A77990 SoC. > > Signed-off-by: Takeshi Kihara > Signed-off-by: Geert Uytterhoeven > --- > To be queued in sh-pfc-for-v4.20.

Re: [PATCH] arm64: dts: renesas: revise properties for usb 2.0

2018-09-05 Thread Simon Horman
On Fri, Aug 31, 2018 at 05:20:51PM +0900, Yoshihiro Shimoda wrote: > R-Car Gen3 needs to enable/deassert clocks/resets of both usb 2.0 > host (included phy) and peripheral. Otherwise, other side device > cannot work correctly. So, this patch revises properties of clocks > and resets. After that,

[PATCH 3/4] spi: rspi: Fix invalid SPI use during system suspend

2018-09-05 Thread Geert Uytterhoeven
If the SPI queue is running during system suspend, the system may lock up. Fix this by stopping/restarting the queue during system suspend/resume, by calling spi_master_suspend()/spi_master_resume() from the PM callbacks. In-kernel users will receive an -ESHUTDOWN error while system

[PATCH 0/4] spi: renesas: Miscellaneous fixes

2018-09-05 Thread Geert Uytterhoeven
Hi Mark, This series contains a set of miscellaneous fixes for Renesas MSIOF and RSPI SPI controllers: - The SPI queue must be stopped during s2idle/s2ram, - Interrupted DMA transfers must be terminated properly, - Read-only register bits must be written zero. They have been tested

[PATCH 4/4] spi: rspi: Fix interrupted DMA transfers

2018-09-05 Thread Geert Uytterhoeven
When interrupted, wait_event_interruptible_timeout() returns -ERESTARTSYS, and the SPI transfer in progress will fail, as expected: m25p80 spi0.0: SPI transfer failed: -512 spi_master spi0: failed to transfer one message from queue However, as the underlying DMA transfers may not have

[PATCH 2/4] spi: sh-msiof: Fix handling of write value for SISTR register

2018-09-05 Thread Geert Uytterhoeven
From: Hiromitsu Yamasaki This patch changes writing to the SISTR register according to the H/W user's manual. The TDREQ bit and RDREQ bits of SISTR are read-only, and must be written their initial values of zero. Signed-off-by: Hiromitsu Yamasaki [geert: reword] Signed-off-by: Geert

[PATCH 1/4] spi: sh-msiof: Fix invalid SPI use during system suspend

2018-09-05 Thread Geert Uytterhoeven
From: Gaku Inami If the SPI queue is running during system suspend, the system may lock up. Fix this by stopping/restarting the queue during system suspend/resume by calling spi_master_suspend()/spi_master_resume() from the PM callbacks. In-kernel users will receive an -ESHUTDOWN error while

Re: [PATCH/RFT] arm64: dts: renesas: r8a77990: Add all MSIOF device nodes

2018-09-05 Thread Geert Uytterhoeven
Hi Kaneko-san, On Tue, Sep 4, 2018 at 10:23 PM Yoshihiro Kaneko wrote: > From: Takeshi Kihara > > This patch adds the device nodes for all MSIOF SPI controllers to > the R8A77990 SoC. > > Signed-off-by: Takeshi Kihara > Signed-off-by: Yoshihiro Kaneko Thanks for your patch! Unfortunately