Re: [RFC][PATCH 0/x] ASoC: replace platform to component

2017-06-21 Thread Kuninori Morimoto
Hi Mark > > - struct device *dev = rtd->platform_com->dev; > > + struct snd_soc_component *component = snd_soc_lookup_runtime(rtd, > > driver); > > This seems like a fairly sensible idiom, and it'll also help deal with > some of the issues we have right now with CODEC<->CODEC links I

Re: [PATCH 0/3] ASoC: add/use asoc_simple_card_of_canonicalize_cpu()

2017-06-21 Thread Kuninori Morimoto
Hi Mark Sorry for my noise, but I noticed these patches are a littile bit over-kill. Please ignore, I want to post more light v2 patches > These fixes audio graph cards DAI counting bug. > Simple Card side doesn't have this issue, but Audio Graph Card > side has it. > > Kuninori Morimoto (3):

Re: Applied "ASoC: pxa: add COMPILE_TEST on SND_MMP_SOC" to the asoc tree

2017-06-21 Thread Kuninori Morimoto
Hi Mark > From d89e69c0f985392e708b54c92b322163da820cb9 Mon Sep 17 00:00:00 2001 > From: Kuninori Morimoto > Date: Wed, 21 Jun 2017 04:38:34 + > Subject: [PATCH] ASoC: pxa: add COMPILE_TEST on SND_MMP_SOC > > It doesn't use asm header. We can add

Re: [RFC][PATCH 0/x] ASoC: replace platform to component

2017-06-21 Thread Mark Brown
On Wed, Jun 21, 2017 at 04:32:30AM +, Kuninori Morimoto wrote: > - struct device *dev = rtd->platform_com->dev; > + struct snd_soc_component *component = snd_soc_lookup_runtime(rtd, > driver); This seems like a fairly sensible idiom, and it'll also help deal with some of the

Re: [PATCH v2] i2c: algo-bit: add support for I2C_M_STOP

2017-06-21 Thread Wolfram Sang
> + if (msgs[i - 1].flags & I2C_M_STOP) { > + bit_dbg(3, _adap->dev, > + "emitting enforced stop > condition\n"); > + i2c_stop(adap); > +

[PATCH v2] gpio: rcar: Add R8A7743 (RZ/G1M) support

2017-06-21 Thread Biju Das
Renesas RZ/G1M (R8A7743) SoC GPIO blocks are identical to the R-Car Gen2 family. Add support for its GPIO controllers. Signed-off-by: Biju Das Reviewed-by: Chris Paterson --- v1->v2 * Modified the text "RZ-G1M" to "RZ/G1M"

Re: [PATCH] i2c: algo-bit: add support for I2C_M_STOP

2017-06-21 Thread Wolfram Sang
Hi Jean, > There's no problem with the scope. The problem is with the > initialization. The way you did, did_stop gets reset to false with > every iteration, which isn't what you want. Ouch, where is my brown paper bag... > I looked at how 10-bit addressing works again and in fact it is simply

[PATCH mmc/next v3 4/4] mmc: renesas-sdhi: remove gen3 support from SYS-DMAC driver

2017-06-21 Thread Simon Horman
Gen3 SoCs are now supported by the internal DMAC variant of the SDHI driver. Remove them from the SYS-DMAC variant where only PIO mode is supported for those SoCs. Signed-off-by: Simon Horman Reviewed-by: Wolfram Sang --- v2 *

[PATCH mmc/next v3 1/4] mmc: tmio, renesas-sdhi: add max_{segs,blk_count} to tmio_mmc_data

2017-06-21 Thread Simon Horman
From: Yoshihiro Shimoda Allow TMIO and SDHI driver implementations to provide values for max_segs and max_blk_count. A follow-up patch will set these values for Renesas Gen3 SoCs the using an SDHI driver. Signed-off-by: Yoshihiro Shimoda

[PATCH mmc/next v3 2/4] mmc: tmio, renesas-sdhi: add dataend to DMA ops

2017-06-21 Thread Simon Horman
Add dataend to DMA ops to allow DMAC implementation dependent handling of DMA data end. Also implement the operation for SDHI. Signed-off-by: Simon Horman --- v3 * s/complete/dataend/ v2 * Implement operation for SDHI to avoid regression ---

[PATCH mmc/next v3 3/4] mmc: renesas-sdhi: add support for R-Car Gen3 SDHI DMAC

2017-06-21 Thread Simon Horman
Add a new variant of the SDHI driver to support R-Car Gen3 with DMA via on-chip bus mastering. Since the DMAC is in a part of the SDHI module it is not suitable to be used via DMA Engine. Clearing of DM_CM_INFO1 after DMA thanks to Dirk Behme Cc: Dirk Behme

[PATCH mmc/next v3 0/4] mmc: renesas_sdhi: add support for R-Car Gen3 SDHI DMAC

2017-06-21 Thread Simon Horman
Hi, this series adds support for the internal DMAC used by r8a779[56] SoCs. This is achieved by adding a new variant of the SDHI driver for this DMA controller with compat strings for the r8a779[56] SoCs. Compat strings for these SoCs are also removed from the existing SYS DMAC variant of the

RE: [PATCH] ARM: dts: iwg20d-q7: Add pinctl support for scif0

2017-06-21 Thread Biju Das
Hello Simon, > On Mon, Jun 19, 2017 at 10:42:18AM +0200, Geert Uytterhoeven wrote: > > Hi Biju, > > > > On Fri, Jun 16, 2017 at 4:57 PM, Biju Das > wrote: > > > Adding pinctrl support for scif0 interface. > > > > > > Signed-off-by: Biju Das > >

Re: [PATCH 0/2] arm64: defconfig: ak4613/renesas sound will be kernle module

2017-06-21 Thread Geert Uytterhoeven
Hi Simon, On Wed, Jun 21, 2017 at 2:03 PM, Simon Horman wrote: > Compile the renesas sound and ak4613 drivers to reduce the ARM64 kernel ... as modules ... Else you increase size ;-) > size. These modules are currently only used by Renesas platforms so > there should

[PATCH v2.1 4/7] arm64: dts: renesas: r8a7796: Add HDMI encoder instance

2017-06-21 Thread Laurent Pinchart
Add the HDMI encoder to the R8A7796 DT in disabled state. Signed-off-by: Laurent Pinchart --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 25 + 1 file changed, 25 insertions(+) Changes since v2: - Rename node to hdmi@fead

Re: [PATCH 0/2] arm64: defconfig: ak4613/renesas sound will be kernle module

2017-06-21 Thread Simon Horman
On Wed, Jun 21, 2017 at 12:10:31AM +, Kuninori Morimoto wrote: > > Hi Simon > > > > These exchange Renesas sound related driver as module. > > > But, it doesn't exchange simple-sound-card which is > > > used from other platform. > > > > > > Kuninori Morimoto (2): > > > arm64: defconfig:

Re: [PATCH] ARM: dts: iwg20d-q7: Add pinctl support for scif0

2017-06-21 Thread Simon Horman
On Mon, Jun 19, 2017 at 10:42:18AM +0200, Geert Uytterhoeven wrote: > Hi Biju, > > On Fri, Jun 16, 2017 at 4:57 PM, Biju Das wrote: > > Adding pinctrl support for scif0 interface. > > > > Signed-off-by: Biju Das > > The patch looks good to me,

Re: [PATCH v2 7/7] arm64: dts: renesas: r8a7796-salvator-x: Enable HDMI output

2017-06-21 Thread Geert Uytterhoeven
On Wed, Jun 21, 2017 at 11:31 AM, Laurent Pinchart wrote: > Enable the HDMI encoder for the M3-W Salvator-X board and hook it up to > the HDMI connector. > > Signed-off-by: Laurent Pinchart Reviewed-by: Geert

Re: [PATCH v2 6/7] arm64: dts: renesas: r8a7796-salvator-x: Add DU external dot clocks

2017-06-21 Thread Geert Uytterhoeven
On Wed, Jun 21, 2017 at 11:31 AM, Laurent Pinchart wrote: > The DU1 external dot clock is provided by the fixed frequency clock > generator X21, while the DU0 and DU2 clocks are provided by the > programmable Versaclock5 clock generator. > >

Applied "ASoC: fsl: mpc5200_dma: remove unused psc_dma" to the asoc tree

2017-06-21 Thread Mark Brown
The patch ASoC: fsl: mpc5200_dma: remove unused psc_dma has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.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

Applied "ASoC: pxa: add COMPILE_TEST on SND_MMP_SOC" to the asoc tree

2017-06-21 Thread Mark Brown
The patch ASoC: pxa: add COMPILE_TEST on SND_MMP_SOC has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.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

Applied "ASoC: pxa: add COMPILE_TEST on SND_PXA2XX_SOC" to the asoc tree

2017-06-21 Thread Mark Brown
The patch ASoC: pxa: add COMPILE_TEST on SND_PXA2XX_SOC has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.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

Applied "ASoC: rsnd: fixup unsigned expression compared with zero: main_rate" to the asoc tree

2017-06-21 Thread Mark Brown
The patch ASoC: rsnd: fixup unsigned expression compared with zero: main_rate has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next

Re: [PATCH v2 4/7] arm64: dts: renesas: r8a7796: Add HDMI encoder instance

2017-06-21 Thread Laurent Pinchart
Hi Sergei, On Wednesday 21 Jun 2017 12:35:11 Sergei Shtylyov wrote: > On 6/21/2017 12:31 PM, Laurent Pinchart wrote: > > Add the HDMI encoder to the R8A7796 DT in disabled state. > > > > Signed-off-by: Laurent Pinchart > > > > --- > > > >

Re: [PATCH v2 1/7] dt-bindings: display: renesas: Add R-Car M3-W HDMI TX DT bindings

2017-06-21 Thread Geert Uytterhoeven
On Wed, Jun 21, 2017 at 11:31 AM, Laurent Pinchart wrote: > The M3-W HDMI TX controller seems to be compatible for the H3. No > extension to the DT bindings are needed, add an SoC-specific compatible > string in case differences between the IP versions

Re: [PATCH v2 4/7] arm64: dts: renesas: r8a7796: Add HDMI encoder instance

2017-06-21 Thread Sergei Shtylyov
Hello! On 6/21/2017 12:31 PM, Laurent Pinchart wrote: Add the HDMI encoder to the R8A7796 DT in disabled state. Signed-off-by: Laurent Pinchart --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 25 + 1 file changed, 25

[PATCH v2 5/7] arm64: dts: renesas: r8a7796: Add DU device to DT

2017-06-21 Thread Laurent Pinchart
Add the DU device to r8a7796.dtsi in a disabled state. Signed-off-by: Laurent Pinchart Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 27 ++- 1 file changed, 26

[PATCH v2 6/7] arm64: dts: renesas: r8a7796-salvator-x: Add DU external dot clocks

2017-06-21 Thread Laurent Pinchart
The DU1 external dot clock is provided by the fixed frequency clock generator X21, while the DU0 and DU2 clocks are provided by the programmable Versaclock5 clock generator. Signed-off-by: Laurent Pinchart ---

[PATCH v2 2/7] arm64: dts: renesas: r8a7796: Add FCPF and FCPV instances

2017-06-21 Thread Laurent Pinchart
The FCPs handle the interface between various IP cores and memory. Add the instances related to the FDPs and VSP2s. Signed-off-by: Laurent Pinchart Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a7796.dtsi |

[PATCH v2 1/7] dt-bindings: display: renesas: Add R-Car M3-W HDMI TX DT bindings

2017-06-21 Thread Laurent Pinchart
The M3-W HDMI TX controller seems to be compatible for the H3. No extension to the DT bindings are needed, add an SoC-specific compatible string in case differences between the IP versions are found later and require model-specific handling. Signed-off-by: Laurent Pinchart

[PATCH v2 3/7] arm64: dts: renesas: r8a7796: Add VSP instances

2017-06-21 Thread Laurent Pinchart
The r8a7796 has 5 VSP instances. Signed-off-by: Laurent Pinchart Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 50 1 file changed, 50 insertions(+) diff --git

[PATCH v2 0/7] R-Car Salvator-X M3-W: Enable DU support

2017-06-21 Thread Laurent Pinchart
Hello, This patch series enables DU support for the M3-W-based Salvator-X board. Display support has no out-of-tree compile or runtime dependencies. HDMI output support has a runtime dependency on - [PATCH] clk: renesas: r8a7796: Add HDMI clock - [PATCH 1/2] drm: rcar-du: Restrict DPLL duty

[PATCH v2 7/7] arm64: dts: renesas: r8a7796-salvator-x: Enable HDMI output

2017-06-21 Thread Laurent Pinchart
Enable the HDMI encoder for the M3-W Salvator-X board and hook it up to the HDMI connector. Signed-off-by: Laurent Pinchart --- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 17 + 1 file changed, 17 insertions(+) diff --git

[PATCH v2 4/7] arm64: dts: renesas: r8a7796: Add HDMI encoder instance

2017-06-21 Thread Laurent Pinchart
Add the HDMI encoder to the R8A7796 DT in disabled state. Signed-off-by: Laurent Pinchart --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git

Re: [PATCH] clk: renesas: r8a7796: Add HDMI clocks

2017-06-21 Thread Geert Uytterhoeven
Hi Laurent, On Wed, Jun 21, 2017 at 11:01 AM, Laurent Pinchart wrote: > Add the HDMI and HDMI0 clocks to the R8A7796 CPG/MSSR driver. > > Signed-off-by: Laurent Pinchart > --- >

Re: [PATCH mmc/next v2 3/4] mmc: renesas-sdhi: add support for R-Car Gen3 SDHI DMAC

2017-06-21 Thread Simon Horman
On Sat, Jun 17, 2017 at 05:00:56PM +0200, Wolfram Sang wrote: > On Fri, Jun 16, 2017 at 11:58:53AM +0200, Simon Horman wrote: > > Add a new variant of the SDHI driver to support R-Car Gen3 with DMA via > > on-chip bus mastering. Since the DMAC is in a part of the SDHI module it > > is not

[PATCH 2/2] drm: rcar-du: Add HDMI outputs to R8A7796 device description

2017-06-21 Thread Laurent Pinchart
Update the device description with the HDMI output. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_drv.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c

[PATCH 1/2] drm: rcar-du: Restrict DPLL duty cycle workaround to H3 ES1.x

2017-06-21 Thread Laurent Pinchart
The H3 ES1.x exhibits dot clock duty cycle stability issues. We can work around them by configuring the DPLL to twice the desired frequency, coupled with a /2 post-divider. This isn't needed on other SoCs and breaks HDMI output on M3-W for a currently unknown reason, so restrict the workaround to

Re: [PATCH mmc/next v2 3/4] mmc: renesas-sdhi: add support for R-Car Gen3 SDHI DMAC

2017-06-21 Thread Simon Horman
On Sat, Jun 17, 2017 at 10:55:50PM +0200, Simon Horman wrote: > On Fri, Jun 16, 2017 at 11:58:53AM +0200, Simon Horman wrote: > > Add a new variant of the SDHI driver to support R-Car Gen3 with DMA via > > on-chip bus mastering. Since the DMAC is in a part of the SDHI module it > > is not

[PATCH] clk: renesas: r8a7796: Add HDMI clocks

2017-06-21 Thread Laurent Pinchart
Add the HDMI and HDMI0 clocks to the R8A7796 CPG/MSSR driver. Signed-off-by: Laurent Pinchart --- drivers/clk/renesas/r8a7796-cpg-mssr.c | 2 ++ 1 file changed, 2 insertions(+) Hi Geert, I'd like to upstream HDMI output support on M3-W in v4.14. To

Re: [PATCH] pinctrl: sh-pfc: r8a7792: Add SCIF1 and SCIF2 pin groups

2017-06-21 Thread Geert Uytterhoeven
Hi Uli, On Tue, Jun 20, 2017 at 3:31 PM, Ulrich Hecht wrote: > Add SCIF1 and SCIF2 pin groups to the R8A7792 PFC driver. Thanks for the update! > Signed-off-by: Ulrich Hecht Reviewed-by: Geert Uytterhoeven

[PATCH v2] i2c: algo-bit: add support for I2C_M_STOP

2017-06-21 Thread Jean Delvare
Support for enforced STOPs will allow us to use SCCB compatible devices. Based on a preliminary patch by Wolfram Sang. Signed-off-by: Jean Delvare Tested-by: Wolfram Sang --- Changes since v1: * Simplify logic

Re: [PATCH] i2c: algo-bit: add support for I2C_M_STOP

2017-06-21 Thread Jean Delvare
Hi Wolfram, On Tue, 20 Jun 2017 19:28:10 +0200, Wolfram Sang wrote: > Hi Jean, > > > > + bool did_stop = false; > > > > I'm pretty certain you want to declare and initialize this variable > > outside the loop. > > Why? Well, it doesn't matter anymore but what is wrong with limiting