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

2021-03-23 Thread Codrin Ciubotariu
are the 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 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 0/3] Separate BE DAI HW constraints from FE ones

2021-03-23 Thread Codrin Ciubotariu
n. 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_rule_add()

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

2021-03-01 Thread Codrin Ciubotariu
al, 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 ++- 1 file

[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 v2 5/7] ASoC: mchp-i2s-mcc: Add support to select TDM pins

2021-03-01 Thread Codrin Ciubotariu
s 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 --git a/sound

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

[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 0/7] Add I2S-MCC support for Microchip's SAMA7G5

2021-03-01 Thread Codrin Ciubotariu
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: Add

[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 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 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
al, 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/mchp,i2s-m

[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
s 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-i2s-mcc.c b

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

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

2021-02-23 Thread Codrin Ciubotariu
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 formats

[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

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

2020-12-02 Thread Codrin Ciubotariu
as 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 called,

[PATCH] ASoC: mchp-spdiftx: Do not set Validity bit(s)

2020-11-04 Thread Codrin Ciubotariu
The Validity bits (bit 28) must not be set in order to have the samples valid. Some controllers look for this bit and ignore the samples if it is set. Fixes: 06ca24e98e6b ("ASoC: mchp-spdiftx: add driver for S/PDIF TX Controller") Signed-off-by: Codrin Ciubotariu --- sound/soc/

[PATCH] ASoC: atmel-i2s: do not warn if muxclk is missing

2020-11-03 Thread Codrin Ciubotariu
Besides the fact that muxclk is optional, muxclk can be set using assigned-clocks, removing the need to set it in driver. The warning is thus unneeded, so we can transform it in a debug print, eventually to just reflect that muxclk was not set by the driver. Signed-off-by: Codrin Ciubotariu

[PATCH] mfd: at91-usart: do not use compatible to register child devices

2020-11-03 Thread Codrin Ciubotariu
There are no separate serial/SPI devices under the at91-usart MFD, but actually the MFD is used as a serial or a SPI device. There are no DT sub-nodes for the MFD children, so we should use platform device API to register the drivers. Suggested-by: Lee Jones Signed-off-by: Codrin Ciubotariu

[PATCH] ARM: dts: at91: add serial MFD sub-node for usart

2020-10-30 Thread Codrin Ciubotariu
_serial: Failed to locate of_node [id: -2]" Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sam9x60ek.dts | 3 +++ arch/arm/boot/dts/at91rm9200.dtsi| 15 arch/arm/boot/dts/at91sam9261.dtsi | 12 ++ arch/arm/boot/dts/at91sam9261ek.dts

[PATCH] ASoC: pcm5102a: Make codec selectable

2020-10-12 Thread Codrin Ciubotariu
The TI PCM5102A codec driver can be used with the generic sound card drivers, so it should be selectable. For example, with the addition of #sound-dai-cells = <0> property in DT, it can be used with simple/graph card drivers. Signed-off-by: Codrin Ciubotariu --- sound/soc/codecs/Kconf

[PATCH] ASoC: mchp-spdiftx: remove 'TX' from playback stream name

2020-10-09 Thread Codrin Ciubotariu
Do not include the 'TX' in the stream name since it's obvious for playback. Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/mchp-spdiftx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/atmel/mchp-spdiftx.c b/sound/soc/atmel/mchp-spdiftx.c index 36c23eb3a5ad

[PATCH v3] 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 --- patch not tested. Changes in v3: - fix compile e

[PATCH] ASoC: mchp-spdifrx: convert to devm_platform_get_and_ioremap_resource

2020-10-04 Thread Codrin Ciubotariu
Use the helper function that wraps the calls to platform_get_resource() and devm_ioremap_resource() together. Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/mchp-spdifrx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/atmel/mchp-spdifrx.c b/sound/soc

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

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

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

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

[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 v4 1/2] dt-bindings: sound: add DT bindings for Microchip S/PDIF TX Controller

2020-09-09 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 Reviewed-by: Rob Herring --- Changes in v4: - added 'Reviewed-by' tag from Rob Changes in v3: - removed 'oneOf' from 'compatible' property; - added

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

2020-09-09 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 v4: - moved enable/disable of pclk clock from

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

2020-08-04 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 --- Changes from RFC: - none; drivers/i2c/busses/i2c-at91-master.c | 69 ++-- drivers/i2c

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

2020-08-04 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 --- Changes from RFC: - return -EINVAL if i2c_init_recovery

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

2020-08-04 Thread Codrin Ciubotariu
rt 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 --- Changes from RFC: - removed comment with "recovery" pinctrl state from description; - pinctrl state is changed to gpio afte

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

2020-08-04 Thread Codrin Ciubotariu
The I2C GPIO bus recovery properties consist of two GPIOS and one extra pinctrl state ("gpio" or "recovery"). "recovery" pinctrl state is considered deprecated and "gpio" should be used instead. Not all are mandatory for recovery. Signed-off-by:

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

2020-08-04 Thread Codrin Ciubotariu
. This patch series was previously sent as a RFC. Significant changes since RFC: - "recovery" pinctrl state marked as deprecared in bindings; - move to "gpio" pinctrl state done after the call to prepare_recovery() callback; - glitch protection when SDA gpio is taken at ini

[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 pinctrl related properties; Changes

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

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

2020-07-29 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: - none sound/soc/atmel/Kconfig

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

2020-07-29 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 v2: - replaced https with http - reworked example, included bindings; .../bindings/sound/mchp,spdiftx.yaml | 80

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

2020-07-28 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 --- .../bindings/sound/mchp,spdiftx.yaml | 76 +++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree

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

2020-07-28 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 --- sound/soc/atmel/Kconfig| 12 + sound/soc/atmel

[PATCH net-next v3 7/7] ARM: dts: at91: sam9x60: add an mdio sub-node to macb

2020-07-24 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu Reviewed-by: Florian Fainelli --- Changes in v3: - added tag from Florian Changes in v2: - none arch/arm/boot/dts/at91-sam9x60ek.dts | 8 ++-- 1 file changed, 6 insertions

[PATCH net-next v3 6/7] ARM: dts: at91: sama5d4: add an mdio sub-node to macb

2020-07-24 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu Reviewed-by: Florian Fainelli --- Changes in v3: - added tag from Florian Changes in v2: - none arch/arm/boot/dts/at91-sama5d4_xplained.dts | 12 1 file changed

[PATCH net-next v3 5/7] ARM: dts: at91: sama5d3: add an mdio sub-node to macb

2020-07-24 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu Reviewed-by: Florian Fainelli --- Changes in v3: - added tag from Florian Changes in v2: - none arch/arm/boot/dts/at91-sama5d3_xplained.dts | 16 1 file

[PATCH net-next v3 0/7] Add an MDIO sub-node under MACB

2020-07-24 Thread Codrin Ciubotariu
node as a container for PHY nodes" to "dt-bindings: net: macb: use an MDIO node as a container for PHY nodes" - added back a newline removed by mistake in patch 3/7 Codrin Ciubotariu (7): net: macb: use device-managed devm_mdiobus_alloc() dt-bindings: net: macb: use an MDIO

[PATCH net-next v3 3/7] net: macb: parse PHY nodes found under an MDIO node

2020-07-24 Thread Codrin Ciubotariu
became deprecated, we adjust the MACB driver to look for an MDIO node and register the subnode MDIO devices. Signed-off-by: Codrin Ciubotariu --- Changes in v3: - moved the check for the mdio node at the beginnging of macb_mdiobus_register(). This way, the mdio devices will be probed even

[PATCH net-next v3 4/7] ARM: dts: at91: sama5d2: add an mdio sub-node to macb

2020-07-24 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu Reviewed-by: Florian Fainelli --- Changes in v3: - added tag from Florian Changes in v2: - none arch/arm/boot/dts/at91-sama5d27_som1.dtsi | 16 ++-- arch/arm

[PATCH net-next v3 1/7] net: macb: use device-managed devm_mdiobus_alloc()

2020-07-24 Thread Codrin Ciubotariu
Use the device-managed variant for the allocating the MDIO bus. This cleans-up the code a little on the remove and error paths. Signed-off-by: Codrin Ciubotariu Tested-by: Claudiu Beznea Acked-by: Claudiu Beznea Reviewed-by: Florian Fainelli --- Changes in v3: - added tags from Claudiu

[PATCH net-next v3 2/7] dt-bindings: net: macb: use an MDIO node as a container for PHY nodes

2020-07-24 Thread Codrin Ciubotariu
). Signed-off-by: Codrin Ciubotariu Acked-by: Claudiu Beznea Reviewed-by: Rob Herring Reviewed-by: Florian Fainelli --- Changes in v3: - Added tags from Claudiu, Rob and Florian Changes in v2: - patch renamed from "macb: bindings doc: use an MDIO node as a container for PHY nodes&qu

[PATCH 3/3] ARM: configs: at91: sama5: enable CAN PLATFORM driver

2020-07-23 Thread Codrin Ciubotariu
From: Cristian Birsan CAN_M_CAN_PLATFORM is needed to probe the driver on sama5 platforms after the driver was split into multiple files. Signed-off-by: Cristian Birsan Signed-off-by: Codrin Ciubotariu --- arch/arm/configs/sama5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 2/3] ARM: configs: at91: sama5: enable bridge and VLAN filtering

2020-07-23 Thread Codrin Ciubotariu
From: Razvan Stefanescu These modules are needed to configure bridges in Linux, to take full advantage of the KSZ switch capabilities. Signed-off-by: Razvan Stefanescu Signed-off-by: Codrin Ciubotariu --- arch/arm/configs/sama5_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 1/3] ARM: configs: at91: sama5: add support for KSZ ethernet switches

2020-07-23 Thread Codrin Ciubotariu
From: Razvan Stefanescu Enable DSA and KSZ9477 support as modules. Ethernet switches are used by the SAMA5D2-ICP board. Signed-off-by: Razvan Stefanescu Signed-off-by: Codrin Ciubotariu --- arch/arm/configs/sama5_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm

[PATCH net-next v2 7/7] ARM: dts: at91: sam9x60: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none arch/arm/boot/dts/at91-sam9x60ek.dts | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/at91-sam9x60ek.dts b

[PATCH net-next v2 6/7] ARM: dts: at91: sama5d4: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none arch/arm/boot/dts/at91-sama5d4_xplained.dts | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/at91

[PATCH net-next v2 5/7] ARM: dts: at91: sama5d3: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none; arch/arm/boot/dts/at91-sama5d3_xplained.dts | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH net-next v2 4/7] ARM: dts: at91: sama5d2: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none arch/arm/boot/dts/at91-sama5d27_som1.dtsi | 16 ++-- arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi | 17 ++--- arch/arm/boot/dts

[PATCH net-next v2 3/7] net: macb: parse PHY nodes found under an MDIO node

2020-07-21 Thread Codrin Ciubotariu
became deprecated, we adjust the MACB driver to look for an MDIO node and register the subnode MDIO devices. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - readded newline removed by mistake; drivers/net/ethernet/cadence/macb_main.c | 10 ++ 1 file changed, 10 insertions

[PATCH net-next v2 2/7] dt-bindings: net: macb: use an MDIO node as a container for PHY nodes

2020-07-21 Thread Codrin Ciubotariu
). Signed-off-by: Codrin Ciubotariu --- Changes in v2: - patch renamed from "macb: bindings doc: use an MDIO node as a container for PHY nodes" to "dt-bindings: net: macb: use an MDIO node as a container for PHY nodes" Documentation/devicetree/bindings/net/macb.txt | 15 +++

[PATCH net-next v2 1/7] net: macb: use device-managed devm_mdiobus_alloc()

2020-07-21 Thread Codrin Ciubotariu
Use the device-managed variant for the allocating the MDIO bus. This cleans-up the code a little on the remove and error paths. Signed-off-by: Codrin Ciubotariu --- Changes in v2: - none drivers/net/ethernet/cadence/macb_main.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions

[PATCH net-next v2 0/7] Add an MDIO sub-node under MACB

2020-07-21 Thread Codrin Ciubotariu
r PHY nodes" to "dt-bindings: net: macb: use an MDIO node as a container for PHY nodes" - added back a newline removed by mistake in patch 3/7 Codrin Ciubotariu (7): net: macb: use device-managed devm_mdiobus_alloc() dt-bindings: net: macb: use an MDIO node as a container

[PATCH net-next 7/7] ARM: dts: at91: sam9x60: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sam9x60ek.dts | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/at91-sam9x60ek.dts b/arch/arm/boot/dts/at91

[PATCH net-next 6/7] ARM: dts: at91: sama5d4: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sama5d4_xplained.dts | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/at91-sama5d4_xplained.dts b/arch

[PATCH net-next 5/7] ARM: dts: at91: sama5d3: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sama5d3_xplained.dts | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/at91-sama5d3_xplained.dts b

[PATCH net-next 4/7] ARM: dts: at91: sama5d2: add an mdio sub-node to macb

2020-07-21 Thread Codrin Ciubotariu
Use the new macb bindings and add an mdio sub-node to contain all the phy nodes. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sama5d27_som1.dtsi | 16 ++-- arch/arm/boot/dts/at91-sama5d27_wlsom1.dtsi | 17 ++--- arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts

[PATCH net-next 3/7] net: macb: parse PHY nodes found under an MDIO node

2020-07-21 Thread Codrin Ciubotariu
became deprecated, we adjust the MACB driver to look for an MDIO node and register the subnode MDIO devices. Signed-off-by: Codrin Ciubotariu --- drivers/net/ethernet/cadence/macb_main.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cadence

[PATCH net-next 1/7] net: macb: use device-managed devm_mdiobus_alloc()

2020-07-21 Thread Codrin Ciubotariu
Use the device-managed variant for the allocating the MDIO bus. This cleans-up the code a little on the remove and error paths. Signed-off-by: Codrin Ciubotariu --- drivers/net/ethernet/cadence/macb_main.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/net

[PATCH net-next 2/7] macb: bindings doc: use an MDIO node as a container for PHY nodes

2020-07-21 Thread Codrin Ciubotariu
). Signed-off-by: Codrin Ciubotariu --- Documentation/devicetree/bindings/net/macb.txt | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/net/macb.txt b/Documentation/devicetree/bindings/net/macb.txt index 0b61a90f1592..88d5199c2279

[PATCH net-next 0/7] Add an MDIO sub-node under MACB

2020-07-21 Thread Codrin Ciubotariu
the bindings and adapt macb driver to parse the device-tree PHY nodes from under an MDIO node. The last patches add the MDIO node in the device-trees of sama5d2, sama5d3, samad4 and sam9x60 boards. Codrin Ciubotariu (7): net: macb: use device-managed devm_mdiobus_alloc() macb: bindings doc: use

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

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

2020-07-02 Thread Codrin Ciubotariu
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/ksz8795.c

[PATCH 1/2] net: dsa: microchip: set the correct number of ports in dsa_switch

2020-07-01 Thread Codrin Ciubotariu
registers. Fixes: b987e98e50ab ("dsa: add DSA switch driver for Microchip KSZ9477") Signed-off-by: Codrin Ciubotariu --- drivers/net/dsa/microchip/ksz8795.c| 7 +-- drivers/net/dsa/microchip/ksz9477.c| 7 +-- drivers/net/dsa/microchip/ksz_com

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

2020-07-01 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

[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

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

2020-06-19 Thread Codrin Ciubotariu
zation 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-core-base.c | 119 ++

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

[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

[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

[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

[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 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] ARM: dts: at91: Configure SCL gpio of i2c2 node as open drain

2020-05-15 Thread Codrin Ciubotariu
The SCL gpio pin of i2c2 node used for recovery needs to be configured as open drain. Fixes: 455fec938bbb ("ARM: dts: at91: sama5d2: add i2c gpio pinctrl") Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 2 +- 1 file changed, 1 insertion(+),

[PATCH] clk: at91: Add peripheral clock for PTC

2020-05-15 Thread Codrin Ciubotariu
PMC generates the peripheral clock for the PTC. Signed-off-by: Codrin Ciubotariu --- drivers/clk/at91/sama5d2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/at91/sama5d2.c b/drivers/clk/at91/sama5d2.c index ff7e3f727082..73b287fbecb8 100644 --- a/drivers/clk/at91/sama5d2.c

[PATCH] ARM: dts: at91: Configure I2C SCL gpio as open drain

2020-05-15 Thread Codrin Ciubotariu
5d4: add i2c gpio pinctrl") Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts | 6 +++--- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 6 +++--- arch/arm/boot/dts/sama5d3.dtsi | 6 +++--- arch/arm/boot/dts/sama5d4.dtsi | 6 +++--- 4 files

[PATCH] i2c: at91: Restore pinctrl state if can't get scl/sda gpios

2020-05-13 Thread Codrin Ciubotariu
t;) Signed-off-by: Codrin Ciubotariu --- drivers/i2c/busses/i2c-at91-master.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-at91-master.c b/drivers/i2c/busses/i2c-at91-master.c index d4a3aef4a594..363d540a8345 100644 --- a/drivers/i2c/busses/i2c-at91-master.c +++ b/d

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

[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

  1   2   >