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

2018-08-06 Thread Codrin Ciubotariu
clk 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 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 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 by

[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

[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 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

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 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

[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 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 --- a

[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 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 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

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] 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 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 0/2] ASoC: atmel-i2s: Remove unnecessary audio PLL clock

2018-07-03 Thread Codrin Ciubotariu
k. This 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/

[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

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 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-o

[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 a

[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
>dev before calling 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

[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/Mak

[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 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 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 compati

[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 to

[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 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; -

[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 0/5] ASoC: add driver for Atmel I2S controller

2018-06-18 Thread Codrin Ciubotariu
from Mark Brown; - 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->

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 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

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

[PATCH 0/7] Add I2S-MCC support for Microchip's SAMA7G5

2021-02-23 Thread Codrin Ciubotariu
pair selection and FIFO support, exclusively for SAMA7G5. Codrin Ciubotariu (7): ASoC: convert Microchip I2SMCC binding to yaml dt-bindings: mchp,i2s-mcc: Add SAMA7G5 to binding ASoC: mchp-i2s-mcc: Add compatible for SAMA7G5 ASoC: mchp-i2s-mcc: Add multi-channel support for I2S and LEFT_J fo

[PATCH 2/7] dt-bindings: mchp,i2s-mcc: Add SAMA7G5 to binding

2021-02-23 Thread Codrin Ciubotariu
SAMA7G5 includes an updated version of the I2S-MCC driver, that includes 3 more DIN/DOUT pin pairs for multi-channel. Signed-off-by: Codrin Ciubotariu --- Documentation/devicetree/bindings/sound/mchp,i2s-mcc.yaml | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a

[PATCH 3/7] ASoC: mchp-i2s-mcc: Add compatible for SAMA7G5

2021-02-23 Thread Codrin Ciubotariu
Microchip's new SAMA7G5 includes an updated I2S-MCC compatible with the previous version found on SAM9X60. The new controller includes 8 (4 * 2) input and output data pins for up to 8 channels for I2S and Left-Justified formats. Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/Kc

[PATCH 1/7] ASoC: convert Microchip I2SMCC binding to yaml

2021-02-23 Thread Codrin Ciubotariu
This patch converts the Microchip I2SMCC bindings to DT schema format using json-schema. Signed-off-by: Codrin Ciubotariu --- .../bindings/sound/mchp,i2s-mcc.yaml | 86 +++ .../bindings/sound/mchp-i2s-mcc.txt | 43 -- 2 files changed, 86 insertions

[PATCH 6/7] ASoC: mchp-i2s-mcc: Add support to select TDM pins

2021-02-23 Thread Codrin Ciubotariu
rty is optional, useful only if TDM is used. If it's missing, DIN/DOUT 0 pins will be used by default. Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/mchp-i2s-mcc.c | 52 +++--- 1 file changed, 48 insertions(+), 4 deletions(-) diff --git a/sound/soc/atmel/mchp-i

[PATCH 4/7] ASoC: mchp-i2s-mcc: Add multi-channel support for I2S and LEFT_J formats

2021-02-23 Thread Codrin Ciubotariu
-by: Codrin Ciubotariu --- sound/soc/atmel/mchp-i2s-mcc.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/sound/soc/atmel/mchp-i2s-mcc.c b/sound/soc/atmel/mchp-i2s-mcc.c index 0ee01383e307..52d3f43148dc 100644 --- a/sound/soc/atmel/mchp-i2s-mcc.c +++ b/sound

[PATCH 5/7] dt-bindings: mchp,i2s-mcc: Add property to specify pin pair for TDM

2021-02-23 Thread Codrin Ciubotariu
ptional, needed only if TDM is used, and if it's missing DIN/DOUT 0 pins will be used by default. Signed-off-by: Codrin Ciubotariu --- .../devicetree/bindings/sound/mchp,i2s-mcc.yaml | 17 + 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/

[PATCH 7/7] ASoC: mchp-i2s-mcc: Add FIFOs support

2021-02-23 Thread Codrin Ciubotariu
I2S-MCC found on SAMA7G5 includes 2 FIFOs (capture and playback). When FIFOs are enabled, bits I2SMCC_ISRA.TXLRDYx and I2SMCC_ISRA.TXRRDYx must not be used. Bits I2SMCC_ISRB.TXFFRDY and I2SMCC_ISRB.RXFFRDY must be used instead. Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/mchp-i2s-mcc.c

[PATCH v3 1/2] dt-bindings: sound: add DT bindings for Microchip S/PDIF TX Controller

2020-08-03 Thread Codrin Ciubotariu
This patch adds DT bindings for the new Microchip S/PDIF TX Controller embedded inside sama7g5 SoCs. Signed-off-by: Codrin Ciubotariu --- Changes in v3: - removed 'oneOf' from 'compatible' property; - added 'maxItems: 1' to 'dmas' property; - removed

[PATCH v3 2/2] ASoC: mchp-spdiftx: add driver for S/PDIF TX Controller

2020-08-03 Thread Codrin Ciubotariu
The new SPDIF TX controller is a serial port compliant with the IEC- 60958 standard. It also supports programmable User Data and Channel Status fields. This IP is embedded in Microchip's sama7g5 SoC. Signed-off-by: Codrin Ciubotariu --- Changes in v2, v3: - none; sound/soc/atmel/Kc

[RFC PATCH 0/3] Separate BE DAI HW constraints from FE ones

2021-03-23 Thread Codrin Ciubotariu
conversion. I realize that the change to snd_pcm_hw_rule_add() has a big impact, even though all the drivers use snd_pcm_hw_rule_add() with substream->runtime, so passing substream instead of runtime is not that risky. Codrin Ciubotariu (3): pcm: use substream instead of runtime in snd_pcm_hw_r

[RFC PATCH 2/3] ASoC: soc-pcm: add hw_constraints for BE DAI links

2021-03-23 Thread Codrin Ciubotariu
Add a new struct snd_pcm_hw_constraints under struct snd_soc_dpcm_runtime. The BE DAIs can use the new structure to add constraints that will not affect the FE of the PCM and will only apply to BE HW parameters. Signed-off-by: Codrin Ciubotariu --- include/sound/pcm.h | 9

[RFC PATCH 3/3] ASoC: soc-pcm: apply BE HW constraint rules

2021-03-23 Thread Codrin Ciubotariu
same as the ones used for FE. The DAI link dpcm_merged_* flags are used to check if the FE and BE must share the same HW parameters. Signed-off-by: Codrin Ciubotariu --- include/sound/pcm.h | 2 ++ sound/core/pcm_native.c | 17 + sound/soc/soc-pcm.c | 30

[RFC PATCH] ASoC: pcm_dmaengine: Add support for BE DAIs

2020-12-02 Thread Codrin Ciubotariu
a BE platform driver. Signed-off-by: Codrin Ciubotariu --- Hello, This patch is more or less incomplete for the described scenario. This is because DMAengine's pcm->config is ignored for the BE DAI link, so runtime->hw is not updated. Also, since pcm_construct/destruct are not calle

[PATCH v2 0/7] Add I2S-MCC support for Microchip's SAMA7G5

2021-03-01 Thread Codrin Ciubotariu
pair selection and FIFO support, exclusively for SAMA7G5. Changes in v2: - moved DT binding conversion patch from the beginning to the end of the patch serieses - patches that update the DT binding are modified to change .txt file instead of .yaml Codrin Ciubotariu (7): dt-bindings: mchp,i2s-mcc

[PATCH v2 1/7] dt-bindings: mchp,i2s-mcc: Add SAMA7G5 to binding

2021-03-01 Thread Codrin Ciubotariu
SAMA7G5 includes an updated version of the I2S-MCC driver, that includes 3 more DIN/DOUT pin pairs for multi-channel. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - changes are done to mchp-i2s-mcc.txt insted of mchp,i2s-mcc.yaml Documentation/devicetree/bindings/sound/mchp-i2s-mcc.txt

[PATCH v2 7/7] ASoC: convert Microchip I2SMCC binding to yaml

2021-03-01 Thread Codrin Ciubotariu
This patch converts the Microchip I2SMCC bindings to DT schema format using json-schema. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - moved from the beginning to the end of the patch series; - includes the changes (to yaml) from the rest of the patches that update the DT binding

[PATCH v2 2/7] ASoC: mchp-i2s-mcc: Add compatible for SAMA7G5

2021-03-01 Thread Codrin Ciubotariu
Microchip's new SAMA7G5 includes an updated I2S-MCC compatible with the previous version found on SAM9X60. The new controller includes 8 (4 * 2) input and output data pins for up to 8 channels for I2S and Left-Justified formats. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none

[PATCH v2 3/7] ASoC: mchp-i2s-mcc: Add multi-channel support for I2S and LEFT_J formats

2021-03-01 Thread Codrin Ciubotariu
-by: Codrin Ciubotariu --- Changes in v2: - none sound/soc/atmel/mchp-i2s-mcc.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/sound/soc/atmel/mchp-i2s-mcc.c b/sound/soc/atmel/mchp-i2s-mcc.c index 0ee01383e307..52d3f43148dc 100644 --- a/sound/soc/atmel

[PATCH v2 5/7] ASoC: mchp-i2s-mcc: Add support to select TDM pins

2021-03-01 Thread Codrin Ciubotariu
rty is optional, useful only if TDM is used. If it's missing, DIN/DOUT 0 pins will be used by default. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none sound/soc/atmel/mchp-i2s-mcc.c | 52 +++--- 1 file changed, 48 insertions(+), 4 deletions(-) diff --g

[PATCH v2 4/7] dt-bindings: mchp,i2s-mcc: Add property to specify pin pair for TDM

2021-03-01 Thread Codrin Ciubotariu
ptional, needed only if TDM is used, and if it's missing DIN/DOUT 0 pins will be used by default. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - changes are done to mchp-i2s-mcc.txt insted of mchp,i2s-mcc.yaml Documentation/devicetree/bindings/sound/mchp-i2s-mcc.txt | 7 ++

[PATCH v2 6/7] ASoC: mchp-i2s-mcc: Add FIFOs support

2021-03-01 Thread Codrin Ciubotariu
I2S-MCC found on SAMA7G5 includes 2 FIFOs (capture and playback). When FIFOs are enabled, bits I2SMCC_ISRA.TXLRDYx and I2SMCC_ISRA.TXRRDYx must not be used. Bits I2SMCC_ISRB.TXFFRDY and I2SMCC_ISRB.RXFFRDY must be used instead. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none sound

[PATCH] i2c: at91: Send bus clear command if SCL or SDA is down

2019-09-11 Thread Codrin Ciubotariu
After a transfer timeout, some faulty I2C slave devices might hold down the SCL or the SDA pins. We can generate a bus clear command, hoping that the slave might release the pins. Signed-off-by: Codrin Ciubotariu --- drivers/i2c/busses/i2c-at91-master.c | 20 drivers/i2c

[PATCH v3] i2c: at91: Send bus clear command if SCL or SDA is down

2019-09-30 Thread Codrin Ciubotariu
After a transfer timeout, some faulty I2C slave devices might hold down the SCL or the SDA pins. We can generate a bus clear command, hoping that the slave might release the pins. Signed-off-by: Codrin Ciubotariu Acked-by: Ludovic Desroches --- Changes in v3: - fixed kbuild warning; Changes

[PATCH v2] i2c: at91: Send bus clear command if SCL or SDA is down

2019-09-25 Thread Codrin Ciubotariu
After a transfer timeout, some faulty I2C slave devices might hold down the SCL or the SDA pins. We can generate a bus clear command, hoping that the slave might release the pins. Signed-off-by: Codrin Ciubotariu Acked-by: Ludovic Desroches --- Changes in v2: - added '.has_clear_cmd&#x

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

2019-08-20 Thread Codrin Ciubotariu
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 2/3] ASoC: mchp-i2s-mcc: Fix unprepare of GCLK

2019-08-20 Thread Codrin Ciubotariu
ned-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
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

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

2019-06-25 Thread Codrin Ciubotariu
or 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

[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/

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

2019-06-26 Thread Codrin Ciubotariu
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 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 wa

[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 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 0/2] Add support for MikroElektronika PROTO codec

2018-08-31 Thread Codrin Ciubotariu
added 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

[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 net] net: dsa: microchip: set the correct number of ports

2020-07-02 Thread Codrin Ciubotariu
known registers. Fixes: b987e98e50ab ("dsa: add DSA switch driver for Microchip KSZ9477") Signed-off-by: Codrin Ciubotariu --- drivers/net/dsa/microchip/ksz8795.c | 3 +++ drivers/net/dsa/microchip/ksz9477.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/net/dsa/microchip/ksz87

[PATCH net-next] net: dsa: microchip: split adjust_link() in phylink_mac_link_{up|down}()

2020-07-02 Thread Codrin Ciubotariu
The DSA subsystem moved to phylink and adjust_link() became deprecated in the process. This patch removes adjust_link from the KSZ DSA switches and adds phylink_mac_link_up() and phylink_mac_link_down(). Signed-off-by: Codrin Ciubotariu --- drivers/net/dsa/microchip/ksz8795.c| 3

[PATCH net-next v2 1/2] net: dsa: microchip: split adjust_link() in phylink_mac_link_{up|down}()

2020-07-02 Thread Codrin Ciubotariu
The DSA subsystem moved to phylink and adjust_link() became deprecated in the process. This patch removes adjust_link from the KSZ DSA switches and adds phylink_mac_link_up() and phylink_mac_link_down(). Signed-off-by: Codrin Ciubotariu Reviewed-by: Russell King --- Changes in v2: - added

[PATCH net-next v2 2/2] net: dsa: microchip: remove unused private members

2020-07-02 Thread Codrin Ciubotariu
Private structure members live_ports, on_ports, rx_ports, tx_ports are initialized but not used anywhere. Let's remove them. Suggested-by: Russell King Signed-off-by: Codrin Ciubotariu --- Changes in v2: - new patch, there was no v1 drivers/net/dsa/microchip/ksz8795.c

[PATCH] ASoC: atmel-classd: remove codec component

2020-07-08 Thread Codrin Ciubotariu
report an error when will try to create entries for both componenets with the same name. Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/atmel-classd.c | 133 - 1 file changed, 48 insertions(+), 85 deletions(-) diff --git a/sound/soc/atmel/atmel-classd.c b

[PATCH v2] ASoC: atmel-classd: remove codec component

2020-07-08 Thread Codrin Ciubotariu
report an error when will try to create entries for both componenets with the same name. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - removed no longer used ATMEL_CLASSD_CODEC_DAI_NAME macro; sound/soc/atmel/atmel-classd.c | 134 - 1 file changed, 48

[PATCH v3] ASoC: atmel-classd: remove codec component

2020-07-08 Thread Codrin Ciubotariu
report an error when will try to create entries for both componenets with the same name. Signed-off-by: Codrin Ciubotariu --- Changes in v3: - fixed some newlines modified by no reason; Changes in v2: - removed no longer used ATMEL_CLASSD_CODEC_DAI_NAME macro; sound/soc/atmel/atmel-classd.c

[PATCH] ASoC: atmel-pdmic: remove codec component

2020-07-08 Thread Codrin Ciubotariu
report an error when will try to create entries for both componenets with the same name. Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/atmel-pdmic.c | 110 +- 1 file changed, 41 insertions(+), 69 deletions(-) diff --git a/sound/soc/atmel/atmel-pdmic.c b

[PATCH v2] ARM: dts: at91: sama5d2_xplained: Remove pdmic node

2020-06-18 Thread Codrin Ciubotariu
The PDMIC needs PDM microphones to work. sama5d2 xplained doesn't have such microphones, so there is no reason to enable PDMIC and take the pins since there is no-one using them. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - rebased on top of at91-dt; - added more details i

[PATCH] ARM: configs: at91: sama5: Enable CLASSD

2020-06-18 Thread Codrin Ciubotariu
CLASSD is present on SAMA5d2 SoCs. 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 8e1f78c19920..f688443fe7bf 100644 --- a/arch/arm/configs

[RFC PATCH 0/4] i2c: core: add generic GPIO bus recovery

2020-06-19 Thread Codrin Ciubotariu
. Codrin Ciubotariu (4): dt-binding: i2c: add generic properties for GPIO bus recovery i2c: core: add generic I2C GPIO recovery i2c: core: treat EPROBE_DEFER when acquiring SCL/SDA GPIOs i2c: at91: Move to generic GPIO bus recovery Documentation/devicetree/bindings/i2c/i2c.txt | 10 ++ drivers

[RFC PATCH 1/4] dt-binding: i2c: add generic properties for GPIO bus recovery

2020-06-19 Thread Codrin Ciubotariu
The I2C GPIO bus recovery properties consist of two GPIOS and one extra pinctrl state ("gpio" or "recovery"). Not all are mandatory for recovery. Signed-off-by: Codrin Ciubotariu --- Documentation/devicetree/bindings/i2c/i2c.txt | 10 ++ 1 file changed, 10 inserti

[RFC PATCH 2/4] i2c: core: add generic I2C GPIO recovery

2020-06-19 Thread Codrin Ciubotariu
this reason, we can add this common initialization in the core. This way, other I2C bus drivers will be able to support GPIO recovery just by providing a pointer to platform's pinctrl and calling i2c_recover_bus() when SDA is stuck low. Signed-off-by: Codrin Ciubotariu --- drivers/i2c/i2c-

[RFC PATCH 3/4] i2c: core: treat EPROBE_DEFER when acquiring SCL/SDA GPIOs

2020-06-19 Thread Codrin Ciubotariu
Even if I2C bus GPIO recovery is optional, devm_gpiod_get() can return -EPROBE_DEFER, so we should at least treat that. This ends up with i2c_register_adapter() to be able to return -EPROBE_DEFER. Signed-off-by: Codrin Ciubotariu --- drivers/i2c/i2c-core-base.c | 22 -- 1

[RFC PATCH 4/4] i2c: at91: Move to generic GPIO bus recovery

2020-06-19 Thread Codrin Ciubotariu
Make the Microchip at91 driver the first to use the generic GPIO bus recovery support from the I2C core and discard the driver implementation. Signed-off-by: Codrin Ciubotariu --- drivers/i2c/busses/i2c-at91-master.c | 69 ++-- drivers/i2c/busses/i2c-at91.h| 3

[PATCH 3/3] Revert "ARM: at91/dt: sama5d2 Xplained: add pdmic node"

2020-06-15 Thread Codrin Ciubotariu
There are no PDM microphones on SAMA5D2 Xplained, to exercize the PDMIC. This reverts commit ca6349a8c51f2e3d6f2acdb36431e7d7328261f7. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 16 1 file changed, 16 deletions(-) diff --git a/arch/arm

[PATCH 2/3] ARM: dts: at91: sam9x60ek: classd: pull-down the L1 and L3 lines

2020-06-15 Thread Codrin Ciubotariu
: 1e5f532c2737 ("ARM: dts: at91: sam9x60: add device tree for soc and board") Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sam9x60ek.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/at91-sam9x60ek.dts b/arch/arm/boot/dts/at91-sam

[PATCH 1/3] ARM: dts: at91: sama5d2_xplained: classd: pull-down the R1 and R3 lines

2020-06-15 Thread Codrin Ciubotariu
: b133ca7a653c ("ARM: dts: at91: sama5d2_xplained: add pin muxing and enable classd") Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/at91-sama5d2_xplai

[PATCH 1/2] dt-bindings: sound: add DT bindings for Microchip S/PDIF RX Controller

2020-10-02 Thread Codrin Ciubotariu
This patch adds DT bindings for the new Microchip S/PDIF RX Controller embedded inside sama7g5 SoCs. Signed-off-by: Codrin Ciubotariu --- .../bindings/sound/mchp,spdifrx.yaml | 73 +++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree

[PATCH 0/2] Add driver for Microchip S/PDIF RX

2020-10-02 Thread Codrin Ciubotariu
Filter - Register Write Protection - Abnormal Software Access and Internal Sequencer Integrity Check Reports This interface is available in Microchip's SAMA7G5 SoC. Codrin Ciubotariu (2): dt-bindings: sound: add DT bindings for Microchip S/PDIF RX Controller ASoC: mchp-spdifrx: add drive

[PATCH 2/2] ASoC: mchp-spdifrx: add driver for SPDIF RX

2020-10-02 Thread Codrin Ciubotariu
The new SPDIF RX controller is a serial port compliant with the IEC-60958 standard. It also supports programmable User Data and Channel Status fields. This IP is embedded in Microchip's sama7g5 SoC. Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/Kconfig| 13 + sound/soc/

[PATCH] i2c: pxa: move to generic GPIO recovery

2020-10-03 Thread Codrin Ciubotariu
Starting with commit 75820314de26 ("i2c: core: add generic I2C GPIO recovery") GPIO bus recovery is supported by the I2C core, so we can remove the driver implementation and use that one instead. Signed-off-by: Codrin Ciubotariu --- This patch is not tested. The only different thing

[PATCH v2] i2c: pxa: move to generic GPIO recovery

2020-10-04 Thread Codrin Ciubotariu
Starting with commit 75820314de26 ("i2c: core: add generic I2C GPIO recovery") GPIO bus recovery is supported by the I2C core, so we can remove the driver implementation and use that one instead. Signed-off-by: Codrin Ciubotariu --- This patch is not tested. Changes in v2: - r

  1   2   >