Re: [RFC v3 11/25] watchdog: renesas_wdt: Add R-Car Gen2 support

2018-01-30 Thread Guenter Roeck
On Tue, Jan 30, 2018 at 08:22:44PM +, Fabrizio Castro wrote: > On R-Car Gen2 and RZ/G1 the rwdt clock needs to be always ON, therefore > when suspending to RAM we need to explicitly disable the counting by > clearing TME from RWTCSRA. > Also, on some systems RWDT is the only piece of HW that

[RFC v3 25/25] ARM: dts: iwg22m: Add watchdog support to SoM dtsi

2018-01-30 Thread Fabrizio Castro
This patch enables the watchdog from within the iwg20m SoM dtsi. Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram Reviewed-by: Geert Uytterhoeven --- v1->v3: * no change

[RFC v3 24/25] ARM: dts: iwg20m: Add watchdog support to SoM dtsi

2018-01-30 Thread Fabrizio Castro
This patch enables the watchdog from within the iwg20m SoM dtsi. Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram Reviewed-by: Geert Uytterhoeven --- v1->v3: * no change

[RFC v3 18/25] clk: renesas: r8a7794: Add rwdt clock

2018-01-30 Thread Fabrizio Castro
Add "rwdt" clock to r8a7794_mod_clks. Also, since we may need to access the watchdog registers at any time, declare the clock as critical. Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram --- v1->v3: *

[RFC v3 23/25] ARM: dts: r8a7794: Add watchdog support to SoC dtsi

2018-01-30 Thread Fabrizio Castro
This commit adds watchdog support to the r8a7794 dtsi. Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram Reviewed-by: Geert Uytterhoeven --- v1->v3: * rwdt moved before

[RFC v3 19/25] ARM: dts: r8a7743: Add watchdog support to SoC dtsi

2018-01-30 Thread Fabrizio Castro
This patch adds watchdog support to the r8a7743 SoC dtsi. Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram Reviewed-by: Geert Uytterhoeven --- v1->v3: * no change

[RFC v3 22/25] ARM: dts: r8a7791: Add watchdog support to SoC dtsi

2018-01-30 Thread Fabrizio Castro
This commit adds watchdog support to the r8a7791 dtsi. Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram Reviewed-by: Geert Uytterhoeven --- v1->v3: * rwdt moved before

[RFC v3 16/25] clk: renesas: r8a7790: Add rwdt clock

2018-01-30 Thread Fabrizio Castro
Add "rwdt" clock to r8a7790_mod_clks. Also, since we may need to access the watchdog registers at any time, declare the clock as critical. Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram --- v1->v3: *

[RFC v3 17/25] clk: renesas: r8a7791/r8a7793: Add rwdt clock

2018-01-30 Thread Fabrizio Castro
Add "rwdt" clock to r8a7791_mod_clks. Also, since we may need to access the watchdog registers at any time, declare the clock as critical. Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram --- v1->v3: *

[RFC v3 20/25] ARM: dts: r8a7745: Add watchdog support to SoC dtsi

2018-01-30 Thread Fabrizio Castro
This patch adds watchdog support to the r8a7745 SoC dtsi. Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram Reviewed-by: Geert Uytterhoeven --- v1->v3: * no change

[RFC v3 15/25] clk: renesas: r8a7745: Add rwdt clock

2018-01-30 Thread Fabrizio Castro
Add "rwdt" clock to r8a7745_mod_clks. Also, since we may need to access the watchdog registers at any time, declare the clock as critical. Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram --- v1->v3: *

[RFC v3 13/25] ARM: shmobile: defconfig: Enable CONFIG_RENESAS_WDT

2018-01-30 Thread Fabrizio Castro
R-Car Gen2 and RZ/G1 platforms come with a watchdog IP, therefore enable its driver by default. Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram --- v1->v3: * CONFIG_RENESAS_WDT_GEN2 ->

[RFC v3 14/25] clk: renesas: r8a7743: Add rwdt clock

2018-01-30 Thread Fabrizio Castro
Add "rwdt" clock to r8a7743_mod_clks. Also, since we may need to access the watchdog registers at any time, declare the clock as critical. Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram --- v1->v3: *

[RFC v3 12/25] ARM: shmobile: rcar-gen2: Add watchdog support

2018-01-30 Thread Fabrizio Castro
This patch adds watchdog support by installing shmobile_boot_vector_gen2 to ICRAM1 when enough memory is available, in which case we also keep a copy of MPIDR to complete the reset vector logic. Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram

[RFC v3 10/25] dt-bindings: watchdog: renesas-wdt: Add R-Car Gen2 support

2018-01-30 Thread Fabrizio Castro
This commit documents the compatibility with R-Car Gen2 and RZ/G devices by defining the generic compatible string "renesas,rcar-gen2-wdt". Also, this patch expands the list of SoC-specific compatible strings to include RZ/G and R-Car Gen2 devices. Signed-off-by: Fabrizio Castro

[RFC v3 11/25] watchdog: renesas_wdt: Add R-Car Gen2 support

2018-01-30 Thread Fabrizio Castro
On R-Car Gen2 and RZ/G1 the rwdt clock needs to be always ON, therefore when suspending to RAM we need to explicitly disable the counting by clearing TME from RWTCSRA. Also, on some systems RWDT is the only piece of HW that allows the SoC to be restarted, therefore this patch implements the

[RFC v3 09/25] soc: renesas: rcar-rst: Enable watchdog as reset trigger for Gen2

2018-01-30 Thread Fabrizio Castro
This patch allows for platform specific quirks as some of the SoC need further customization for the watchdog to work properly, like for R-Car Gen2 and for RZ/G. Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram

[RFC v3 05/25] ARM: dts: r8a7791: Adjust SMP routine size

2018-01-30 Thread Fabrizio Castro
This patch adjusts the definition of the SMP routine size according to the latest changes made by commit: "ARM: shmobile: Add watchdog support" Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram ---

[RFC v3 08/25] ARM: dts: r8a7794: Adjust SMP routine size

2018-01-30 Thread Fabrizio Castro
This patch adjusts the definition of the SMP routine size according to the latest changes made by commit: "ARM: shmobile: Add watchdog support" Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram ---

[RFC v3 07/25] ARM: dts: r8a7793: Adjust SMP routine size

2018-01-30 Thread Fabrizio Castro
This patch adjusts the definition of the SMP routine size according to the latest changes made by commit: "ARM: shmobile: Add watchdog support" Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram ---

[RFC v3 04/25] ARM: dts: r8a7790: Adjust SMP routine size

2018-01-30 Thread Fabrizio Castro
This patch adjusts the definition of the SMP routine size according to the latest changes made by commit: "ARM: shmobile: Add watchdog support" Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram ---

[RFC v3 06/25] ARM: dts: r8a7792: Adjust SMP routine size

2018-01-30 Thread Fabrizio Castro
This patch adjusts the definition of the SMP routine size according to the latest changes made by commit: "ARM: shmobile: Add watchdog support" Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram ---

[RFC v3 03/25] ARM: dts: r8a7745: Adjust SMP routine size

2018-01-30 Thread Fabrizio Castro
This patch adjusts the definition of the SMP routine size according to the latest changes made by commit: "ARM: shmobile: Add watchdog support" Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram ---

[RFC v3 02/25] ARM: dts: r8a7743: Adjust SMP routine size

2018-01-30 Thread Fabrizio Castro
This patch adjusts the definition of the SMP routine size according to the latest changes made by commit: "ARM: shmobile: Add watchdog support" Signed-off-by: Fabrizio Castro Signed-off-by: Ramesh Shanmugasundaram ---

[RFC v3 01/25] ARM: shmobile: Add watchdog support

2018-01-30 Thread Fabrizio Castro
On R-Car Gen2 and RZ/G1 platforms, we use the SBAR registers to make non boot CPUs run a routine designed to bring up SMP and deal with hot plug. The value contained in the SBAR registers is not initialized by a WDT triggered reset, which means that after a WDT triggered reset we jump to the SMP

[RFC v3 00/25] Fix watchdog on Renesas R-Car Gen2 and RZ/G1

2018-01-30 Thread Fabrizio Castro
Dear All, while trying to add watchdog support to RZ/G1M and RZ/G1E I discovered that it couldn't work out of the box. R-Car Gen2 and RZ/G1 are very similar from a design perspective, and therefore the same problem is observable on R-Car Gen2 too. To deal with SMP on R-Car Gen2 and RZ/G1, we

Re: [PATCH v2 0/9] ARM: dts: gen2: add IP core switcher for all busses

2018-01-30 Thread Simon Horman
On Tue, Jan 30, 2018 at 11:51:37AM +0100, Wolfram Sang wrote: > On Sun, Dec 31, 2017 at 12:23:11PM +0100, Wolfram Sang wrote: > > Here is the updated series to add the I2C IP core switcher to all busses of > > Gen2 boards where some kind of switching is possible (mostly to/from GPIO). > > > >

[PATCH] mmc: MMC_SDHI_{SYS,INTERNAL}_DMAC should depend on HAS_DMA

2018-01-30 Thread Geert Uytterhoeven
If NO_DMA=y: ERROR: "bad_dma_ops" [drivers/mmc/host/renesas_sdhi_sys_dmac.ko] undefined! ERROR: "bad_dma_ops" [drivers/mmc/host/renesas_sdhi_internal_dmac.ko] undefined! Add dependencies on HAS_DMA to fix this. Fixes: e578afab6e5f57e7 ("mmc: renesas_sdhi: remove wrong depends on to

renesas-drivers-2018-01-30-v4.15

2018-01-30 Thread Geert Uytterhoeven
I have pushed renesas-drivers-2018-01-30-v4.15 to https://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git This tree is meant to ease development of platform support and drivers for Renesas ARM SoCs. It is created by merging (a) the for-next branches of various subsystem trees and

Re: [PATCH v2 0/9] ARM: dts: gen2: add IP core switcher for all busses

2018-01-30 Thread Wolfram Sang
On Sun, Dec 31, 2017 at 12:23:11PM +0100, Wolfram Sang wrote: > Here is the updated series to add the I2C IP core switcher to all busses of > Gen2 boards where some kind of switching is possible (mostly to/from GPIO). > > These patches were tested locally on Lager and Alt, and remotely on

Re: [PATCH v2 5/5] dt-bindings: at24: add bindings for Rohm BR24T01

2018-01-30 Thread Wolfram Sang
On Mon, Jan 29, 2018 at 04:45:48PM +0100, Ulrich Hecht wrote: > Both manufacturer and name variant. > > Signed-off-by: Ulrich Hecht Reviewed-by: Wolfram Sang signature.asc Description: PGP signature

Re: [PATCH v2 3/5] arm64: renesas: draak: enable I2C controller 1

2018-01-30 Thread Wolfram Sang
On Mon, Jan 29, 2018 at 04:45:46PM +0100, Ulrich Hecht wrote: > No devices to add, I2C1 has an external connector only. > > Signed-off-by: Ulrich Hecht > Reviewed-by: Geert Uytterhoeven Reviewed-by: Wolfram Sang

Re: [PATCH v2 2/5] arm64: renesas: draak: enable I2C controller 0 and EEPROM

2018-01-30 Thread Wolfram Sang
On Mon, Jan 29, 2018 at 04:45:45PM +0100, Ulrich Hecht wrote: > Enables EEPROM on I2C0 on the Draak board. > > Signed-off-by: Ulrich Hecht > Reviewed-by: Geert Uytterhoeven Reviewed-by: Wolfram Sang

Re: [PATCH v2 1/5] arm64: renesas: r8a77995: add I2C support

2018-01-30 Thread Wolfram Sang
On Mon, Jan 29, 2018 at 04:45:44PM +0100, Ulrich Hecht wrote: > Defines R-Car D3 I2C controllers 0-3. > > Signed-off-by: Ulrich Hecht > Reviewed-by: Geert Uytterhoeven Acked-by: Wolfram Sang

[PATCH v8 01/11] dt-bindings: media: Add Renesas CEU bindings

2018-01-30 Thread Jacopo Mondi
Add bindings documentation for Renesas Capture Engine Unit (CEU). Signed-off-by: Jacopo Mondi Reviewed-by: Rob Herring Reviewed-by: Laurent Pinchart Acked-by: Hans Verkuil ---

[PATCH v8 04/11] ARM: dts: r7s72100: Add Capture Engine Unit (CEU)

2018-01-30 Thread Jacopo Mondi
Add Capture Engine Unit (CEU) node to device tree. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart Acked-by: Hans Verkuil ---

[PATCH v8 00/11] Renesas Capture Engine Unit (CEU) V4L2 driver

2018-01-30 Thread Jacopo Mondi
Hello, this 8th round has two minor modifications compared to v7: - Fixed Geert's comments on RZ/A1-H/L/M in bindings documentation - Calculate the PLL divisor/multiplier to generate the proper pixel clock for ov772x in place of using static tables. Series based on top of Hans': [PATCHv2

[PATCH v8 03/11] media: platform: Add Renesas CEU driver

2018-01-30 Thread Jacopo Mondi
Add driver for Renesas Capture Engine Unit (CEU). The CEU interface supports capturing 'data' (YUV422) and 'images' (NV[12|21|16|61]). This driver aims to replace the soc_camera-based sh_mobile_ceu one. Tested with ov7670 camera sensor, providing YUYV_2X8 data on Renesas RZ platform GR-Peach.

[PATCH v8 02/11] include: media: Add Renesas CEU driver interface

2018-01-30 Thread Jacopo Mondi
Add renesas-ceu header file. Do not remove the existing sh_mobile_ceu.h one as long as the original driver does not go away. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Acked-by: Hans Verkuil

[PATCH v8 06/11] media: i2c: ov772x: Remove soc_camera dependencies

2018-01-30 Thread Jacopo Mondi
Remove soc_camera framework dependencies from ov772x sensor driver. - Handle clock and gpios - Register async subdevice - Remove soc_camera specific g/s_mbus_config operations - Change image format colorspace from JPEG to SRGB as the two use the same colorspace information but JPEG makes

[PATCH v8 05/11] media: i2c: Copy ov772x soc_camera sensor driver

2018-01-30 Thread Jacopo Mondi
Copy the soc_camera based driver in v4l2 sensor driver directory. This commit just copies the original file without modifying it. No modification to KConfig and Makefile as soc_camera framework dependencies need to be removed first in next commit. Signed-off-by: Jacopo Mondi

[PATCH v8 07/11] media: i2c: ov772x: Support frame interval handling

2018-01-30 Thread Jacopo Mondi
Add support to ov772x driver for frame intervals handling and enumeration. Tested with 10MHz and 24MHz input clock at VGA and QVGA resolutions for 10, 15 and 30 frame per second rates. Signed-off-by: Jacopo Mondi --- drivers/media/i2c/ov772x.c | 210

[PATCH v8 09/11] media: i2c: tw9910: Remove soc_camera dependencies

2018-01-30 Thread Jacopo Mondi
Remove soc_camera framework dependencies from tw9910 sensor driver. - Handle clock and gpios - Register async subdevice - Remove soc_camera specific g/s_mbus_config operations - Add kernel doc to driver interface header file - Adjust build system This commit does not remove the original

[PATCH v8 08/11] media: i2c: Copy tw9910 soc_camera sensor driver

2018-01-30 Thread Jacopo Mondi
Copy the soc_camera based driver in v4l2 sensor driver directory. This commit just copies the original file without modifying it. No modification to KConfig and Makefile as soc_camera framework dependencies need to be removed first in next commit. Signed-off-by: Jacopo Mondi

[PATCH v8 10/11] arch: sh: migor: Use new renesas-ceu camera driver

2018-01-30 Thread Jacopo Mondi
Migo-R platform uses sh_mobile_ceu camera driver, which is now being replaced by a proper V4L2 camera driver named 'renesas-ceu'. Move Migo-R platform to use the v4l2 renesas-ceu camera driver interface and get rid of soc_camera defined components used to register sensor drivers and of platform

Re: [PATCH 2/2] ARM: dts: r8a7745: Add VSP support

2018-01-30 Thread Simon Horman
On Wed, Jan 24, 2018 at 04:11:52PM +, Biju Das wrote: > Add VSP support to SoC DT. > > Signed-off-by: Biju Das > Reviewed-by: Chris Paterson Thanks, applied manually - there was some fuzz, most likely due to recent sorting of the nodes

Re: [PATCH 1/2] ARM: dts: r8a7743: Add VSP support

2018-01-30 Thread Simon Horman
On Wed, Jan 24, 2018 at 04:11:51PM +, Biju Das wrote: > Add VSP support to SoC DT. > > Signed-off-by: Biju Das > Reviewed-by: Chris Paterson Thanks, applied.

Re: [PATCH v7 07/11] media: i2c: ov772x: Support frame interval handling

2018-01-30 Thread jacopo mondi
Hi Laurent, On Mon, Jan 29, 2018 at 01:01:01PM +0200, Laurent Pinchart wrote: > Hi Jacopo, > > Thank you for the patch. > > On Friday, 26 January 2018 15:55:26 EET Jacopo Mondi wrote: > > Add support to ov772x driver for frame intervals handling and enumeration. > > Tested with 10MHz and 24MHz

Re: [PATCH 3/3] ARM: dts: r8a7745: Add IPMMU DT nodes

2018-01-30 Thread Simon Horman
On Wed, Jan 24, 2018 at 03:42:02PM +, Biju Das wrote: > Add the six IPMMU instances found in the r8a7745 to DT with a disabled > status. > > Signed-off-by: Biju Das > Reviewed-by: Chris Paterson Thanks, I have applied this after moving

Re: [PATCH 1/3] dt-bindings: iommu: ipmmu-vmsa: Add device tree support for r8a774[35]

2018-01-30 Thread Simon Horman
On Wed, Jan 24, 2018 at 03:42:00PM +, Biju Das wrote: > Document r8a774[35] specific compatible strings. The Renesas RZ/G1[ME] > (r8a774[35]) IPMMU are identical to the R-Car Gen2 family. > > Signed-off-by: Biju Das > Reviewed-by: Chris Paterson

Re: [PATCH v2 0/5] R-Car D3 (r8a77995) I2C integration

2018-01-30 Thread Simon Horman
On Mon, Jan 29, 2018 at 04:45:43PM +0100, Ulrich Hecht wrote: > Hi! > > This adds I2C controllers to the D3 device tree and enables I2C busses 0 > and 1 on the Draak board. (I2C2 is not connected on that board.) > > This revision addresses Geert's review comments and adds Reviewed-Bys. > See

Re: [PATCH v2 4/5] i2c: rcar: document R8A77995 bindings

2018-01-30 Thread Simon Horman
On Mon, Jan 29, 2018 at 04:45:47PM +0100, Ulrich Hecht wrote: > R-Car D3 (R8A77995) SoC has a R-Car Gen3-compatible I2C controller. > > Signed-off-by: Ulrich Hecht > Reviewed-by: Geert Uytterhoeven Reviewed-by: Simon Horman