[PATCH 2/3] ASoC: mchp-i2s-mcc: Fix unprepare of GCLK

2019-08-20 Thread Codrin Ciubotariu
Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/mchp-i2s-mcc.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/sound/soc/atmel/mchp-i2s-mcc.c b/sound/soc/atmel/mchp-i2s-mcc.c index 8272915fa09b..ab7d5f98e759 100644 --- a/sound/soc/atmel/mchp-i2s-mcc.c +++ b/sound

[PATCH 1/3] ASoC: mchp-i2s-mcc: Wait for RX/TX RDY only if controller is running

2019-08-20 Thread Codrin Ciubotariu
: 7e0cdf545a55 ("ASoC: mchp-i2s-mcc: add driver for I2SC Multi-Channel Controller") Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/mchp-i2s-mcc.c | 28 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/sound/soc/atmel/mchp-i2s-mcc.c b/sound

[PATCH 3/3] ASoC: mchp-i2s-mcc: Fix simultaneous capture and playback in master mode

2019-08-20 Thread Codrin Ciubotariu
in calculating the divisors before comparing the configuration registers. BCLK and LRC are then configured and started only if the controller is not already running. Fixes: 7e0cdf545a55 ("ASoC: mchp-i2s-mcc: add driver for I2SC Multi-Channel Controller") Signed-off-by: Codrin Ciubotariu

[PATCH 0/3] ASoC: mchp-i2s-mcc: Several fixes

2019-08-20 Thread Codrin Ciubotariu
is in master mode and both capture and playback are played at the same time. All three patches have a "Fixes" tag. Although they are independent, some conflicts might appear if they are not applied in the order presented in this patchset. If so, please let me know so I can rebase them. Codrin

[PATCH] ASoC: codecs: ad193x: Use regmap_multi_reg_write() when initializing

2019-07-10 Thread Codrin Ciubotariu
Using regmap_multi_reg_write() when we set the default values for our registers makes the code smaller and easier to read. Suggested-by: Tzung-Bi Shih Signed-off-by: Codrin Ciubotariu --- sound/soc/codecs/ad193x.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff

[PATCH 2/2] ASoC: codecs: ad193x: Reset used registers at probe

2019-06-27 Thread Codrin Ciubotariu
Since the ad193x codecs have no software reset, we have to reinitialize the registers after a hardware reset to assure no previous values are kept. Signed-off-by: Codrin Ciubotariu --- sound/soc/codecs/ad193x.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/sound/soc/codecs

[PATCH 1/2] ASoC: codecs: ad193x: Group register initialization at probe

2019-06-27 Thread Codrin Ciubotariu
Create a structure with the register initialization values at probe and use it to initialize all the registers at once. Signed-off-by: Codrin Ciubotariu --- The order of the initialization is changed, but it doesn't seem to matter. There is one checkpatch warning, let me know if you want

[PATCH 2/2] ASoC: codecs: ad193x: Reset DAC Control 1 register at probe

2019-06-26 Thread Codrin Ciubotariu
will remain configured for 8 channels. This patch resets this register at probe to its default value. Signed-off-by: Codrin Ciubotariu --- sound/soc/codecs/ad193x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/ad193x.c b/sound/soc/codecs/ad193x.c index 3ebc0524f4b2..cda435562a1d

[PATCH 1/2] ASoC: codecs: ad193x: Fix memory corruption on BE 64b systems

2019-06-26 Thread Codrin Ciubotariu
ed-by: Dan Carpenter Signed-off-by: Codrin Ciubotariu --- sound/soc/codecs/ad193x.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/ad193x.c b/sound/soc/codecs/ad193x.c index 05f4514048e2..3ebc0524f4b2 100644 --- a/sound/soc/codecs/ad193x.c +++ b/sound/

[RESEND][PATCH] clk: at91: generated: Truncate divisor to GENERATED_MAX_DIV + 1

2019-06-25 Thread Codrin Ciubotariu
be greater than GENERATED_MAX_DIV + 1. Fixes: 8c7aa6328947 ("clk: at91: clk-generated: remove useless divisor loop") Signed-off-by: Codrin Ciubotariu Acked-by: Nicolas Ferre Acked-by: Ludovic Desroches --- - The email-server was converting my patches to base64, so I resend it usi

Re: [PATCH] ASoC: atmel: add SND_SOC_I2C_AND_SPI dependency

2018-09-26 Thread Codrin Ciubotariu
[=y] && COMPILE_TEST [=y] && SND_SOC_I2C_AND_SPI [=m] Fixes: a45f8853a5f9 ("ASoC: Add driver for PROTO Audio CODEC (with a WM8731)") Signed-off-by: Arnd Bergmann Reviewed-by: Codrin Ciubotariu Thank you! Best regards, Codrin --- sound/soc/atmel/Kconfig | 1 + 1

Re: [PATCH] ASoC: atmel: add SND_SOC_I2C_AND_SPI dependency

2018-09-26 Thread Codrin Ciubotariu
[=y] && COMPILE_TEST [=y] && SND_SOC_I2C_AND_SPI [=m] Fixes: a45f8853a5f9 ("ASoC: Add driver for PROTO Audio CODEC (with a WM8731)") Signed-off-by: Arnd Bergmann Reviewed-by: Codrin Ciubotariu Thank you! Best regards, Codrin --- sound/soc/atmel/Kconfig | 1 + 1

[PATCH v2 0/2] Add support for MikroElektronika PROTO codec

2018-08-31 Thread Codrin Ciubotariu
constraints for the fixed SYSLK; - fixed errors reported by kbuild; - adjusted "mikroe" in vendor prefixes; - updated description in Kconfig; Codrin Ciubotariu (2): ASoC: Add driver for PROTO Audio CODEC (with a WM8731) ASoC: mikroe-proto: dt-bindings: add DT bindings for P

[PATCH v2 1/2] ASoC: Add driver for PROTO Audio CODEC (with a WM8731)

2018-08-31 Thread Codrin Ciubotariu
Add support for the MikroElektronika PROTO audio codec board. URL to the audio chip: http://www.mikroe.com/add-on-boards/audio-voice/audio-codec-proto/ Signed-off-by: Florian Meier Signed-off-by: Codrin Ciubotariu --- Changes in v2: - removed constraints for the fixed SYSCLK; - fixed errors

[PATCH v2 0/2] Add support for MikroElektronika PROTO codec

2018-08-31 Thread Codrin Ciubotariu
constraints for the fixed SYSLK; - fixed errors reported by kbuild; - adjusted "mikroe" in vendor prefixes; - updated description in Kconfig; Codrin Ciubotariu (2): ASoC: Add driver for PROTO Audio CODEC (with a WM8731) ASoC: mikroe-proto: dt-bindings: add DT bindings for P

[PATCH v2 1/2] ASoC: Add driver for PROTO Audio CODEC (with a WM8731)

2018-08-31 Thread Codrin Ciubotariu
Add support for the MikroElektronika PROTO audio codec board. URL to the audio chip: http://www.mikroe.com/add-on-boards/audio-voice/audio-codec-proto/ Signed-off-by: Florian Meier Signed-off-by: Codrin Ciubotariu --- Changes in v2: - removed constraints for the fixed SYSCLK; - fixed errors

[PATCH v2 2/2] ASoC: mikroe-proto: dt-bindings: add DT bindings for PROTO board

2018-08-31 Thread Codrin Ciubotariu
DT binding documentation for this new ASoC driver. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - adjusted "mikroe" position in vendor-prefixes.txt; .../bindings/sound/mikroe,mikroe-proto.txt| 23 +++ .../devicetree/bindings/vendor-prefixes.txt | 1

[PATCH v2 2/2] ASoC: mikroe-proto: dt-bindings: add DT bindings for PROTO board

2018-08-31 Thread Codrin Ciubotariu
DT binding documentation for this new ASoC driver. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - adjusted "mikroe" position in vendor-prefixes.txt; .../bindings/sound/mikroe,mikroe-proto.txt| 23 +++ .../devicetree/bindings/vendor-prefixes.txt | 1

[PATCH 2/2] ARM: multi_v7_defconfig: add Atmel I2S driver

2018-08-29 Thread Codrin Ciubotariu
Add atmel-i2s driver CONFIG_SND_ATMEL_SOC_I2S. Signed-off-by: Codrin Ciubotariu --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index fc33444e94f0..037a19d9802f 100644

[PATCH 2/2] ARM: multi_v7_defconfig: add Atmel I2S driver

2018-08-29 Thread Codrin Ciubotariu
Add atmel-i2s driver CONFIG_SND_ATMEL_SOC_I2S. Signed-off-by: Codrin Ciubotariu --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index fc33444e94f0..037a19d9802f 100644

[PATCH 1/2] ARM: configs: at91: Add I2S driver to sama5

2018-08-29 Thread Codrin Ciubotariu
Add I2S CONFIG_SND_ATMEL_SOC_I2S to sama5_defconfig. Signed-off-by: Codrin Ciubotariu --- arch/arm/configs/sama5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig index 2080025556b5..b6d73055a854 100644 --- a/arch

[PATCH 1/2] ARM: configs: at91: Add I2S driver to sama5

2018-08-29 Thread Codrin Ciubotariu
Add I2S CONFIG_SND_ATMEL_SOC_I2S to sama5_defconfig. Signed-off-by: Codrin Ciubotariu --- arch/arm/configs/sama5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig index 2080025556b5..b6d73055a854 100644 --- a/arch

Re: [PATCH 1/2] ASoC: Add driver for PROTO Audio CODEC (with a WM8731)

2018-08-29 Thread Codrin Ciubotariu
On 29.08.2018 18:20, Codrin Ciubotariu wrote: On 29.08.2018 17:53, Mark Brown wrote: On Wed, Aug 29, 2018 at 05:47:26PM +0300, Codrin Ciubotariu wrote: +static const unsigned int wm8731_rates_12288000[] = { +    8000, 32000, 48000, 96000, +}; + +static struct snd_pcm_hw_constraint_list

Re: [PATCH 1/2] ASoC: Add driver for PROTO Audio CODEC (with a WM8731)

2018-08-29 Thread Codrin Ciubotariu
On 29.08.2018 18:20, Codrin Ciubotariu wrote: On 29.08.2018 17:53, Mark Brown wrote: On Wed, Aug 29, 2018 at 05:47:26PM +0300, Codrin Ciubotariu wrote: +static const unsigned int wm8731_rates_12288000[] = { +    8000, 32000, 48000, 96000, +}; + +static struct snd_pcm_hw_constraint_list

Re: [PATCH 1/2] ASoC: Add driver for PROTO Audio CODEC (with a WM8731)

2018-08-29 Thread Codrin Ciubotariu
On 29.08.2018 17:53, Mark Brown wrote: On Wed, Aug 29, 2018 at 05:47:26PM +0300, Codrin Ciubotariu wrote: +static const unsigned int wm8731_rates_12288000[] = { + 8000, 32000, 48000, 96000, +}; + +static struct snd_pcm_hw_constraint_list wm8731_constraints_12288000 = { + .list

Re: [PATCH 1/2] ASoC: Add driver for PROTO Audio CODEC (with a WM8731)

2018-08-29 Thread Codrin Ciubotariu
On 29.08.2018 17:53, Mark Brown wrote: On Wed, Aug 29, 2018 at 05:47:26PM +0300, Codrin Ciubotariu wrote: +static const unsigned int wm8731_rates_12288000[] = { + 8000, 32000, 48000, 96000, +}; + +static struct snd_pcm_hw_constraint_list wm8731_constraints_12288000 = { + .list

[PATCH 1/2] ASoC: Add driver for PROTO Audio CODEC (with a WM8731)

2018-08-29 Thread Codrin Ciubotariu
Add support for the MikroElektronika PROTO audio codec board. URL to the audio chip: http://www.mikroe.com/add-on-boards/audio-voice/audio-codec-proto/ Signed-off-by: Florian Meier Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/Kconfig| 7 ++ sound/soc/atmel/Makefile

[PATCH 1/2] ASoC: Add driver for PROTO Audio CODEC (with a WM8731)

2018-08-29 Thread Codrin Ciubotariu
Add support for the MikroElektronika PROTO audio codec board. URL to the audio chip: http://www.mikroe.com/add-on-boards/audio-voice/audio-codec-proto/ Signed-off-by: Florian Meier Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/Kconfig| 7 ++ sound/soc/atmel/Makefile

[PATCH 2/2] ASoC: mikroe-proto: dt-bindings: add DT bindings for PROTO board

2018-08-29 Thread Codrin Ciubotariu
DT binding documentation for this new ASoC driver. Signed-off-by: Codrin Ciubotariu --- .../bindings/sound/mikroe,mikroe-proto.txt| 23 +++ .../devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 24 insertions(+) create mode 100644 Documentation/devicetree

[PATCH 2/2] ASoC: mikroe-proto: dt-bindings: add DT bindings for PROTO board

2018-08-29 Thread Codrin Ciubotariu
DT binding documentation for this new ASoC driver. Signed-off-by: Codrin Ciubotariu --- .../bindings/sound/mikroe,mikroe-proto.txt| 23 +++ .../devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 24 insertions(+) create mode 100644 Documentation/devicetree

[PATCH 0/2] ASoC: Add support for MikroElektronika PROTO codec

2018-08-29 Thread Codrin Ciubotariu
This patchset is based on Florian's initial PROTO driver: https://lkml.org/lkml/2013/5/22/342 My changes made the driver more generic, so that we could connect other I2S CPU DAIs, by using device-tree. Tested with sama5d2 I2S driver. Codrin Ciubotariu (2): ASoC: Add driver for PROTO Audio

[PATCH 0/2] ASoC: Add support for MikroElektronika PROTO codec

2018-08-29 Thread Codrin Ciubotariu
This patchset is based on Florian's initial PROTO driver: https://lkml.org/lkml/2013/5/22/342 My changes made the driver more generic, so that we could connect other I2S CPU DAIs, by using device-tree. Tested with sama5d2 I2S driver. Codrin Ciubotariu (2): ASoC: Add driver for PROTO Audio

[PATCH v7 3/3] ARM: dts: at91: sama5d2 Xplained: add pin muxing for I2S

2018-08-06 Thread Codrin Ciubotariu
From: Cyrille Pitchen This patch sets the pin muxing for the I2S controllers Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: added pin muxing for the second controller] Signed-off-by: Codrin Ciubotariu --- Changes in v7: - added comments with pin conflicts created

[PATCH v7 3/3] ARM: dts: at91: sama5d2 Xplained: add pin muxing for I2S

2018-08-06 Thread Codrin Ciubotariu
From: Cyrille Pitchen This patch sets the pin muxing for the I2S controllers Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: added pin muxing for the second controller] Signed-off-by: Codrin Ciubotariu --- Changes in v7: - added comments with pin conflicts created

[PATCH v7 1/3] ARM: dts: at91: sama5d2: add I2S clock muxing nodes

2018-08-06 Thread Codrin Ciubotariu
This patch adds two clock muxes for the two I2S buses present on sama5d2 platforms. Signed-off-by: Codrin Ciubotariu --- Changes in v7: - none Changes in v6: - none arch/arm/boot/dts/sama5d2.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm

[PATCH v7 2/3] ARM: dts: at91: sama5d2: add nodes for I2S controllers

2018-08-06 Thread Codrin Ciubotariu
From: Cyrille Pitchen This patch adds DT nodes for I2S0 and I2S1. It also adds an alias for each I2S node. Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: removed unnecessary clock phandles] Signed-off-by: Codrin Ciubotariu --- Changes in v7: - none Changes in v6

[PATCH v7 1/3] ARM: dts: at91: sama5d2: add I2S clock muxing nodes

2018-08-06 Thread Codrin Ciubotariu
This patch adds two clock muxes for the two I2S buses present on sama5d2 platforms. Signed-off-by: Codrin Ciubotariu --- Changes in v7: - none Changes in v6: - none arch/arm/boot/dts/sama5d2.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm

[PATCH v7 2/3] ARM: dts: at91: sama5d2: add nodes for I2S controllers

2018-08-06 Thread Codrin Ciubotariu
From: Cyrille Pitchen This patch adds DT nodes for I2S0 and I2S1. It also adds an alias for each I2S node. Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: removed unnecessary clock phandles] Signed-off-by: Codrin Ciubotariu --- Changes in v7: - none Changes in v6

[PATCH v7 0/3] ARM: dts: at91: sama5d2: Add nodes for I2S

2018-08-06 Thread Codrin Ciubotariu
t gclk as parent of i2smuxclk; Codrin Ciubotariu (1): ARM: dts: at91: sama5d2: add I2S clock muxing nodes Cyrille Pitchen (2): ARM: dts: at91: sama5d2: add nodes for I2S controllers ARM: dts: at91: sama5d2 Xplained: add pin muxing for I2S arch/arm/boot/dts/at91-sama5d2_xplained.dts | 30 +++

[PATCH v7 0/3] ARM: dts: at91: sama5d2: Add nodes for I2S

2018-08-06 Thread Codrin Ciubotariu
t gclk as parent of i2smuxclk; Codrin Ciubotariu (1): ARM: dts: at91: sama5d2: add I2S clock muxing nodes Cyrille Pitchen (2): ARM: dts: at91: sama5d2: add nodes for I2S controllers ARM: dts: at91: sama5d2 Xplained: add pin muxing for I2S arch/arm/boot/dts/at91-sama5d2_xplained.dts | 30 +++

Re: [PATCH v6 3/3] ARM: dts: at91: sama5d2 Xplained: add pin muxing for I2S

2018-07-30 Thread Codrin Ciubotariu
On 30.07.2018 16:49, Claudiu Beznea wrote: Hi Codrin, On 30.07.2018 14:40, Codrin Ciubotariu wrote: From: Cyrille Pitchen This patch sets the pin muxing for the I2S controllers Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: added pin muxing for the second controller

Re: [PATCH v6 3/3] ARM: dts: at91: sama5d2 Xplained: add pin muxing for I2S

2018-07-30 Thread Codrin Ciubotariu
On 30.07.2018 16:49, Claudiu Beznea wrote: Hi Codrin, On 30.07.2018 14:40, Codrin Ciubotariu wrote: From: Cyrille Pitchen This patch sets the pin muxing for the I2S controllers Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: added pin muxing for the second controller

[PATCH v6 0/3] ARM: dts: at91: sama5d2: Add nodes for I2S

2018-07-30 Thread Codrin Ciubotariu
These are the remaining dts patches from the series: [PATCH v5 0/5] ASoC: add driver for Atmel I2S controller v5 -> v6 - removed unnecessary phandles to audio PLL clock from the I2S nodes; - using assigned clocks to set gclk as parent of i2smuxclk; Codrin Ciubotariu (1): ARM: dts: a

[PATCH v6 0/3] ARM: dts: at91: sama5d2: Add nodes for I2S

2018-07-30 Thread Codrin Ciubotariu
These are the remaining dts patches from the series: [PATCH v5 0/5] ASoC: add driver for Atmel I2S controller v5 -> v6 - removed unnecessary phandles to audio PLL clock from the I2S nodes; - using assigned clocks to set gclk as parent of i2smuxclk; Codrin Ciubotariu (1): ARM: dts: a

[PATCH v6 3/3] ARM: dts: at91: sama5d2 Xplained: add pin muxing for I2S

2018-07-30 Thread Codrin Ciubotariu
From: Cyrille Pitchen This patch sets the pin muxing for the I2S controllers Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: added pin muxing for the second controller] Signed-off-by: Codrin Ciubotariu --- Changes in v6: - none; arch/arm/boot/dts/at91

[PATCH v6 2/3] ARM: dts: at91: sama5d2: add nodes for I2S controllers

2018-07-30 Thread Codrin Ciubotariu
From: Cyrille Pitchen This patch adds DT nodes for I2S0 and I2S1. It also adds an alias for each I2S node. Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: removed unnecessary clock phandles] Signed-off-by: Codrin Ciubotariu --- Changes in v6: - removed unnecessary

[PATCH v6 3/3] ARM: dts: at91: sama5d2 Xplained: add pin muxing for I2S

2018-07-30 Thread Codrin Ciubotariu
From: Cyrille Pitchen This patch sets the pin muxing for the I2S controllers Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: added pin muxing for the second controller] Signed-off-by: Codrin Ciubotariu --- Changes in v6: - none; arch/arm/boot/dts/at91

[PATCH v6 2/3] ARM: dts: at91: sama5d2: add nodes for I2S controllers

2018-07-30 Thread Codrin Ciubotariu
From: Cyrille Pitchen This patch adds DT nodes for I2S0 and I2S1. It also adds an alias for each I2S node. Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: removed unnecessary clock phandles] Signed-off-by: Codrin Ciubotariu --- Changes in v6: - removed unnecessary

[PATCH v6 1/3] ARM: dts: at91: sama5d2: add I2S clock muxing nodes

2018-07-30 Thread Codrin Ciubotariu
This patch adds two clock muxes for the two I2S buses present on sama5d2 platforms. Signed-off-by: Codrin Ciubotariu --- Changes in v6: - none arch/arm/boot/dts/sama5d2.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch

[PATCH v6 1/3] ARM: dts: at91: sama5d2: add I2S clock muxing nodes

2018-07-30 Thread Codrin Ciubotariu
This patch adds two clock muxes for the two I2S buses present on sama5d2 platforms. Signed-off-by: Codrin Ciubotariu --- Changes in v6: - none arch/arm/boot/dts/sama5d2.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch

Re: [PATCH v5 2/5] clk: at91: add I2S clock mux driver

2018-07-09 Thread Codrin Ciubotariu
On 06.07.2018 21:12, Stephen Boyd wrote: Quoting Codrin Ciubotariu (2018-06-18 07:12:36) This driver is a simple muxing driver that controls the I2S's clock input by using syscon/regmap to change the parent. The available inputs can be peripheral clock and generated clock. Signed-off

Re: [PATCH v5 2/5] clk: at91: add I2S clock mux driver

2018-07-09 Thread Codrin Ciubotariu
On 06.07.2018 21:12, Stephen Boyd wrote: Quoting Codrin Ciubotariu (2018-06-18 07:12:36) This driver is a simple muxing driver that controls the I2S's clock input by using syscon/regmap to change the parent. The available inputs can be peripheral clock and generated clock. Signed-off

Re: [PATCH v5 4/5] ARM: dts: at91: sama5d2: add nodes for I2S controllers

2018-07-09 Thread Codrin Ciubotariu
On 06.07.2018 22:39, Alexandre Belloni wrote: Hi Codrin, On 18/06/2018 17:12:38+0300, Codrin Ciubotariu wrote: From: Cyrille Pitchen This patch adds DT nodes for I2S0 and I2S1. It also adds an alias for each I2S node. Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: added

Re: [PATCH v5 4/5] ARM: dts: at91: sama5d2: add nodes for I2S controllers

2018-07-09 Thread Codrin Ciubotariu
On 06.07.2018 22:39, Alexandre Belloni wrote: Hi Codrin, On 18/06/2018 17:12:38+0300, Codrin Ciubotariu wrote: From: Cyrille Pitchen This patch adds DT nodes for I2S0 and I2S1. It also adds an alias for each I2S node. Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: added

[PATCH 2/2] ASoC: atmel-i2s: dt-bindings: Remove unnecessary phandle to aclk

2018-07-03 Thread Codrin Ciubotariu
The optional clock phandle to aclk (Audio PLL clock) is no longer needed by the driver. Signed-off-by: Codrin Ciubotariu --- Documentation/devicetree/bindings/sound/atmel-i2s.txt | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings

[PATCH 2/2] ASoC: atmel-i2s: dt-bindings: Remove unnecessary phandle to aclk

2018-07-03 Thread Codrin Ciubotariu
The optional clock phandle to aclk (Audio PLL clock) is no longer needed by the driver. Signed-off-by: Codrin Ciubotariu --- Documentation/devicetree/bindings/sound/atmel-i2s.txt | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings

[PATCH 0/2] ASoC: atmel-i2s: Remove unnecessary audio PLL clock

2018-07-03 Thread Codrin Ciubotariu
is patchet removes all references to the audio PLL clock from the driver and updates the driver's bindings. Codrin Ciubotariu (2): ASoC: atmel-i2s: Remove unnecessary audio PLL clock (aclk) ASoC: atmel-i2s: dt-bindings: Remove unnecessary phandle to aclk .../devicetree/bindings/sound/atmel-i2s.

[PATCH 0/2] ASoC: atmel-i2s: Remove unnecessary audio PLL clock

2018-07-03 Thread Codrin Ciubotariu
is patchet removes all references to the audio PLL clock from the driver and updates the driver's bindings. Codrin Ciubotariu (2): ASoC: atmel-i2s: Remove unnecessary audio PLL clock (aclk) ASoC: atmel-i2s: dt-bindings: Remove unnecessary phandle to aclk .../devicetree/bindings/sound/atmel-i2s.

[PATCH 1/2] ASoC: atmel-i2s: Remove unnecessary audio PLL clock (aclk)

2018-07-03 Thread Codrin Ciubotariu
The generated clock (gclk) driver is able to set aclk as its parent and change its rate alone, if needed. This means that our driver no longer needs to configure aclk and we can let gclk select and configure its clock source. Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/atmel-i2s.c | 46

[PATCH 1/2] ASoC: atmel-i2s: Remove unnecessary audio PLL clock (aclk)

2018-07-03 Thread Codrin Ciubotariu
The generated clock (gclk) driver is able to set aclk as its parent and change its rate alone, if needed. This means that our driver no longer needs to configure aclk and we can let gclk select and configure its clock source. Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/atmel-i2s.c | 46

[PATCH v5 0/5] ASoC: add driver for Atmel I2S controller

2018-06-18 Thread Codrin Ciubotariu
added devicetree nodes and pin muxing for I2S; v2 -> v3 - fix the coding style, add some more comments and add a section dedicated to sama5d2 SoCs in the DT binding documentation as suggested by Mark Brown. v1 -> v2 - initialize dev->dev before calling dev->caps->mck_init()

[PATCH v5 0/5] ASoC: add driver for Atmel I2S controller

2018-06-18 Thread Codrin Ciubotariu
added devicetree nodes and pin muxing for I2S; v2 -> v3 - fix the coding style, add some more comments and add a section dedicated to sama5d2 SoCs in the DT binding documentation as suggested by Mark Brown. v1 -> v2 - initialize dev->dev before calling dev->caps->mck_init()

[PATCH v5 5/5] ARM: dts: at91: sama5d2 Xplained: add pin muxing for I2S

2018-06-18 Thread Codrin Ciubotariu
From: Cyrille Pitchen This patch sets the pin muxing for the I2S controllers Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: added pin muxing for the second controller] Signed-off-by: Codrin Ciubotariu --- Changes in v5: - Previous name was: [PATCH v4 7/7

[PATCH v5 5/5] ARM: dts: at91: sama5d2 Xplained: add pin muxing for I2S

2018-06-18 Thread Codrin Ciubotariu
From: Cyrille Pitchen This patch sets the pin muxing for the I2S controllers Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: added pin muxing for the second controller] Signed-off-by: Codrin Ciubotariu --- Changes in v5: - Previous name was: [PATCH v4 7/7

[PATCH v5 2/5] clk: at91: add I2S clock mux driver

2018-06-18 Thread Codrin Ciubotariu
This driver is a simple muxing driver that controls the I2S's clock input by using syscon/regmap to change the parent. The available inputs can be peripheral clock and generated clock. Signed-off-by: Codrin Ciubotariu --- Changes in v5: - removed CLK_IGNORE_UNUSED flag; - fixed

[PATCH v5 2/5] clk: at91: add I2S clock mux driver

2018-06-18 Thread Codrin Ciubotariu
This driver is a simple muxing driver that controls the I2S's clock input by using syscon/regmap to change the parent. The available inputs can be peripheral clock and generated clock. Signed-off-by: Codrin Ciubotariu --- Changes in v5: - removed CLK_IGNORE_UNUSED flag; - fixed

[PATCH v5 3/5] ARM: dts: at91: sama5d2: add I2S clock muxing nodes

2018-06-18 Thread Codrin Ciubotariu
This patch adds two clock muxes for the two I2S buses present on sama5d2 platforms. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/sama5d2.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index

[PATCH v5 3/5] ARM: dts: at91: sama5d2: add I2S clock muxing nodes

2018-06-18 Thread Codrin Ciubotariu
This patch adds two clock muxes for the two I2S buses present on sama5d2 platforms. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/sama5d2.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index

[PATCH v5 4/5] ARM: dts: at91: sama5d2: add nodes for I2S controllers

2018-06-18 Thread Codrin Ciubotariu
From: Cyrille Pitchen This patch adds DT nodes for I2S0 and I2S1. It also adds an alias for each I2S node. Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: added phandle to new mux clock] Signed-off-by: Codrin Ciubotariu --- The bindings for the I2S node are applied

[PATCH v5 4/5] ARM: dts: at91: sama5d2: add nodes for I2S controllers

2018-06-18 Thread Codrin Ciubotariu
From: Cyrille Pitchen This patch adds DT nodes for I2S0 and I2S1. It also adds an alias for each I2S node. Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: added phandle to new mux clock] Signed-off-by: Codrin Ciubotariu --- The bindings for the I2S node are applied

[PATCH v5 1/5] dt-bindings: clk: at91: add an I2S mux clock

2018-06-18 Thread Codrin Ciubotariu
The I2S mux clock can be used to select the I2S input clock. The available parents are the peripheral and the generated clocks. Signed-off-by: Codrin Ciubotariu --- Changes in v5: - specified clock's parent; - added a newline before adding the clock's compatible string

[PATCH v5 1/5] dt-bindings: clk: at91: add an I2S mux clock

2018-06-18 Thread Codrin Ciubotariu
The I2S mux clock can be used to select the I2S input clock. The available parents are the peripheral and the generated clocks. Signed-off-by: Codrin Ciubotariu --- Changes in v5: - specified clock's parent; - added a newline before adding the clock's compatible string

Re: [PATCH v4 1/7] dt-bindings: clk: at91: add an I2S mux clock

2018-06-07 Thread Codrin Ciubotariu
On 31.05.2018 18:56, Rob Herring wrote: On Thu, May 31, 2018 at 10:31 AM, Stephen Boyd wrote: Quoting Rob Herring (2018-05-31 07:20:57) On Thu, May 31, 2018 at 5:25 AM, Codrin Ciubotariu wrote: On 31.05.2018 03:58, Rob Herring wrote: On Fri, May 25, 2018 at 03:34:22PM +0300, Codrin

Re: [PATCH v4 1/7] dt-bindings: clk: at91: add an I2S mux clock

2018-06-07 Thread Codrin Ciubotariu
On 31.05.2018 18:56, Rob Herring wrote: On Thu, May 31, 2018 at 10:31 AM, Stephen Boyd wrote: Quoting Rob Herring (2018-05-31 07:20:57) On Thu, May 31, 2018 at 5:25 AM, Codrin Ciubotariu wrote: On 31.05.2018 03:58, Rob Herring wrote: On Fri, May 25, 2018 at 03:34:22PM +0300, Codrin

Re: [PATCH v4 2/7] clk: at91: add I2S clock mux driver

2018-06-04 Thread Codrin Ciubotariu
On 31.05.2018 18:26, Stephen Boyd wrote: Quoting Codrin Ciubotariu (2018-05-25 05:34:23) This driver is a simple muxing driver that controls the I2S's clock input by using syscon/regmap to change the parrent. s/parrent/parent/ I will fix it. The available inputs can be Peripheral clock

Re: [PATCH v4 2/7] clk: at91: add I2S clock mux driver

2018-06-04 Thread Codrin Ciubotariu
On 31.05.2018 18:26, Stephen Boyd wrote: Quoting Codrin Ciubotariu (2018-05-25 05:34:23) This driver is a simple muxing driver that controls the I2S's clock input by using syscon/regmap to change the parrent. s/parrent/parent/ I will fix it. The available inputs can be Peripheral clock

Re: [PATCH v4 1/7] dt-bindings: clk: at91: add an I2S mux clock

2018-05-31 Thread Codrin Ciubotariu
On 31.05.2018 03:58, Rob Herring wrote: On Fri, May 25, 2018 at 03:34:22PM +0300, Codrin Ciubotariu wrote: The I2S mux clock can be used to select the I2S input clock. The available parents are the peripheral and the generated clocks. Signed-off-by: Codrin Ciubotariu --- .../devicetree

Re: [PATCH v4 1/7] dt-bindings: clk: at91: add an I2S mux clock

2018-05-31 Thread Codrin Ciubotariu
On 31.05.2018 03:58, Rob Herring wrote: On Fri, May 25, 2018 at 03:34:22PM +0300, Codrin Ciubotariu wrote: The I2S mux clock can be used to select the I2S input clock. The available parents are the peripheral and the generated clocks. Signed-off-by: Codrin Ciubotariu --- .../devicetree

[PATCH v4 6/7] ARM: dts: at91: sama5d2: add nodes for I2S controllers

2018-05-25 Thread Codrin Ciubotariu
From: Cyrille Pitchen <cyrille.pitc...@atmel.com> This patch adds DT nodes for I2S0 and I2S1. It also adds an alias for each I2S node. Signed-off-by: Cyrille Pitchen <cyrille.pitc...@atmel.com> [codrin.ciubota...@microchip.com: added phandle to new mux clock] Signed-off-by: Codri

[PATCH v4 6/7] ARM: dts: at91: sama5d2: add nodes for I2S controllers

2018-05-25 Thread Codrin Ciubotariu
From: Cyrille Pitchen This patch adds DT nodes for I2S0 and I2S1. It also adds an alias for each I2S node. Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: added phandle to new mux clock] Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/sama5d2.dtsi | 34

[PATCH v4 5/7] ASoC: atmel-i2s: add driver for the new Atmel I2S controller

2018-05-25 Thread Codrin Ciubotariu
From: Cyrille Pitchen <cyrille.pitc...@atmel.com> This patch adds support for the Atmel I2S controller embedded into sama5d2x SoCs. Signed-off-by: Cyrille Pitchen <cyrille.pitc...@atmel.com> Signed-off-by: Codrin Ciubotariu <codrin.ciubota...@microchip.com> --- Changes in v4:

[PATCH v4 5/7] ASoC: atmel-i2s: add driver for the new Atmel I2S controller

2018-05-25 Thread Codrin Ciubotariu
From: Cyrille Pitchen This patch adds support for the Atmel I2S controller embedded into sama5d2x SoCs. Signed-off-by: Cyrille Pitchen Signed-off-by: Codrin Ciubotariu --- Changes in v4: - treated -EPROBE_DEFER on probe; - replaced ternary operator with if; - return

[PATCH v4 2/7] clk: at91: add I2S clock mux driver

2018-05-25 Thread Codrin Ciubotariu
This driver is a simple muxing driver that controls the I2S's clock input by using syscon/regmap to change the parrent. The available inputs can be Peripheral clock and Generated clock. Signed-off-by: Codrin Ciubotariu <codrin.ciubota...@microchip.com> --- arch/arm/mach-at91/Kconfig

[PATCH v4 2/7] clk: at91: add I2S clock mux driver

2018-05-25 Thread Codrin Ciubotariu
This driver is a simple muxing driver that controls the I2S's clock input by using syscon/regmap to change the parrent. The available inputs can be Peripheral clock and Generated clock. Signed-off-by: Codrin Ciubotariu --- arch/arm/mach-at91/Kconfig | 4 ++ drivers/clk/at91/Makefile

[PATCH v4 3/7] ARM: dts: at91: sama5d2: add I2S clock muxing nodes

2018-05-25 Thread Codrin Ciubotariu
This patch adds two clock muxes for the two I2S buses present on sama5d2 platforms. Signed-off-by: Codrin Ciubotariu <codrin.ciubota...@microchip.com> --- arch/arm/boot/dts/sama5d2.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi

[PATCH v4 4/7] ASoC: atmel-i2s: dt-bindings: add DT bindings for I2S controller

2018-05-25 Thread Codrin Ciubotariu
From: Cyrille Pitchen <cyrille.pitc...@atmel.com> This patch adds DT bindings for the new Atmel I2S controller embedded inside sama5d2x SoCs. Signed-off-by: Cyrille Pitchen <cyrille.pitc...@atmel.com> Signed-off-by: Codrin Ciubotariu <codrin.ciubota...@microchip.com>

[PATCH v4 7/7] ARM: dts: at91: sama5d2 Xplained: add pin muxing for I2S

2018-05-25 Thread Codrin Ciubotariu
From: Cyrille Pitchen <cyrille.pitc...@atmel.com> This patch sets the pin muxing for the I2S controllers Signed-off-by: Cyrille Pitchen <cyrille.pitc...@atmel.com> [codrin.ciubota...@microchip.com: added pin muxing for the second controller] Signed-off-by: Codrin Ciubotariu <

[PATCH v4 0/7] ASoC: add driver for Atmel I2S controller

2018-05-25 Thread Codrin Ciubotariu
ng dev->caps->mck_init() Codrin Ciubotariu (3): dt-bindings: clk: at91: add an I2S mux clock clk: at91: add I2S clock mux driver ARM: dts: at91: sama5d2: add I2S clock muxing nodes Cyrille Pitchen (4): ASoC: atmel-i2s: dt-bindings: add DT bindings for I2S controller ASoC: atm

[PATCH v4 3/7] ARM: dts: at91: sama5d2: add I2S clock muxing nodes

2018-05-25 Thread Codrin Ciubotariu
This patch adds two clock muxes for the two I2S buses present on sama5d2 platforms. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/sama5d2.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index

[PATCH v4 4/7] ASoC: atmel-i2s: dt-bindings: add DT bindings for I2S controller

2018-05-25 Thread Codrin Ciubotariu
From: Cyrille Pitchen This patch adds DT bindings for the new Atmel I2S controller embedded inside sama5d2x SoCs. Signed-off-by: Cyrille Pitchen Signed-off-by: Codrin Ciubotariu --- Changes in v4: - more specific description for dmas, dma-names, clocks, clock-names

[PATCH v4 7/7] ARM: dts: at91: sama5d2 Xplained: add pin muxing for I2S

2018-05-25 Thread Codrin Ciubotariu
From: Cyrille Pitchen This patch sets the pin muxing for the I2S controllers Signed-off-by: Cyrille Pitchen [codrin.ciubota...@microchip.com: added pin muxing for the second controller] Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 28

[PATCH v4 0/7] ASoC: add driver for Atmel I2S controller

2018-05-25 Thread Codrin Ciubotariu
ng dev->caps->mck_init() Codrin Ciubotariu (3): dt-bindings: clk: at91: add an I2S mux clock clk: at91: add I2S clock mux driver ARM: dts: at91: sama5d2: add I2S clock muxing nodes Cyrille Pitchen (4): ASoC: atmel-i2s: dt-bindings: add DT bindings for I2S controller ASoC: atm

[PATCH v4 1/7] dt-bindings: clk: at91: add an I2S mux clock

2018-05-25 Thread Codrin Ciubotariu
The I2S mux clock can be used to select the I2S input clock. The available parents are the peripheral and the generated clocks. Signed-off-by: Codrin Ciubotariu <codrin.ciubota...@microchip.com> --- .../devicetree/bindings/clock/at91-clock.txt | 34 ++ 1 file c

[PATCH v4 1/7] dt-bindings: clk: at91: add an I2S mux clock

2018-05-25 Thread Codrin Ciubotariu
The I2S mux clock can be used to select the I2S input clock. The available parents are the peripheral and the generated clocks. Signed-off-by: Codrin Ciubotariu --- .../devicetree/bindings/clock/at91-clock.txt | 34 ++ 1 file changed, 34 insertions(+) diff --git

<    1   2