[PATCH 3/4] ASoC: rsnd: add rsnd_ssi_clk_query()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current Renesas sound driver is assuming that all Sampling rate and channles are possible to use, but these are depends on inputed clock and SSI connection situation. For example, if it is using 1 SSI, enabled TDM mode and has 12288000 input clock, 2ch output can support

[PATCH 4/4] ASoC: rsnd: add rsnd_soc_hw_rule/constraint()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current Renesas sound driver is assuming that all Sampling rate and channles are possible to use, but these are depends on inputed clock and SSI connection situation. For example, if it is using 1 SSI, enabled TDM mode and has 12288000 input clock, 2ch output can support

[PATCH 2/4] ASoC: rsnd: add rsnd_adg_clk_query()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current Renesas sound driver is assuming that all Sampling rate and channles are possible to use, but these are depends on inputed clock and SSI connection situation. For example, if it is using 1 SSI, enabled TDM mode and has 12288000 input clock, 2ch output can support

[PATCH 1/4] ASoC: rsnd: rename "slots" related variable

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current Renesas sound driver has slots and slots_num in struct rsnd_dai, but these are very un-understandable naming (It had named from TDM slots). In this driver, the "slots" means total usable channels, and "stot_num" means SSI lane number if Multi SSI was used. To more

[PATCH 0/4] ASoC: rsnd: add PCM rule

2017-06-14 Thread Kuninori Morimoto
Hi Mark These patches adds hw_constraints rule to Renesas sound driver. It supports TDM and Multi SSI features, possible Channel / Sampling Rate are depends on its situation. Kuninori Morimoto (4): ASoC: rsnd: rename "slots" related variable ASoC: rsnd: add rsnd_adg_clk_query() ASoC: rsnd:

[PATCH 2/2] ASoC: ak4613: add hw_constraint rule for Sampling Rate

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current ak4613 accepts all range of Sampling Rate, but it depends on inputed master clock. This patch adds hw constraint rule for it. Signed-off-by: Kuninori Morimoto Tested-by: Hiroyuki Yokoyama --- sound/soc/codecs/ak4613.c | 69 +

[PATCH 1/2] ASoC: ak4613: add use CTRL2::CKS = 00

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto ak4613 CTRL2::CKS controls Speed Mode (Normal/Double/Quad) for Master Mode. In default, Normal Mode uses 512fs, but in such case, requested input clock for all mode will be same. Then, it might not be eble to support correct output if input clock was not enough. This patc

[PATCH 0/2] ASoC: ak4613: add PCM rule

2017-06-14 Thread Kuninori Morimoto
Hi Mark These patches adds hw_constraint rule to ak4613. Otherwise, Renesas platform might use un-supported sampling rate Kuninori Morimoto (2): ASoC: ak4613: add use CTRL2::CKS = 00 ASoC: ak4613: add hw_constraint rule for Sampling Rate sound/soc/codecs/ak4613.c | 72 +

[PATCH 7/7] ASoC: audio-graph-scu-card: use asoc_simple_card_of_parse_routing()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple/audio scu card drivers are supporting same routing on DT, but, doesn't use same function for it. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_of_parse_routing Signed-off-by: Kuninori Morimoto --- sound/soc/generic/audio-g

[PATCH 4/7] ASoC: simple-card-utils: add asoc_simple_card_of_parse_routing()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple card drivers are parsing routing on each own driver. Encapsulation is one of simple card util's purpose. Let's add asoc_simple_card_of_parse_routing for it. Signed-off-by: Kuninori Morimoto --- include/sound/simple_card_utils.h | 4 sound/soc/ge

[PATCH 5/7] ASoC: simple-card: use asoc_simple_card_of_parse_routing()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple/audio scu card drivers are supporting same routing on DT, but, doesn't use same function for it. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_of_parse_routing Signed-off-by: Kuninori Morimoto --- sound/soc/generic/simple-

[PATCH 6/7] ASoC: simple-scu-card: use asoc_simple_card_of_parse_routing()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple/audio scu card drivers are supporting same routing on DT, but, doesn't use same function for it. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_of_parse_routing Signed-off-by: Kuninori Morimoto --- sound/soc/generic/simple-

[PATCH 3/7] ASoC: audio-graph-scu-card: use asoc_simple_card_convert_fixup()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple/audio scu card drivers are supporting same convert-rate/convert-channels on DT, but, doesn't use same function for it. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_parse_convert/asoc_simple_card_convert_fixup Signed-off-by:

[PATCH 2/7] ASoC: simple-scu-card: use asoc_simple_card_convert_fixup()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple/audio scu card drivers are supporting same convert-rate/convert-channels on DT, but, doesn't use same function for it. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_parse_convert/asoc_simple_card_convert_fixup Signed-off-by:

[PATCH 1/7] ASoC: simple-card-utils: add asoc_simple_card_convert_fixup()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple/audio scu card drivers are supporting same convert-rate/convert-channels on DT, but doesn't use same function for it. Encapsulation is one of simple card util's purpose. Let's add asoc_simple_card_parse_convert/asoc_simple_card_convert_fixup Signed-off-by:

[PATCH 0/7] ASoC: simple-card: add asoc_simple_card_convert_fixup/parse_routing

2017-06-14 Thread Kuninori Morimoto
Hi Mark Simple/OF-Audio card are using same DT properties, but not using same functions for it. These patches adds such function on simple-card-utils and uses it from simple/simple-scu/audio/audio-scu cards. These are for convert_rate/convert_channels/routing Kuninori Morimoto (7): ASoC: simpl

[GIT PULL for renesas-drivers] ADV748x v5 driver.

2017-06-14 Thread Kieran Bingham
Hi Geert, Please consider this pull request for the next renesas-drivers release. This driver is based on linux-media/master branch -- Regards Kieran The following changes since commit acec3630155763c170c7ae6508cf973355464508: [media] s3c-camif: fix arguments position in a function call (20

[GIT PULL for renesas-drivers] ADV748x v5 device-tree.

2017-06-14 Thread Kieran Bingham
Hi Geert, Please consider this pull request for the next renesas-drivers release. This DT update is based on Simon's horms/next branch, but is also dependant upon Niklas' VIN driver DT nodes being integrated. -- Regards Kieran The following changes since commit ab4321dedd764fb6d8fad3463a93b491

[PATCH v5 1/2] media: i2c: adv748x: add adv748x driver

2017-06-14 Thread Kieran Bingham
From: Kieran Bingham Provide support for the ADV7481 and ADV7482. The driver is modelled with 4 subdevices to allow simultaneous streaming from the AFE (Analog front end) and HDMI inputs though two CSI TX entities. The HDMI entity is linked to the TXA CSI bus, whilst the AFE is linked to the TX

[PATCH v5 2/2] arm64: dts: renesas: salvator-x: Add ADV7482 support

2017-06-14 Thread Kieran Bingham
From: Kieran Bingham The Salvator boards use an ADV7482 receiver for HDMI and CVBS inputs. Provide ADV7482 node on the i2c4 bus, along with connectors for the hdmi and cvbs inputs, and link to the csi20 and csi40 nodes as outputs. Signed-off-by: Kieran Bingham v4: - dt: Rebase to dts/renesas

[PATCH v5 0/2] ADV748x HDMI/Analog video receiver

2017-06-14 Thread Kieran Bingham
From: Kieran Bingham This is a driver for the Analog Devices ADV748x device, and follows on from a previous posting by Niklas Söderlund [0] of an earlier incarnation of this driver. Aside from a few bug fixes, and considerable refactoring this driver: - is refactored to multiple object files -

[RFC 2/4] serdev: add GPIO-based multiplexer support

2017-06-14 Thread Ulrich Hecht
Adds an interface for slave device multiplexing, and an implementation for GPIO-based multiplexers. Signed-off-by: Ulrich Hecht --- drivers/tty/serdev/Kconfig| 3 ++ drivers/tty/serdev/Makefile | 1 + drivers/tty/serdev/core.c | 43 ++- drivers/tty/serdev/mux-gpio

[RFC 3/4] max9260: add driver for i2c over GMSL passthrough

2017-06-14 Thread Ulrich Hecht
This driver implements tunnelling of i2c requests over GMSL via a MAX9260 deserializer. It provides an i2c adapter that can be used to reach devices on the far side of the link. Signed-off-by: Ulrich Hecht --- drivers/media/i2c/Kconfig | 6 + drivers/media/i2c/Makefile | 1 + drivers/medi

[RFC 4/4] ARM: dts: blanche: add SCIF1 and MAX9260 deserializer

2017-06-14 Thread Ulrich Hecht
Adds serial port SCIF1 and the MAX9260 deserializers connected to it. Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7792-blanche.dts | 45 +++ 1 file changed, 45 insertions(+) diff --git a/arch/arm/boot/dts/r8a7792-blanche.dts b/arch/arm/boot/dts/r8a7792-

[RFC 0/4] serdev GPIO-based multiplexing support

2017-06-14 Thread Ulrich Hecht
Hi! This is an attempt to add multiplexer support to serdev, specifically GPIO-based multiplexing. Our use case is the Renesas Blanche V2H board with several MAX9260 GMSL deserializers attached to one serial port. A sample driver that implements i2c passthrough over the GMSL link is part of this

[RFC 1/4] serdev: add method to set parity

2017-06-14 Thread Ulrich Hecht
Adds serdev_device_set_parity() and an implementation for ttyport. Signed-off-by: Ulrich Hecht --- drivers/tty/serdev/core.c | 12 drivers/tty/serdev/serdev-ttyport.c | 17 + include/linux/serdev.h | 4 3 files changed, 33 insertions(+)

Re: [PATCH v4 2/2] arm64: dts: renesas: salvator-x: Add ADV7482 support

2017-06-14 Thread Geert Uytterhoeven
Hi Kieran, On Wed, Jun 14, 2017 at 11:43 AM, Kieran Bingham wrote: > On 14/06/17 10:39, Geert Uytterhoeven wrote: >> On Tue, Jun 13, 2017 at 2:35 AM, Kieran Bingham wrote: >>> From: Kieran Bingham >>> >>> Provide ADV7482, and the needed connectors >>> >>> Signed-off-by: Kieran Bingham >> >> Th

Re: [renesas:drivers-for-v4.13 3/3] drivers/soc/renesas/rcar-sysc.c:209:19: error: 'GENPD_FLAG_ALWAYS_ON' undeclared

2017-06-14 Thread Geert Uytterhoeven
Hi Simon, On Wed, Jun 14, 2017 at 1:04 PM, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git > drivers-for-v4.13 > head: 895c7e91d84c0f0e207ad909482ed70b5f3c806f > commit: 895c7e91d84c0f0e207ad909482ed70b5f3c806f [3/3] soc: renesas: > rcar-sy

[renesas:drivers-for-v4.13 3/3] drivers/soc/renesas/rcar-sysc.c:209:19: error: 'GENPD_FLAG_ALWAYS_ON' undeclared

2017-06-14 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git drivers-for-v4.13 head: 895c7e91d84c0f0e207ad909482ed70b5f3c806f commit: 895c7e91d84c0f0e207ad909482ed70b5f3c806f [3/3] soc: renesas: rcar-sysc: Use GENPD_FLAG_ALWAYS_ON config: ia64-allmodconfig (attached as .config) com

Re: [PATCH v7 1/2] media: rcar-csi2: add Renesas R-Car MIPI CSI-2 receiver documentation

2017-06-14 Thread Sakari Ailus
Hi Niklas, On Tue, Jun 13, 2017 at 06:50:14PM +0200, Niklas Söderlund wrote: > Hi Sakari, > > Thanks for your feedback. > > On 2017-05-29 14:16:25 +0300, Sakari Ailus wrote: > > Hi Niklas, > > > > On Wed, May 24, 2017 at 02:13:52AM +0200, Niklas Söderlund wrote: > > > From: Niklas Söderlund >

[GIT/RFC PULL LTSI-4.9] Renesas SoCs and Drivers to v4.11

2017-06-14 Thread Simon Horman
Hi, ** This series is for informational purposes only! ** This series is comprised of backports to v4.9 of the following components to their from standard as of v4.10 to that of v4.11: * adv7511 * ak4642 * clk * cpg * gen3 * gpio-keys * gpio-rcar * gpio-regulator

[GIT/RFC PULL LTSI-4.9] Renesas SoCs and Drivers to v4.10

2017-06-14 Thread Simon Horman
Hi, ** This series is for informational purposes only! ** This series is comprised of backports to v4.9 of the following components to their standard as of v4.10: * adv7511 * cpg * em-sti * gen3 * gpio-keys * gpio-regulator * i2c-rcar * i2c-sh-mobile * intc * irq-gic * mach-shmobile * pci-rcar-g

Applied "ASoC: rsnd: reduce confusable macro parameter magic" to the asoc tree

2017-06-14 Thread Mark Brown
The patch ASoC: rsnd: reduce confusable macro parameter magic 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 sen

Applied "ASoC: simple_card_utils: add EXPORT_SYMBOL_GPL() for asoc_simple_card_clk_xxx()" to the asoc tree

2017-06-14 Thread Mark Brown
The patch ASoC: simple_card_utils: add EXPORT_SYMBOL_GPL() for asoc_simple_card_clk_xxx() 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

Applied "ASoC: ak4613: add missing 64000 in ak4613_dai_hw_params()" to the asoc tree

2017-06-14 Thread Mark Brown
The patch ASoC: ak4613: add missing 64000 in ak4613_dai_hw_params() 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) a

Applied "ASoC: simple-card-utils: add asoc_simple_card_of_parse_tdm()" to the asoc tree

2017-06-14 Thread Mark Brown
The patch ASoC: simple-card-utils: add asoc_simple_card_of_parse_tdm() 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

Applied "ASoC: simple-card: use asoc_simple_card_of_parse_tdm()" to the asoc tree

2017-06-14 Thread Mark Brown
The patch ASoC: simple-card: use asoc_simple_card_of_parse_tdm() 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

Applied "ASoC: audio-graph-card: use asoc_simple_card_of_parse_tdm()" to the asoc tree

2017-06-14 Thread Mark Brown
The patch ASoC: audio-graph-card: use asoc_simple_card_of_parse_tdm() 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)

Applied "ASoC: simple-scu-card: use asoc_simple_card_of_parse_tdm()" to the asoc tree

2017-06-14 Thread Mark Brown
The patch ASoC: simple-scu-card: use asoc_simple_card_of_parse_tdm() 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)

Applied "ASoC: audio-graph-scu-card: use asoc_simple_card_of_parse_tdm()" to the asoc tree

2017-06-14 Thread Mark Brown
The patch ASoC: audio-graph-scu-card: use asoc_simple_card_of_parse_tdm() 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 ho

Re: [PATCH v3 2/2] media: entity: Add media_entity_get_fwnode_pad() function

2017-06-14 Thread Sakari Ailus
Hi Niklas, Thanks for the update! On Tue, Jun 13, 2017 at 04:31:26PM +0200, Niklas Söderlund wrote: > This is a wrapper around the media entity get_fwnode_pad operation. > > Signed-off-by: Niklas Söderlund > --- > drivers/media/media-entity.c | 35 +++ > include

Re: [PATCH v3 1/2] media: entity: Add get_fwnode_pad entity operation

2017-06-14 Thread Sakari Ailus
On Tue, Jun 13, 2017 at 04:31:25PM +0200, Niklas Söderlund wrote: > The optional operation can be used by entities to report how it maps its > fwnode endpoints to media pad numbers. This is useful for devices which > require advanced mappings of pads. > > Signed-off-by: Niklas Söderlund Thanks!

Re: [PATCH v4 2/2] arm64: dts: renesas: salvator-x: Add ADV7482 support

2017-06-14 Thread Kieran Bingham
Hi Geert, On 14/06/17 10:39, Geert Uytterhoeven wrote: > Hi Kieran, > > On Tue, Jun 13, 2017 at 2:35 AM, Kieran Bingham wrote: >> From: Kieran Bingham >> >> Provide ADV7482, and the needed connectors >> >> Signed-off-by: Kieran Bingham > > Thanks for your patch! > >> v4: >> - dt: Rebase to

Re: [PATCH v4 2/2] arm64: dts: renesas: salvator-x: Add ADV7482 support

2017-06-14 Thread Geert Uytterhoeven
Hi Kieran, On Tue, Jun 13, 2017 at 2:35 AM, Kieran Bingham wrote: > From: Kieran Bingham > > Provide ADV7482, and the needed connectors > > Signed-off-by: Kieran Bingham Thanks for your patch! > v4: > - dt: Rebase to dts/renesas/salvator-x.dtsi > - dt: Use AIN0-7 rather than AIN1-8 > > arc

Re: [PATCH v4 2/2] arm64: dts: renesas: salvator-x: Add ADV7482 support

2017-06-14 Thread Simon Horman
On Tue, Jun 13, 2017 at 01:35:08AM +0100, Kieran Bingham wrote: > From: Kieran Bingham > > Provide ADV7482, and the needed connectors > > Signed-off-by: Kieran Bingham I am marking this as deferred pending acceptance of the bindings.

Re: [PATCH v4 2/2] arm64: dts: renesas: salvator-x: Add ADV7482 support

2017-06-14 Thread Kieran Bingham
Hi Simon, On 14/06/17 10:04, Simon Horman wrote: > On Tue, Jun 13, 2017 at 01:35:08AM +0100, Kieran Bingham wrote: >> From: Kieran Bingham >> >> Provide ADV7482, and the needed connectors >> >> Signed-off-by: Kieran Bingham > > I am marking this as deferred pending acceptance of the bindings.

[ANNOUNCE] Renesas tree closed for v4.13

2017-06-14 Thread Simon Horman
Hi, I would like to stop accepting non-bug-fix patches for v4.13 and get the last pull requests posted by the end of this week. This is in order for them to be sent before the release of v4.12-rc6, the deadline set by the ARM SoC maintainers. As patches should ideally progress from the renesas tr

Re: [GIT PULL FOR renesas-drivers] mmc: renesas_sdhi: add support for R-Car Gen3 SDHI DMAC

2017-06-14 Thread Simon Horman
On Mon, Jun 12, 2017 at 12:06:00PM +0200, Geert Uytterhoeven wrote: > Hi Simon, > > On Mon, Jun 12, 2017 at 11:47 AM, Simon Horman > wrote: > > please consider pulling changes to add support for R-Car Gen3 SDHI DMAC. > > > > This gives a significant performance boost; > > the headline figure is 9

Re: [PATCH 0/2] arm64: dts: renesas: Add reset control properties for audio

2017-06-14 Thread Simon Horman
On Mon, Jun 12, 2017 at 11:32:15AM +0200, Geert Uytterhoeven wrote: > Hi Simon, Magnus, Morimoto-san, > > This patch series describes all resets wired to the audio modules on > R-Car Gen3 SoCs, following the DT binding update in commit > 5f440c48c5d5a11f ("ASoC: rsnd: Document optional reset

Re: [PATCH 1/2] soc: renesas: rcar-sysc: Use GENPD_FLAG_ALWAYS_ON

2017-06-14 Thread Simon Horman
On Mon, Jun 12, 2017 at 02:27:58PM +0200, Ulf Hansson wrote: > On 12 June 2017 at 11:23, Geert Uytterhoeven wrote: > > Improve handling of always-on PM domains by using the > > GENPD_FLAG_ALWAYS_ON flag introduced in commit ffaa42e8a40b7f10 ("PM / > > Domains: Enable users of genpd to specify alwa

Re: [PATCH 2/2] ARM: shmobile: pm-rmobile: Use GENPD_FLAG_ALWAYS_ON

2017-06-14 Thread Simon Horman
On Mon, Jun 12, 2017 at 02:27:53PM +0200, Ulf Hansson wrote: > On 12 June 2017 at 11:23, Geert Uytterhoeven wrote: > > Improve handling of always-on PM domains by using the > > GENPD_FLAG_ALWAYS_ON flag introduced in commit ffaa42e8a40b7f10 ("PM / > > Domains: Enable users of genpd to specify alwa

[PATCH] arch/arm64: defconfig: Compile Renesas Sound related drivers as Module

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current Renesas Sound related drivers are compiled as built-in. Let's compile it as Module to reduce ARM64 Kernel size. Signed-off-by: Kuninori Morimoto --- arch/arm64/configs/defconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64

[PATCH] ASoC: rsnd: reduce confusable macro parameter magic

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto rsnd_dai_call() macro is using "priv" inside. Thus, if caller function doesn't have "priv" related operation, strange phenomenon occur which code is using "priv", but compiler indicates "unused variable 'priv'". From code point of view, it is not problem, but it is very

Re: [PATCH v2 0/2] Avoid namespace collision within macros & tidyup

2017-06-14 Thread Ian Arkver
On 14/06/17 08:18, Ramesh Shanmugasundaram wrote: Subject: Re: [PATCH v2 0/2] Avoid namespace collision within macros & tidyup On 13/06/17 14:33, Ramesh Shanmugasundaram wrote: Hi All, The readx_poll_timeout & similar macros defines local variable that can cause name space collision with the c

RE: [PATCH v2 0/2] Avoid namespace collision within macros & tidyup

2017-06-14 Thread Ramesh Shanmugasundaram
> Subject: Re: [PATCH v2 0/2] Avoid namespace collision within macros & > tidyup > > On 13/06/17 14:33, Ramesh Shanmugasundaram wrote: > > Hi All, > > > > The readx_poll_timeout & similar macros defines local variable that > > can cause name space collision with the caller. Fixed this issue by > >