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
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
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()
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
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
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
-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
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
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
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
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
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
-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
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
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
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
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
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
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
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,
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/
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
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
_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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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:
.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
).
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
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
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
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
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
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
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
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
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
).
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 +++
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
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
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
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
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
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
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
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
).
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 ++
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
.
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
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
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
: 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
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
: 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
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(+),
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
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
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
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
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
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 - 100 of 194 matches
Mail list logo