RE: [PATCH 0/4] arm64: defconfig: Enable PWM and USB for R-Car

2018-02-20 Thread Yoshihiro Shimoda
Hi Simon-san, > From: Simon Horman, Sent: Friday, February 16, 2018 3:34 AM > To: Yoshihiro Shimoda > Cc: magnus.d...@gmail.com; robh...@kernel.org; mark.rutl...@arm.com; > devicet...@vger.kernel.org; > linux-renesas-soc@vger.kernel.org > Subject: Re: [PATCH

[PATCH v2] arm64: defconfig: Enable PWM and USB for R-Car

2018-02-20 Thread Yoshihiro Shimoda
Enables PWM controller, USB-DMAC that is used by HS-USB, USB 3.0 peripheral controller and USB 3.0 PHY for R-Car SoCs. Signed-off-by: Yoshihiro Shimoda Acked-by: Geert Uytterhoeven --- Changes from v1: - Add Acked-by Geert (thanks!).

[PATCH v4 03/16] of: dynamic: Add __of_node_dupv()

2018-02-20 Thread Laurent Pinchart
From: Pantelis Antoniou Add an __of_node_dupv() private method and make __of_node_dup() use it. This is required for the subsequent changeset accessors which will make use of it. Signed-off-by: Pantelis Antoniou Signed-off-by:

[PATCH v4 02/16] dt-bindings: display: renesas: Deprecate LVDS support in the DU bindings

2018-02-20 Thread Laurent Pinchart
The internal LVDS encoders now have their own DT bindings, representing them as part of the DU is deprecated. Signed-off-by: Laurent Pinchart Reviewed-by: Rob Herring --- Changes since v1: - Remove the LVDS reg range from the example

[PATCH v4 06/16] of: unittest: changeset helpers

2018-02-20 Thread Laurent Pinchart
From: Pantelis Antoniou Add a unitest specific for the new changeset helpers. Signed-off-by: Pantelis Antoniou Signed-off-by: Laurent Pinchart --- drivers/of/unittest.c | 54

[PATCH v4 05/16] of: changeset: Add of_changeset_node_move method

2018-02-20 Thread Laurent Pinchart
From: Pantelis Antoniou Adds a changeset helper for moving a subtree to a different place in the running tree. This is useful in advances cases of dynamic device tree construction. Signed-off-by: Pantelis Antoniou Signed-off-by:

[PATCH v4 07/16] i2c: demux: Use changeset helpers for clarity

2018-02-20 Thread Laurent Pinchart
From: Pantelis Antoniou The changeset helpers are easier to use, use them instead of using the static property. Signed-off-by: Pantelis Antoniou Acked-by: Wolfram Sang ["okay" -> "ok"] Signed-off-by: Laurent

[PATCH v4 04/16] of: changesets: Introduce changeset helper methods

2018-02-20 Thread Laurent Pinchart
From: Pantelis Antoniou Changesets are very powerful, but the lack of a helper API makes using them cumbersome. Introduce a simple copy based API that makes things considerably easier. To wit, adding a property using the raw API. struct property *prop;

[PATCH v4 08/16] drm: rcar-du: Fix legacy DT to create LVDS encoder nodes

2018-02-20 Thread Laurent Pinchart
The internal LVDS encoders now have their own DT bindings. Before switching the driver infrastructure to those new bindings, implement backward-compatibility through live DT patching. Patching is disabled and will be enabled along with support for the new DT bindings in the DU driver.

[PATCH v4 09/16] drm: rcar-du: Convert LVDS encoder code to bridge driver

2018-02-20 Thread Laurent Pinchart
The LVDS encoders used to be described in DT as part of the DU. They now have their own DT node, linked to the DU using the OF graph bindings. This allows moving internal LVDS encoder support to a separate driver modelled as a DRM bridge. Backward compatibility is retained as legacy DT is patched

[PATCH v4 10/16] ARM: dts: r8a7790: Convert to new LVDS DT bindings

2018-02-20 Thread Laurent Pinchart
The internal LVDS encoder now has DT bindings separate from the DU. Port the device tree over to the new model. Signed-off-by: Laurent Pinchart --- Changes since v3: - Added power-domains and resets properties to LVDS nodes Changes since v2: - Fixed

[PATCH v4 14/16] ARM: dts: r8a7794: Convert to new DU DT bindings

2018-02-20 Thread Laurent Pinchart
The DU DT bindings have been updated to drop the reg-names property. Update the r8a7792 device tree accordingly. Signed-off-by: Laurent Pinchart --- arch/arm/boot/dts/r8a7794.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH v4 16/16] arm64: dts: renesas: r8a7796: Convert to new LVDS DT bindings

2018-02-20 Thread Laurent Pinchart
The internal LVDS encoder now has DT bindings separate from the DU. Port the device tree over to the new model. Signed-off-by: Laurent Pinchart --- Changes since v3: - Added power-domains and resets properties to LVDS nodes - Dropped bogus changes from

[PATCH v4 11/16] ARM: dts: r8a7791: Convert to new LVDS DT bindings

2018-02-20 Thread Laurent Pinchart
The internal LVDS encoder now has DT bindings separate from the DU. Port the device tree over to the new model. Signed-off-by: Laurent Pinchart --- Changes since v3: - Added power-domains and resets properties to LVDS nodes Changes since v2: - Fixed

[PATCH v4 12/16] ARM: dts: r8a7792: Convert to new DU DT bindings

2018-02-20 Thread Laurent Pinchart
The DU DT bindings have been updated to drop the reg-names property. Update the r8a7792 device tree accordingly. Signed-off-by: Laurent Pinchart --- arch/arm/boot/dts/r8a7792.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH v4 13/16] ARM: dts: r8a7793: Convert to new LVDS DT bindings

2018-02-20 Thread Laurent Pinchart
The internal LVDS encoder now has DT bindings separate from the DU. Port the device tree over to the new model. Signed-off-by: Laurent Pinchart --- Changes since v3: - Added power-domains and resets properties to LVDS nodes Changes since v2: - Fixed

[PATCH v4 15/16] arm64: dts: renesas: r8a7795: Convert to new LVDS DT bindings

2018-02-20 Thread Laurent Pinchart
The internal LVDS encoder now has DT bindings separate from the DU. Port the device tree over to the new model. Signed-off-by: Laurent Pinchart --- Changes since v3: - Added power-domains and resets properties to LVDS nodes Changes since v2: - Fixed

[PATCH v4 01/16] dt-bindings: display: renesas: Add R-Car LVDS encoder DT bindings

2018-02-20 Thread Laurent Pinchart
The Renesas R-Car Gen2 and Gen3 SoCs have internal LVDS encoders. Add corresponding device tree bindings. Signed-off-by: Laurent Pinchart Reviewed-by: Rob Herring --- Changes since v1: - Move the SoC name before the IP name in

[PATCH v4 00/16] R-Car DU: Convert LVDS code to bridge driver

2018-02-20 Thread Laurent Pinchart
Hello, This patch series addresses a design mistake that dates back from the initial DU support. Support for the LVDS encoders, which are IP cores separate from the DU, was bundled in the DU driver. Worse, both the DU and LVDS were described through a single DT node. To fix the, patches 01/16

Re: [PATCH v2 01/19] clk: renesas: cpg-mssr: Add support for R-Car M3-N

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Initial support for R-Car M3-N (r8a77965), including core and module > clocks. > > Based on Table 8.2d of "R-Car Series, 3rd Generation User's Manual: > Hardware (Rev. 0.80, Oct 31, 2017)". > > Signed-off-by: Jacopo

Re: [PATCH v2 18/19] pinctrl: sh-pfc: r8a77965: Add EtherAVB groups/functions

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Add EtherAVB groups and functions definitions for R-Car M3-N. > > Signed-off-by: Jacopo Mondi > Reviewed-by: Geert Uytterhoeven Queueing in sh-pfc-for-v4.17.

Re: [PATCH v2 13/19] pinctrl: sh-pfc: r8a77965: Add SCIFs groups/functions

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Add SCIF[0-5] groups and pin function definitions for R-Car M3-N. > > Signed-off-by: Jacopo Mondi > Reviewed-by: Geert Uytterhoeven Queueing in

Re: [PATCH v2 05/19] pinctrl: sh-pfc: Initial R-Car M3-N support

2018-02-20 Thread Geert Uytterhoeven
Hi Jacopo, On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Add initial PFC support for R-Car M3-N (r8a77965) SoC. > No groups or functions defined, just pin and registers enumeration. > > Signed-off-by: Jacopo Mondi > Reviewed-by: Rob

Re: [PATCH 3/3] pinctrl: sh-pfc: r8a7796: Add TMU pins, groups and functions

2018-02-20 Thread Geert Uytterhoeven
On Fri, Feb 16, 2018 at 3:26 PM, Ulrich Hecht wrote: > From: Takeshi Kihara > > This patch adds TMU TCLK{1,2} pins, groups and functions to > the R8A7796 SoC. > > Signed-off-by: Takeshi Kihara >

Re: [PATCH 1/3] pinctrl: sh-pfc: r8a7795: Add TMU pins, groups and functions

2018-02-20 Thread Geert Uytterhoeven
On Fri, Feb 16, 2018 at 3:26 PM, Ulrich Hecht wrote: > From: Takeshi Kihara > > This patch adds TMU TCLK{1,2} pins, groups and functions to > the R8A7795 SoC. > > Signed-off-by: Takeshi Kihara >

Re: [PATCH 2/3] pinctrl: sh-pfc: r8a7795-es1: Add TMU pins, groups and functions

2018-02-20 Thread Geert Uytterhoeven
On Fri, Feb 16, 2018 at 3:26 PM, Ulrich Hecht wrote: > From: Takeshi Kihara > > This patch adds TMU TCLK{1,2} pins, groups and functions to > the R8A7795 ES1.x SoC. > > Signed-off-by: Takeshi Kihara >

Re: [PATCH 2/3] pinctrl: sh-pfc: r8a7795-es1: Add HDMI pins, groups and functions

2018-02-20 Thread Geert Uytterhoeven
On Fri, Feb 16, 2018 at 3:25 PM, Ulrich Hecht wrote: > From: Takeshi Kihara > > This patch adds HDMI0 CEC pin, group and function to > the R8A7795 ES1.x SoC. > > Signed-off-by: Takeshi Kihara > [uli:

Re: [PATCH 3/3] pinctrl: sh-pfc: r8a7796: Add HDMI pins, groups and functions

2018-02-20 Thread Geert Uytterhoeven
On Fri, Feb 16, 2018 at 3:25 PM, Ulrich Hecht wrote: > From: Takeshi Kihara > > This patch adds HDMI0 CEC pin, group and function to the R8A7796 SoC. > > Signed-off-by: Takeshi Kihara > Signed-off-by:

Re: [PATCH 3/3] pinctrl: sh-pfc: r8a7796: Fix IPSR and MOD_SEL register pin assignment for NDFC pins group

2018-02-20 Thread Geert Uytterhoeven
On Fri, Feb 16, 2018 at 3:25 PM, Ulrich Hecht wrote: > From: Takeshi Kihara > > This patch fixes to set IPSR and MOD_SEL when using NFDATA{14,15}_A and > NF{RB,WP}_N_A pin function is selected. And renamess MOD_SEL2 bit22 value >

Re: [PATCH 2/3] pinctrl: sh-pfc: r8a7796: Fix MOD_SEL register pin assignment for SSI pins group

2018-02-20 Thread Geert Uytterhoeven
On Fri, Feb 16, 2018 at 3:25 PM, Ulrich Hecht wrote: > From: Takeshi Kihara > > This patch fixes MOD_SEL1 bit20 and MOD_SEL2 bit20, bit21 pin assignment > for SSI pins group. > > This is a correction to the incorrect implementation

Re: [PATCH 1/3] pinctrl: sh-pfc: r8a7795: Fix MOD_SEL register pin assignment for SSI pins group

2018-02-20 Thread Geert Uytterhoeven
On Fri, Feb 16, 2018 at 3:25 PM, Ulrich Hecht wrote: > From: Takeshi Kihara > > This patch fixes MOD_SEL1 bit20 and MOD_SEL2 bit20, bit21 pin assignment > for SSI pins group. > > This is a correction because MOD_SEL register

Re: [PATCH v2 12/19] dt-bindings: serial: sh-sci: Add support for r8a77965 (H)SCIF

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Add documentation for r8a77965 compatible string to Renesas sci-serial > device tree bindings documentation. > > Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven

Re: [PATCH v2 08/19] ARM64: dts: Add Renesas R8A77965 SoC support

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Basic support for the Gen 3 R-Car M3-N SoC. > > Based on original work from: > Takeshi Kihara > Magnus Damm > > Signed-off-by: Jacopo Mondi

Re: [PATCH v2 09/19] ARM64: dts: Add R-Car Salvator-x M3-N support

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Add basic support for R-Car Salvator-X M3-N (R8A77965) board. > > Based on original work from: > Takeshi Kihara > Magnus Damm > > Signed-off-by: Jacopo

Re: [PATCH v2 07/19] ARM64: Add Renesas R-Car M3-N config symbol

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Add configuration option for the R-Car M3-N (R8A77965) SoC. > > Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s,

Re: [PATCH v2 04/19] soc: renesas: rcar-sysc: Add R-Car M3-N support

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Add support for R-Car M3-N (R8A77965) power areas. > > Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven We'll sort out the remaining issues later.

Re: [PATCH v2 03/19] soc: renesas: Identify R-Car M3-N

2018-02-20 Thread Geert Uytterhoeven
Hi Jacopo, On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Add support for indentifying R-Car M3-N (R8A77965) SoC. > > Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven > ---

Re: [PATCH v2 19/19] ARM64: dts: r8a77965: Add EtherAVB device node

2018-02-20 Thread Sergei Shtylyov
On 02/20/2018 06:12 PM, Jacopo Mondi wrote: > Populate the ethernet@e680 device node to enable Ethernet interface > for R-Car M3-N (r8a77965) SoC. > > Signed-off-by: Jacopo Mondi > Reviewed-by: Geert Uytterhoeven > > --- > v1 -> v2: > -

Re: [PATCH v2 02/19] soc: renesas: rcar-rst: Add support for R-Car M3-N

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux

Re: [PATCH 4/4] pinctrl: sh-pfc: r8a77995: Add DU pins, groups and function

2018-02-20 Thread Geert Uytterhoeven
On Thu, Feb 15, 2018 at 1:38 PM, Kieran Bingham wrote: > On 15/02/18 12:01, Ulrich Hecht wrote: >> This patch adds DU pins, groups and function for the R8A77995 (D3) SoC. >> >> Signed-off-by: Ulrich Hecht > > All of your pin values

[PATCH v2 02/19] soc: renesas: rcar-rst: Add support for R-Car M3-N

2018-02-20 Thread Jacopo Mondi
Signed-off-by: Jacopo Mondi --- Documentation/devicetree/bindings/reset/renesas,rst.txt | 1 + drivers/soc/renesas/Kconfig | 4 ++-- drivers/soc/renesas/rcar-rst.c | 1 + 3 files changed, 4 insertions(+), 2

[PATCH v2 03/19] soc: renesas: Identify R-Car M3-N

2018-02-20 Thread Jacopo Mondi
Add support for indentifying R-Car M3-N (R8A77965) SoC. Signed-off-by: Jacopo Mondi --- drivers/soc/renesas/renesas-soc.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/soc/renesas/renesas-soc.c b/drivers/soc/renesas/renesas-soc.c index

[PATCH v2 04/19] soc: renesas: rcar-sysc: Add R-Car M3-N support

2018-02-20 Thread Jacopo Mondi
Add support for R-Car M3-N (R8A77965) power areas. Signed-off-by: Jacopo Mondi --- v1->v2: - Remove A2VC0 power area - Add A3VP power area --- .../bindings/power/renesas,rcar-sysc.txt | 1 + drivers/soc/renesas/Kconfig| 5 +++

[PATCH v2 06/19] dt-bindings: arm: Document R-Car M3-N SoC DT bindings

2018-02-20 Thread Jacopo Mondi
Add device tree bindings documentation for Renesas R-Car M3-N (r8a77965) SoC. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/arm/shmobile.txt | 2 ++

[PATCH v2 08/19] ARM64: dts: Add Renesas R8A77965 SoC support

2018-02-20 Thread Jacopo Mondi
Basic support for the Gen 3 R-Car M3-N SoC. Based on original work from: Takeshi Kihara Magnus Damm Signed-off-by: Jacopo Mondi --- v1 -> v2: - Split r8a77965.dtsi from patch v1 [5/15] - Replace all PD_ and

[PATCH v2 10/19] dt-bindings: dmaengine: rcar-dmac: document R8A77965 support

2018-02-20 Thread Jacopo Mondi
Add documentation for r8a77965 compatible string to rcar-dmac device tree bindings documentation. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Reviewed-by: Simon Horman ---

[PATCH v2 07/19] ARM64: Add Renesas R-Car M3-N config symbol

2018-02-20 Thread Jacopo Mondi
Add configuration option for the R-Car M3-N (R8A77965) SoC. Signed-off-by: Jacopo Mondi --- arch/arm64/Kconfig.platforms | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index b51db26..2b1535c 100644

[PATCH v2 09/19] ARM64: dts: Add R-Car Salvator-x M3-N support

2018-02-20 Thread Jacopo Mondi
Add basic support for R-Car Salvator-X M3-N (R8A77965) board. Based on original work from: Takeshi Kihara Magnus Damm Signed-off-by: Jacopo Mondi --- v1 -> v2: - split from patch v1 [05/15] - Remove

[PATCH v2 12/19] dt-bindings: serial: sh-sci: Add support for r8a77965 (H)SCIF

2018-02-20 Thread Jacopo Mondi
Add documentation for r8a77965 compatible string to Renesas sci-serial device tree bindings documentation. Signed-off-by: Jacopo Mondi --- Documentation/devicetree/bindings/serial/renesas,sci-serial.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 11/19] ARM64: dts: r8a77965: Add dmac device nods

2018-02-20 Thread Jacopo Mondi
Add dmac[0-2] device nodes for R-Car M3-N (r8a77965) SoC. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 96 ++- 1 file changed, 93 insertions(+), 3

[PATCH v2 13/19] pinctrl: sh-pfc: r8a77965: Add SCIFs groups/functions

2018-02-20 Thread Jacopo Mondi
Add SCIF[0-5] groups and pin function definitions for R-Car M3-N. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven --- v1 -> v2: - Remove _TANS --- drivers/pinctrl/sh-pfc/pfc-r8a77965.c | 296 ++ 1

[PATCH v2 14/19] ARM64: dts: r8a77965: Add SCIF device nodes

2018-02-20 Thread Jacopo Mondi
Add SCIF[0-5] device nodes for M3-N (r8a77965) SoC. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven --- v1 -> v2: - Replace clock and power areas definition with raw numbers - Fix compatible strings s/r8a7796/r8a77965/ ---

[PATCH v2 15/19] dt-bindings: gpio: Add support for r8a77965

2018-02-20 Thread Jacopo Mondi
Add compatible string for R-Car M3-N (r8a77965) in gpio-rcar. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven --- v1 -> v2: - Drop SoC-specific compatible string from drivers/gpio/gpio-rcar.c - Change patch subject to reflect it

[PATCH v2 16/19] ARM64: dts: r8a77965: Add GPIO nodes

2018-02-20 Thread Jacopo Mondi
Add GPIO nodes to r8a77965 SoC device tree file. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven --- v1 -> v2: - Replace ALWAYS_ON power area define with numeric constant - Do not move gpio nodes ---

[PATCH v2 18/19] pinctrl: sh-pfc: r8a77965: Add EtherAVB groups/functions

2018-02-20 Thread Jacopo Mondi
Add EtherAVB groups and functions definitions for R-Car M3-N. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven --- drivers/pinctrl/sh-pfc/pfc-r8a77965.c | 110 ++ 1 file changed, 110 insertions(+)

[PATCH v2 17/19] dt-bindings: net: ravb: Add support for r8a77965 SoC

2018-02-20 Thread Jacopo Mondi
Add documentation for r8a77965 compatible string to renesas ravb device tree bindings documentation. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Reviewed-by: Simon Horman Acked-by: Sergei Shtylyov

[PATCH v2 19/19] ARM64: dts: r8a77965: Add EtherAVB device node

2018-02-20 Thread Jacopo Mondi
Populate the ethernet@e680 device node to enable Ethernet interface for R-Car M3-N (r8a77965) SoC. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven --- v1 -> v2: - Replace ALWAYS_ON power area identifier with numeric constant

[PATCH v2 01/19] clk: renesas: cpg-mssr: Add support for R-Car M3-N

2018-02-20 Thread Jacopo Mondi
Initial support for R-Car M3-N (r8a77965), including core and module clocks. Based on Table 8.2d of "R-Car Series, 3rd Generation User's Manual: Hardware (Rev. 0.80, Oct 31, 2017)". Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven

[PATCH v2 00/19] R-Car M3-N initial support

2018-02-20 Thread Jacopo Mondi
Hello, second round for R-Car M3-N SoC and M3-N based Salvator-X board. I have fixed all comments I have received and re-based on latest Geert's renesas-drivers-2018-02-13-v4.16-rc1 I have applied requested changes, and updated PFC tables to comply with last patches applied to r8a7796 that were

Re: [PATCH 3/4] pinctrl: sh-pfc: r8a77995: Add VIN4 pins, groups and function

2018-02-20 Thread Geert Uytterhoeven
On Thu, Feb 15, 2018 at 1:01 PM, Ulrich Hecht wrote: > This patch adds VIN4 pins, groups and function for the > R8A77995 (D3) SoC. > > Signed-off-by: Ulrich Hecht Reviewed-by: Geert Uytterhoeven But same

Re: [PATCH v3 03/12] drm: rcar-du: Fix legacy DT to create LVDS encoder nodes

2018-02-20 Thread Rob Herring
On Tue, Feb 20, 2018 at 3:15 AM, Laurent Pinchart wrote: > Hi Rob, > > On Tuesday, 20 February 2018 02:54:00 EET Rob Herring wrote: >> On Wed, Feb 14, 2018 at 6:04 PM, Laurent Pinchart wrote: >> > The internal LVDS encoders now have their own DT bindings. Before

Re: [PATCH 2/4] pinctrl: sh-pfc: r8a7795: Add VIN4, VIN5 pins, groups and functions

2018-02-20 Thread Geert Uytterhoeven
On Thu, Feb 15, 2018 at 1:01 PM, Ulrich Hecht wrote: > This patch adds VIN4 and VIN5 pins, groups and functions for the > R8A7795 SoC. > > Signed-off-by: Ulrich Hecht Reviewed-by: Geert Uytterhoeven But

Re: [PATCH 1/4] pinctrl: sh-pfc: r8a7796: Add VIN4, VIN5 pins, groups and functions

2018-02-20 Thread Geert Uytterhoeven
Hi Uli, On Thu, Feb 15, 2018 at 1:01 PM, Ulrich Hecht wrote: > This patch adds VIN4 and VIN5 pins, groups and functions for the > R8A7796 SoC. > > Signed-off-by: Ulrich Hecht Thanks for your patch! Reviewed-by: Geert Uytterhoeven

Re: [PATCH 11/15] gpio: rcar: Add R-Car M3-N compatible string

2018-02-20 Thread Geert Uytterhoeven
Hi Jacopo, On Tue, Feb 20, 2018 at 2:35 PM, jacopo mondi wrote: > On Wed, Feb 14, 2018 at 03:05:05PM +0100, Geert Uytterhoeven wrote: >> On Tue, Feb 13, 2018 at 10:45 AM, Jacopo Mondi >> wrote: >> > Add compatible string for R-Car M3-N (r8a77965) in

Re: [PATCH 11/15] gpio: rcar: Add R-Car M3-N compatible string

2018-02-20 Thread jacopo mondi
Hi Geert, On Wed, Feb 14, 2018 at 03:05:05PM +0100, Geert Uytterhoeven wrote: > On Tue, Feb 13, 2018 at 10:45 AM, Jacopo Mondi > wrote: > > Add compatible string for R-Car M3-N (r8a77965) in gpio-rcar. > > > > Signed-off-by: Jacopo Mondi > >

Re: [PATCH/RFC 01/11] clk: renesas: r8a7792: Add rwdt clock

2018-02-20 Thread Geert Uytterhoeven
On Mon, Feb 12, 2018 at 6:50 PM, Fabrizio Castro wrote: >> Subject: [PATCH/RFC 01/11] clk: renesas: r8a7792: Add rwdt clock >> >> Add "rwdt" clock to r8a7792_mod_clks. Also, since we may need to access >> the watchdog registers at any time, declare the clock as

Re: [PATCH v5 00/26] Fix watchdog on Renesas R-Car Gen2 and RZ/G1

2018-02-20 Thread Geert Uytterhoeven
On Mon, Feb 12, 2018 at 6:44 PM, Fabrizio Castro wrote: > this series has been around for some time as RFC, and it has collected > useful comments from the community along the way. > The solution proposed by this patch set works for most R-Car Gen2 and > RZ/G1

Re: [PATCH v2 0/2] Renesas R8A77980 CPG/MSSR clock support

2018-02-20 Thread Geert Uytterhoeven
On Thu, Feb 15, 2018 at 12:54 PM, Sergei Shtylyov wrote: > Here's the set of 2 patches against the 'clk-renesas' branch of Geert > Uytterhoeven's > 'renesas-drivers.git' repo. We're adding the CPG/MSSR driver support for > R8A77980... > > [1/2] dt-bindings:

Re: [PATCH 9/9] serial: xuartps: Fix out-of-bounds access through DT alias

2018-02-20 Thread Michal Simek
On 20.2.2018 13:27, Geert Uytterhoeven wrote: > Hi Michal, > > On Tue, Feb 20, 2018 at 12:27 PM, Michal Simek > wrote: >> On 20.2.2018 11:38, Geert Uytterhoeven wrote: >>> On Tue, Feb 20, 2018 at 11:22 AM, Michal Simek >>> wrote: On

Applied "regulator: Fix resume from suspend to idle" to the regulator tree

2018-02-20 Thread Mark Brown
The patch regulator: Fix resume from suspend to idle has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Re: [PATCH 9/9] serial: xuartps: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
Hi Michal, On Tue, Feb 20, 2018 at 12:27 PM, Michal Simek wrote: > On 20.2.2018 11:38, Geert Uytterhoeven wrote: >> On Tue, Feb 20, 2018 at 11:22 AM, Michal Simek >> wrote: >>> On 20.2.2018 10:40, Geert Uytterhoeven wrote: The

Re: [PATCH 9/9] serial: xuartps: Fix out-of-bounds access through DT alias

2018-02-20 Thread Michal Simek
On 20.2.2018 11:38, Geert Uytterhoeven wrote: > Hi Michal, > > On Tue, Feb 20, 2018 at 11:22 AM, Michal Simek > wrote: >> On 20.2.2018 10:40, Geert Uytterhoeven wrote: >>> The cdns_uart_port[] array is indexed using a value derived from the >>> "serialN" alias in DT,

Re: [PATCH 8/9] serial: sirf: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 10:40 AM, Geert Uytterhoeven wrote: > The sirf_ports[] array is indexed using a value derived from the > "serialN" alias in DT, which may lead to an out-of-bounds access. > > Fix this by adding a range check. > > Fixes: 66c7ab1120585d18 ("serial:

Re: [PATCH 7/9] serial: sh-sci: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 10:40 AM, Geert Uytterhoeven wrote: > The sci_ports[] array is indexed using a value derived from the > "serialN" alias in DT, which may lead to an out-of-bounds access. > > Fix this by adding a range check. > > Note that the array size is defined

Re: [PATCH 5/9] serial: pxa: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 10:40 AM, Geert Uytterhoeven wrote: > The serial_pxa_ports[] array is indexed using a value derived from the > "serialN" alias in DT, which may lead to an out-of-bounds access. > > Fix this by adding a range check. > > Fixes: c8dcdc77298dde67

Re: [PATCH 6/9] serial: samsung: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 10:40 AM, Geert Uytterhoeven wrote: > The s3c24xx_serial_ports[] array is indexed using a value derived from > the "serialN" alias in DT, which may lead to an out-of-bounds access. > > Fix this by adding a range check. > > Note that the array size

Re: [PATCH 4/9] serial: mxs-auart: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 10:40 AM, Geert Uytterhoeven wrote: > The auart_port[] array is indexed using a value derived from the > "serialN" alias in DT, which may lead to an out-of-bounds access. > > Fix this by adding a range check. > > Fixes: cabf23e7aa00b145 ("serial:

Re: [PATCH 2/9] serial: fsl_lpuart: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 10:40 AM, Geert Uytterhoeven wrote: > The lpuart_ports[] array is indexed using a value derived from the > "serialN" alias in DT, which may lead to an out-of-bounds access. > > Fix this by adding a range check. > > Fixes: 970416c691dc68b5 ("serial:

Re: [PATCH 3/9] serial: imx: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
Hi Uwe, On Tue, Feb 20, 2018 at 11:31 AM, Uwe Kleine-König wrote: > On Tue, Feb 20, 2018 at 10:40:18AM +0100, Geert Uytterhoeven wrote: >> The imx_ports[] array is indexed using a value derived from the >> "serialN" alias in DT, which may lead to an out-of-bounds

Re: [PATCH 1/9] serial: arc_uart: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 10:40 AM, Geert Uytterhoeven wrote: > The arc_uart_ports[] array is indexed using a value derived from the > "serialN" alias in DT, which may lead to an out-of-bounds access. > > Fix this by adding a range check. > > Note that the array size is

Re: [PATCH 9/9] serial: xuartps: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
Hi Michal, On Tue, Feb 20, 2018 at 11:22 AM, Michal Simek wrote: > On 20.2.2018 10:40, Geert Uytterhoeven wrote: >> The cdns_uart_port[] array is indexed using a value derived from the >> "serialN" alias in DT, which may lead to an out-of-bounds access. >> >> Fix this by

Re: [PATCH 3/9] serial: imx: Fix out-of-bounds access through DT alias

2018-02-20 Thread Uwe Kleine-König
Hello Geert, On Tue, Feb 20, 2018 at 10:40:18AM +0100, Geert Uytterhoeven wrote: > The imx_ports[] array is indexed using a value derived from the > "serialN" alias in DT, which may lead to an out-of-bounds access. > > Fix this by adding a range check. > > Fixes: 9206ab8a0350c3da ("serial: imx:

[PATCH 5/9] serial: pxa: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The serial_pxa_ports[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an out-of-bounds access. Fix this by adding a range check. Fixes: c8dcdc77298dde67 ("serial: pxa: Fix out-of-bounds access through DT alias") Signed-off-by: Geert Uytterhoeven

Re: [PATCH 9/9] serial: xuartps: Fix out-of-bounds access through DT alias

2018-02-20 Thread Michal Simek
On 20.2.2018 10:40, Geert Uytterhoeven wrote: > The cdns_uart_port[] array is indexed using a value derived from the > "serialN" alias in DT, which may lead to an out-of-bounds access. > > Fix this by adding a range check. > > Fixes: 1f118c02a1819856 ("serial: xuartps: Fix out-of-bounds access

Re: [PATCH 03/15] soc: renesas: Add R-Car M3-N support

2018-02-20 Thread jacopo mondi
Hi Geert, On Wed, Feb 14, 2018 at 01:48:27PM +0100, Geert Uytterhoeven wrote: > Hi Jacopo, > > Thanks for your patch! > > On Tue, Feb 13, 2018 at 10:45 AM, Jacopo Mondi > wrote: > > Add support for R-Car M3-N (r8a77965) power areas and reset. > > M3-N power areas are

[PATCH 8/9] serial: sirf: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The sirf_ports[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an out-of-bounds access. Fix this by adding a range check. Fixes: 66c7ab1120585d18 ("serial: sirf: Fix out-of-bounds access through DT alias") Signed-off-by: Geert Uytterhoeven

[PATCH 9/9] serial: xuartps: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The cdns_uart_port[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an out-of-bounds access. Fix this by adding a range check. Fixes: 1f118c02a1819856 ("serial: xuartps: Fix out-of-bounds access through DT alias") Signed-off-by: Geert Uytterhoeven

[PATCH 0/9] serial: Fix out-of-bounds accesses through DT aliases

2018-02-20 Thread Geert Uytterhoeven
Hi all, Serial drivers used on DT platforms use the "serialN" alias in DT to obtain the serial port index for a specific port. Drivers typically use a fixed-size array for keeping track of all available serial ports. However, several drivers do not perform any validation on the index

[PATCH 4/9] serial: mxs-auart: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The auart_port[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an out-of-bounds access. Fix this by adding a range check. Fixes: cabf23e7aa00b145 ("serial: mxs-auart: Fix out-of-bounds access through DT alias") Signed-off-by: Geert Uytterhoeven

[PATCH 3/9] serial: imx: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The imx_ports[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an out-of-bounds access. Fix this by adding a range check. Fixes: 9206ab8a0350c3da ("serial: imx: Fix out-of-bounds access through DT alias") Signed-off-by: Geert Uytterhoeven

[PATCH 1/9] serial: arc_uart: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The arc_uart_ports[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an out-of-bounds access. Fix this by adding a range check. Note that the array size is defined by a Kconfig symbol (CONFIG_SERIAL_ARC_NR_PORTS), so this can even be triggered using a

[PATCH 2/9] serial: fsl_lpuart: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The lpuart_ports[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an out-of-bounds access. Fix this by adding a range check. Fixes: 970416c691dc68b5 ("serial: fsl_lpuart: Fix out-of-bounds access through DT alias") Signed-off-by: Geert Uytterhoeven

[PATCH 7/9] serial: sh-sci: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The sci_ports[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an out-of-bounds access. Fix this by adding a range check. Note that the array size is defined by a Kconfig symbol (CONFIG_SERIAL_SH_SCI_NR_UARTS), so this can even be triggered using a

[PATCH 6/9] serial: samsung: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The s3c24xx_serial_ports[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an out-of-bounds access. Fix this by adding a range check. Note that the array size is defined by a Kconfig symbol (CONFIG_SERIAL_SAMSUNG_UARTS), so this can even be triggered

Re: [PATCH v3 03/12] drm: rcar-du: Fix legacy DT to create LVDS encoder nodes

2018-02-20 Thread Laurent Pinchart
Hi Rob, On Tuesday, 20 February 2018 02:54:00 EET Rob Herring wrote: > On Wed, Feb 14, 2018 at 6:04 PM, Laurent Pinchart wrote: > > The internal LVDS encoders now have their own DT bindings. Before > > switching the driver infrastructure to those new bindings, implement > > backward-compatibility

Re: [PATCH v9 11/11] media: i2c: ov7670: Fully set mbus frame fmt

2018-02-20 Thread jacopo mondi
Hi Laurent, On Mon, Feb 19, 2018 at 09:19:32PM +0200, Laurent Pinchart wrote: > Hi Jacopo, > > Thank you for the patch. > > On Monday, 19 February 2018 18:59:44 EET Jacopo Mondi wrote: > > The sensor driver sets mbus format colorspace information and sizes, > > but not ycbcr encoding,

Re: [PATCH v2] videodev2.h: add helper to validate colorspace

2018-02-20 Thread Hans Verkuil
Hi Niklas, On 02/19/2018 11:28 PM, Niklas Söderlund wrote: > Hi Hans, > > Thanks for your feedback. > > [snip] > >> Can you then fix v4l2-compliance to stop testing colorspace >> against 0xff >> ? > > For now I can simply relax this test for subdevs with sources and sinks.