[PATCH 3/5] media: i2c: mt9t112: Fix code style issues

2018-03-02 Thread Jacopo Mondi
Fix code style issues reported by checkpatch run with --strict options. Also fix other non reported style issues manually. Signed-off-by: Jacopo Mondi --- drivers/media/i2c/mt9t112.c | 256 1 file changed, 118

[PATCH 1/5] media: i2c: Copy mt9t112 soc_camera sensor driver

2018-03-02 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 0/5] Renesas CEU: SH7724 ECOVEC + Aptina mt9t112

2018-03-02 Thread Jacopo Mondi
Hello, now that CEU has been picked up for inclusion in v4.17, we can start moving users of old sh_mobile_ceu_camera driver to use the newly introduced one. Migo-R has been first, now it's SH7724 ECOVEC board turn. ECOVEC has a camera board with two MT9T112 image sensor and one TW9910 video

[PATCH 4/5] arch: sh: ecovec: Use new renesas-ceu camera driver

2018-03-02 Thread Jacopo Mondi
SH4 7724 Ecovec platform uses sh_mobile_ceu camera driver, which is now being replaced by a proper V4L2 camera driver named 'renesas-ceu'. Get rid of soc_camera defined components used to register sensor drivers and of platform specific enable/disable routines. Register GPIOs for sensor drivers

[PATCH 2/5] media: i2c: mt9t112: Remove soc_camera dependencies

2018-03-02 Thread Jacopo Mondi
Remove soc_camera framework dependencies from mt9t112 sensor driver. - Handle clk, gpios and power routines - Register async subdev - Remove deprecated g/s_mbus_config operations - Remove driver flags - Change driver interface and add kernel doc - Adjust build system This commit does not remove

[PATCH 5/5] media: MAINTAINERS: Add entry for Aptina MT9T112

2018-03-02 Thread Jacopo Mondi
Add entry for Aptina/Micron MT9T112 camera sensor. The driver is currently orphaned. Signed-off-by: Jacopo Mondi --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 91ed6ad..1d8be25 100644 --- a/MAINTAINERS +++

Re: [PATCH 2/2] pinctrl: sh-pfc: add R8A77980 PFC support

2018-03-02 Thread Geert Uytterhoeven
Hi Sergei, On Mon, Feb 26, 2018 at 5:53 PM, Sergei Shtylyov wrote: > On 02/26/2018 03:42 PM, Geert Uytterhoeven wrote: >>> Add the PFC support for the R8A77980 SoC including pin groups for some >>> on-chip devices such as AVB, CAN-FD, GETHER, [H]SCIF, I2C,

Re: [PATCH 2/2] pinctrl: sh-pfc: add R8A77980 PFC support

2018-03-02 Thread Rob Herring
On Sun, Feb 25, 2018 at 09:14:21PM +0300, Sergei Shtylyov wrote: > Add the PFC support for the R8A77980 SoC including pin groups for some > on-chip devices such as AVB, CAN-FD, GETHER, [H]SCIF, I2C, INTC-EX, MMC, > MSIOF, PWM, and VIN... > > Based on the original (and large) patch by Vladimir

Re: [PATCH 1/2] arm: add basic support for Renesas RZ/N1 boards

2018-03-02 Thread Rob Herring
On Mon, Feb 26, 2018 at 12:18:19PM +, Michel Pollet wrote: > This adds the Renesas RZ/N1 CPU and bare bone support. > > This currently only handles generic parts (gic, architected timer) > and a UART. > This also relies on the bootloader to set the pinctrl and clocks. > > Signed-off-by:

Re: [PATCH v11 02/32] dt-bindings: media: rcar_vin: add device tree support for r8a774[35]

2018-03-02 Thread Laurent Pinchart
Hi Niklas, Thank you for the patch. On Friday, 2 March 2018 03:57:21 EET Niklas Söderlund wrote: > From: Fabrizio Castro > > Add compatible strings for r8a7743 and r8a7745. No driver change > is needed as "renesas,rcar-gen2-vin" will activate the right code. >

Re: [PATCH v11 11/32] rcar-vin: set a default field to fallback on

2018-03-02 Thread Laurent Pinchart
Hi Niklas, Thank you for the patch. On Friday, 2 March 2018 03:57:30 EET Niklas Söderlund wrote: > If the field is not supported by the driver it should not try to keep > the current field. Instead it should set it to a default fallback. Since > trying a format should always result in the same

Re: [PATCH v11 13/32] rcar-vin: update bytesperline and sizeimage calculation

2018-03-02 Thread Laurent Pinchart
Hi Niklas, Thank you for the patch. On Friday, 2 March 2018 03:57:32 EET Niklas Söderlund wrote: > Remove over complicated logic to calculate the value for bytesperline > and sizeimage that was carried over from the soc_camera port. There is > no need to find the max value of bytesperline and

Re: [PATCH v11 15/32] rcar-vin: break out format alignment and checking

2018-03-02 Thread Laurent Pinchart
Hi Niklas, Thank you for the patch. On Friday, 2 March 2018 03:57:34 EET Niklas Söderlund wrote: > Part of the format alignment and checking can be shared with the Gen3 > format handling. Break that part out to a separate function. > > Signed-off-by: Niklas Söderlund

Re: [RFC][PATCH 04/11] drm: Split the display info into static and dynamic parts

2018-03-02 Thread Linus Walleij
On Tue, Feb 27, 2018 at 1:56 PM, Ville Syrjala wrote: > From: Ville Syrjälä > > Currently we have a mix of static and dynamic information stored in > the display info structure. That makes it rather difficult to repopulate > the

Re: [PATCH v11 22/32] rcar-vin: force default colorspace for media centric mode

2018-03-02 Thread Laurent Pinchart
Hi Niklas, Thank you for the patch. On Friday, 2 March 2018 03:57:41 EET Niklas Söderlund wrote: > When the VIN driver is running in media centric mode (on Gen3) the > colorspace is not retrieved from the video source instead the user is > expected to set it as part of the format. There is no

Re: [PATCH v7 1/3] watchdog: renesas_wdt: Add suspend/resume support

2018-03-02 Thread Sergei Shtylyov
Hello! On 3/1/2018 9:17 PM, Fabrizio Castro wrote: On R-Car Gen2 and RZ/G1 the watchdog IP clock needs to be always ON, on R-Car Gen3 we power the IP down during suspend. This commit adds suspend/resume support, so that the watchdog counting "pauses" during suspend on all of the SoCs

Re: [PATCH v3 3/3] gpio: rcar: Use wakeup_path i.s.o. explicit clock handling

2018-03-02 Thread Linus Walleij
On Fri, Mar 2, 2018 at 9:20 AM, Geert Uytterhoeven wrote: > > On Thu, Mar 1, 2018 at 5:06 PM, Linus Walleij > wrote: >> On Mon, Feb 12, 2018 at 2:55 PM, Geert Uytterhoeven >> wrote: >> >>> Since commit ab82fa7da4dce5c7

Re: [PATCH v11 01/32] dt-bindings: media: rcar_vin: Reverse SoC part number list

2018-03-02 Thread Laurent Pinchart
Hi Niklas, Thank you for the patch. On Friday, 2 March 2018 03:57:20 EET Niklas Söderlund wrote: > From: Fabrizio Castro > > Change the sorting of the part numbers from descending to ascending to > match with other documentation. > > Signed-off-by: Fabrizio

Re: [PATCH 2/2] phy: rcar-gen3-usb3: Add binding for r8a77965

2018-03-02 Thread Kishon Vijay Abraham I
On Tuesday 27 February 2018 11:22 AM, Yoshihiro Shimoda wrote: > This patch adds binding for r8a77965 (R-Car M3-N). $subject should be dt-bindings: rcar-gen3-phy-usb3: Add binding for r8a77965 Thanks Kishon > > Signed-off-by: Yoshihiro Shimoda > --- >

Re: [PATCH v3 3/3] gpio: rcar: Use wakeup_path i.s.o. explicit clock handling

2018-03-02 Thread Geert Uytterhoeven
Hi Linus, On Thu, Mar 1, 2018 at 5:06 PM, Linus Walleij wrote: > On Mon, Feb 12, 2018 at 2:55 PM, Geert Uytterhoeven > wrote: > >> Since commit ab82fa7da4dce5c7 ("gpio: rcar: Prevent module clock disable >> when wake-up is enabled"), when a

Re: [PATCH 1/2] phy: rcar-gen3-usb2: Add support for r8a77965

2018-03-02 Thread Kishon Vijay Abraham I
On Tuesday 27 February 2018 11:22 AM, Yoshihiro Shimoda wrote: > This patch adds support for r8a77965 (R-Car M3-N). This SoC has > dedicated pins. > > Signed-off-by: Yoshihiro Shimoda > --- > Documentation/devicetree/bindings/phy/rcar-gen3-phy-usb2.txt | 2 ++

[PATCH v2 2/2] dt-bindings: pwm: renesas-tpu: Correct SoC part numbers and family names

2018-03-02 Thread Geert Uytterhoeven
R8A73A4 (not R8A77A4) is R-Mobile APE6, R8A7740 is R-Mobile (not R-Car) A1. Signed-off-by: Geert Uytterhoeven Acked-by: Simon Horman Reviewed-by: Rob Herring --- v2: - Add Acked-by, Reviewed-by. ---

[PATCH v2 1/2] dt-bindings: pwm: renesas-tpu: Correct example TPU register block size

2018-03-02 Thread Geert Uytterhoeven
The Timer Pulse Unit on R-Mobile A1 has registers that lie outside the declared register block. Enlarge the register block size to fix this. Signed-off-by: Geert Uytterhoeven Reviewed-by: Simon Horman Reviewed-by: Rob Herring

[PATCH v2 0/2] dt-bindings: pwm: renesas-tpu: Misc Fixes

2018-03-02 Thread Geert Uytterhoeven
Hi Thierry, Here are two small fixes for the DT bindings of the Renesas Timer Pulse Unit. Changes compared to v1: - Dropped DTS counterpart (applied), - Add Acked-by, Reviewed-by. Thanks for applying! Geert Uytterhoeven (2): dt-bindings: pwm: renesas-tpu: Correct example TPU

RE: [PATCH v7 1/3] watchdog: renesas_wdt: Add suspend/resume support

2018-03-02 Thread Fabrizio Castro
Hi Guenter, thank you for your feedback! > Subject: Re: [PATCH v7 1/3] watchdog: renesas_wdt: Add suspend/resume support > > On 03/02/2018 02:45 AM, Fabrizio Castro wrote: > > Dear All, > > > > perhaps someone from this email thread could explain to me what's the actual > > (general) expectation

[PATCH v2] dt-bindings: net: renesas-ravb: Make stream buffer optional

2018-03-02 Thread Geert Uytterhoeven
The Stream Buffer for EtherAVB-IF (STBE) is an optional component, and is not present on all SoCs. Document this in the DT bindings, including a list of SoCs that do have it. Fixes: 785ec87483d1e24a ("ravb: document R8A77970 bindings") Fixes: f231c4178a655b09 ("dt-bindings: net: renesas-ravb:

[git pull] clk: renesas: Updates for v4.17

2018-03-02 Thread Geert Uytterhoeven
Hi Mike, Stephen, The following changes since commit 7928b2cbe55b2a410a0f5c1f154610059c57b1b2: Linux 4.16-rc1 (2018-02-11 15:04:29 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git tags/clk-renesas-for-v4.17-tag1

Re: [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support

2018-03-02 Thread Sergei Shtylyov
On 3/2/2018 1:21 PM, Simon Horman wrote: Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/ DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS output (we're omitting

Re: [PATCH v11 12/32] rcar-vin: fix handling of single field frames (top, bottom and alternate fields)

2018-03-02 Thread Laurent Pinchart
Hi Niklas, Thank you for the patch. On Friday, 2 March 2018 03:57:31 EET Niklas Söderlund wrote: > There was never proper support in the VIN driver to deliver ALTERNATING > field format to user-space, remove this field option. The problem is > that ALTERNATING filed order requires the sequence

Re: [PATCH v11 17/32] rcar-vin: move media bus configuration to struct rvin_info

2018-03-02 Thread Laurent Pinchart
Hi Niklas, Thank you for the patch. On Friday, 2 March 2018 03:57:36 EET Niklas Söderlund wrote: > Bus configuration will once the driver is extended to support Gen3 > contain information not specific to only the directly connected parallel > subdevice. Move it to struct rvin_dev to show it's

Re: [PATCH v11 19/32] rcar-vin: add function to manipulate Gen3 chsel value

2018-03-02 Thread Laurent Pinchart
Hi Niklas, Thank you for the patch. On Friday, 2 March 2018 03:57:38 EET Niklas Söderlund wrote: > On Gen3 the CSI-2 routing is controlled by the VnCSI_IFMD register. One > feature of this register is that it's only present in the VIN0 and VIN4 > instances. The register in VIN0 controls the

[git pull] pinctrl: sh-pfc: Updates for v4.17

2018-03-02 Thread Geert Uytterhoeven
Hi Linus, The following changes since commit 7928b2cbe55b2a410a0f5c1f154610059c57b1b2: Linux 4.16-rc1 (2018-02-11 15:04:29 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git tags/sh-pfc-for-v4.17-tag1 for you to

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

2018-03-02 Thread Bartosz Golaszewski
2018-01-29 16:45 GMT+01:00 Ulrich Hecht : > Both manufacturer and name variant. > > Signed-off-by: Ulrich Hecht > --- > Documentation/devicetree/bindings/eeprom/at24.txt | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

Re: [PATCH v11 16/32] rcar-vin: read subdevice format for crop only when needed

2018-03-02 Thread Laurent Pinchart
Hi Niklas, Thank you for the patch. On Friday, 2 March 2018 03:57:35 EET Niklas Söderlund wrote: > Instead of caching the subdevice format each time the video device > format is set read it directly when it's needed. As it turns out the > format is only needed when figuring out the max rectangle

Re: [PATCH v2 0/5] Add R8A77970/V3MSK LVDS/HDMI support

2018-03-02 Thread Simon Horman
On Thu, Mar 01, 2018 at 06:28:29PM +0300, Sergei Shtylyov wrote: > On 03/01/2018 12:54 PM, Simon Horman wrote: > > > Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's > > 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 > > FCPVD/VSPD/ > >

RE: [PATCH v7 1/3] watchdog: renesas_wdt: Add suspend/resume support

2018-03-02 Thread Fabrizio Castro
Dear All, perhaps someone from this email thread could explain to me what's the actual (general) expectation from a system perspective (at resume) from the watchdog, because I can see pitfalls whether 1) we simply start the watchdog at resume or 2) we pick up from where we left. If we have a

Re: [PATCH v9 19/28] rcar-vin: use different v4l2 operations in media controller mode

2018-03-02 Thread Laurent Pinchart
Hi Niklas, On Friday, 19 January 2018 02:46:03 EET Niklas Söderlund wrote: > Hi Laurent, > > Thanks for your comments. > > Apart from the issue with the input API Hans pointed which indicates I > need to keep that around until it's fixed in the framework I agree with > all your comments but

Re: [PATCH v11 21/32] rcar-vin: use different v4l2 operations in media controller mode

2018-03-02 Thread Laurent Pinchart
Hi Niklas, Thank you for the patch. On Friday, 2 March 2018 03:57:40 EET Niklas Söderlund wrote: > When the driver runs in media controller mode it should not directly > control the subdevice instead userspace will be responsible for > configuring the pipeline. To be able to run in this mode a

Re: [PATCH v11 26/32] rcar-vin: add chsel information to rvin_info

2018-03-02 Thread Laurent Pinchart
Hi Niklas, Thank you for the patch. On Friday, 2 March 2018 03:57:45 EET Niklas Söderlund wrote: > Each Gen3 SoC has a limited set of predefined routing possibilities for > which CSI-2 device and channel can be routed to which VIN instance. > Prepare to store this information in the struct

Re: [PATCH v7 1/3] watchdog: renesas_wdt: Add suspend/resume support

2018-03-02 Thread Guenter Roeck
On 03/02/2018 02:45 AM, Fabrizio Castro wrote: Dear All, perhaps someone from this email thread could explain to me what's the actual (general) expectation from a system perspective (at resume) from the watchdog, because I can see pitfalls whether 1) we simply start the watchdog at resume or 2)

[PATCH] arm64: dts: renesas: r8a77965-salvator-xs: Add SoC name to file header

2018-03-02 Thread Geert Uytterhoeven
Document clearly which SoC this DTS applies to, to distinguish from Salvator-XS boards equipped with other SoCs. Signed-off-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [git pull] pinctrl: sh-pfc: Updates for v4.17

2018-03-02 Thread Linus Walleij
On Fri, Mar 2, 2018 at 11:18 AM, Geert Uytterhoeven wrote: > Hi Linus, > > The following changes since commit 7928b2cbe55b2a410a0f5c1f154610059c57b1b2: > > Linux 4.16-rc1 (2018-02-11 15:04:29 -0800) > > are available in the git repository at: > >

Re: [PATCH v11 28/32] rcar-vin: add link notify for Gen3

2018-03-02 Thread Laurent Pinchart
Hi Niklas, Thank you for the patch. On Friday, 2 March 2018 03:57:47 EET Niklas Söderlund wrote: > Add the ability to process media device link change request. Link s/request/requests/ > enabling is a bit complicated on Gen3, whether or not it's possible to > enable a link depends on what

[PATCH v2 2/2] ARM: shmobile: defconfig: Disable CONFIG_EMBEDDED

2018-03-02 Thread Geert Uytterhoeven
CONFIG_EXPERT exposes too many config options that do not matter for development. E.g. it prohibits using the default values for the various SH_SCI options. However, CONFIG_EMBEDDED selects CONFIG_EXPERT, so it cannot be disabled. Hence disable CONFIG_EMBEDDED, and compensate for the loss of

[PATCH v2 0/2] ARM: shmobile: defconfig: Disable CONFIG_EMBEDDED

2018-03-02 Thread Geert Uytterhoeven
Hi Simon, Magnus, This patch series disables CONFIG_EMBEDDED in shmobile_defconfig, which stands in the way of using more sane defaults expressed in Kconfig logic. The first patch does a mandatory refresh of shmobile_defconfig as a preparatory step/ The second patch actually disables

[PATCH v2 1/2] ARM: shmobile: defconfig: Refresh

2018-03-02 Thread Geert Uytterhoeven
- CONFIG_AEABI is enabled since commit 494609701e06a004 ("ARM: always enable AEABI for ARMv6+"), - CONFIG_SERIAL_SH_SCI_CONSOLE is enabled since commit c5bb576d5e21e91a ("tty: serial: sh-sci: Hide serial console config question"), - CONFIG_SERIAL_SH_SCI_DMA is enabled since

Re: [PATCH v7 3/4 - variant 1] drm: rcar-du: Fix legacy DT to create LVDS encoder nodes

2018-03-02 Thread Laurent Pinchart
Hi Niklas, On Friday, 2 March 2018 02:42:18 EET Niklas Söderlund wrote: > Hi Laurent, > > Thanks for your patch, > > All comments in this mail also applies to variant 2 of this patch as the > difference between them are so small. > > First I got a question about your usage of __init thru out

Re: [git pull] pinctrl: sh-pfc: Updates for v4.17

2018-03-02 Thread Geert Uytterhoeven
Hi Linus, On Fri, Mar 2, 2018 at 1:39 PM, Linus Walleij wrote: > On Fri, Mar 2, 2018 at 11:18 AM, Geert Uytterhoeven > wrote: >> The following changes since commit 7928b2cbe55b2a410a0f5c1f154610059c57b1b2: >> >> Linux 4.16-rc1 (2018-02-11