ARM: mvebu: Add audio support for Armada 38x
Subsystems (3)
cover ARM: mvebu: Add audio support for Armada 38x
This patch series add audio support for Armada 38x. It contains commits from Marvell linux repository
https://github.com/MarvellEmbeddedProcessors/linux-marvell/commit/a1d70444cb0476a7524273274ca8e6d52ce6f1fe
https://github.com/MarvellEmbeddedProcessors/linux-marvell/commit/f365c93237787c7a64f2617da9425eb01e09e71f
https://github.com/MarvellEmbeddedProcessors/linux-marvell/commit/b645bfa9121214d6456de3df6b8e577f2c01c6b3
https://github.com/MarvellEmbeddedProcessors/linux-marvell/commit/829c96c206f2930e5323064cef57158bd780730d
first two squashed, rebased on top of the current linux master branch (at v6.0-rc6) with additional patches which adds S/PDIF support on Turris Omnia - A385 board.
Marcin Wojtas (3):
ASoC: kirkwood: enable Kirkwood driver for Armada 38x platforms
ARM: mvebu: add audio I2S controller to Armada 38x Device Tree
ARM: mvebu: add audio support to Armada 385 DB
Pali Rohár (2):
ARM: mvebu: Add spdif-pins mpp pins for Armada 38x
ARM: dts: turris-omnia: Define S/PDIF audio card
.../devicetree/bindings/sound/mvebu-audio.txt | 14 +- arch/arm/boot/dts/armada-385-turris-omnia.dts | 27 ++++ arch/arm/boot/dts/armada-388-db.dts | 69 +++++++++ arch/arm/boot/dts/armada-38x.dtsi | 24 ++++ sound/soc/kirkwood/kirkwood-i2s.c | 136 +++++++++++++++++- sound/soc/kirkwood/kirkwood.h | 2 + 6 files changed, 269 insertions(+), 3 deletions(-)
Signature · 1 line
2.20.1
PATCH 1/5 ASoC: kirkwood: enable Kirkwood driver for Armada 38x platforms
From: Marcin Wojtas <[email protected]>
The audio unit of Marvell Armada38x SoC is similar to the ones comprised by other Marvell SoCs (Kirkwood, Dove and Armada 370). Therefore KW audio driver can be used to support it and this commit adds new compatible string to identify Armada 38x variant.
Two new memory regions are added: first one for PLL configuration and the second one for choosing one of audio I/O modes (I2S or S/PDIF). For the latter purpose a new optional DT property is added ('spdif-mode').
kirkwood-i2s driver is extended by adding a new init function for Armada 38x flavor and also a routine that enables PLL output (i.e. MCLK) configuration.
--- .../devicetree/bindings/sound/mvebu-audio.txt | 14 +- sound/soc/kirkwood/kirkwood-i2s.c | 136 +++++++++++++++++- sound/soc/kirkwood/kirkwood.h | 2 + 3 files changed, 149 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/sound/mvebu-audio.txt +13 -1
@@ -6,9 +6,14 @@ Required properties: "marvell,kirkwood-audio" for Kirkwood platforms "marvell,dove-audio" for Dove platforms "marvell,armada370-audio" for Armada 370 platforms + "marvell,armada-380-audio" for Armada 38x platforms - reg: physical base address of the controller and length of memory mapped - region. + region (named "i2s_regs"). + With "marvell,armada-380-audio" two other regions are required: + first of those is dedicated for Audio PLL Configuration registers + (named "pll_regs") and the second one ("soc_ctrl") - for register + where one of exceptive I/O types (I2S or S/PDIF) is set. - interrupts: with "marvell,kirkwood-audio", the audio interrupt
@@ -23,6 +28,13 @@ Required properties: "internal" for the internal clock "extclk" for the external clock +Optional properties: + +- spdif-mode: + Enable S/PDIF mode on Armada 38x SoC. Using this property + disables standard I2S I/O. Valid only with "marvell,armada-380-audio" + compatible string. + Example: i2s1: audio-controller@b4000 {
sound/soc/kirkwood/kirkwood-i2s.c +134 -2
166 lines not on this page · raw message
sound/soc/kirkwood/kirkwood.h +2 -0
@@ -131,6 +131,8 @@struct kirkwood_dma_data {void __iomem *io; +void __iomem *pll_config; +void __iomem *soc_control;struct clk *clk;struct clk *extclk;uint32_t ctl_play;
Signature · 1 line
2.20.1
Re: [PATCH 1/5] ASoC: kirkwood: enable Kirkwood driver for Armada 38x platforms
sound/soc/kirkwood/kirkwood-i2s.c static int kirkwood_i2s_dev_probe(struct platform_device *pdev) · line 671
Quoted 7 lines
sound/soc/kirkwood/kirkwood-i2s.c +7
-0+if (of_device_is_compatible (np,"marvell,armada-380-audio" )) { + err =armada_38x_i2s_init_quirk (pdev, priv, soc_dai); +/* Set initial pll frequency */ +if (priv->pll_config) +armada_38x_set_pll (priv->pll_config,44100 ); +if (err <0 ) +return err;
A nitpick: It would be better to do the test for err before calling armada_38x_set_pll(), and then there is no need for the NULL check.
Andrew
PATCH v2 1/1 ASoC: kirkwood: enable Kirkwood driver for Armada 38x platforms
In reply to Pali RohárFrom: Marcin Wojtas <[email protected]>
The audio unit of Marvell Armada38x SoC is similar to the ones comprised by other Marvell SoCs (Kirkwood, Dove and Armada 370). Therefore KW audio driver can be used to support it and this commit adds new compatible string to identify Armada 38x variant.
Two new memory regions are added: first one for PLL configuration and the second one for choosing one of audio I/O modes (I2S or S/PDIF). For the latter purpose a new optional DT property is added ('spdif-mode').
kirkwood-i2s driver is extended by adding a new init function for Armada 38x flavor and also a routine that enables PLL output (i.e. MCLK) configuration.
---
Changes in v2:
* Dropped all other patches as they were applied
* Moved armada_38x_set_pll() call after error check per Andrew request
--- .../devicetree/bindings/sound/mvebu-audio.txt | 14 +- sound/soc/kirkwood/kirkwood-i2s.c | 135 +++++++++++++++++- sound/soc/kirkwood/kirkwood.h | 2 + 3 files changed, 148 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/sound/mvebu-audio.txt +13 -1
@@ -6,9 +6,14 @@ Required properties: "marvell,kirkwood-audio" for Kirkwood platforms "marvell,dove-audio" for Dove platforms "marvell,armada370-audio" for Armada 370 platforms + "marvell,armada-380-audio" for Armada 38x platforms - reg: physical base address of the controller and length of memory mapped - region. + region (named "i2s_regs"). + With "marvell,armada-380-audio" two other regions are required: + first of those is dedicated for Audio PLL Configuration registers + (named "pll_regs") and the second one ("soc_ctrl") - for register + where one of exceptive I/O types (I2S or S/PDIF) is set. - interrupts: with "marvell,kirkwood-audio", the audio interrupt
@@ -23,6 +28,13 @@ Required properties: "internal" for the internal clock "extclk" for the external clock +Optional properties: + +- spdif-mode: + Enable S/PDIF mode on Armada 38x SoC. Using this property + disables standard I2S I/O. Valid only with "marvell,armada-380-audio" + compatible string. + Example: i2s1: audio-controller@b4000 {
sound/soc/kirkwood/kirkwood-i2s.c +133 -2
165 lines not on this page · raw message
sound/soc/kirkwood/kirkwood.h +2 -0
@@ -131,6 +131,8 @@struct kirkwood_dma_data {void __iomem *io; +void __iomem *pll_config; +void __iomem *soc_control;struct clk *clk;struct clk *extclk;uint32_t ctl_play;
Signature · 1 line
2.20.1
Mark Brown
maintainerRe: [PATCH v2] ASoC: kirkwood: enable Kirkwood driver for Armada 38x platforms
Quoted 6 lines · Pali Rohár
From: Marcin Wojtas <[email protected]>
The audio unit of Marvell Armada38x SoC is similar to the ones comprised by other Marvell SoCs (Kirkwood, Dove and Armada 370). Therefore KW audio driver can be used to support it and this commit adds new compatible string to identify Armada 38x variant.
Please don't send new patches in reply to old patches or serieses, this makes it harder for both people and tools to understand what is going on - it can bury things in mailboxes and make it difficult to keep track of what current patches are, both for the new patches and the old ones.
Re: [PATCH v2] ASoC: kirkwood: enable Kirkwood driver for Armada 38x platforms
In reply to Pali RohárQuoted 15 lines · Pali Rohár
From: Marcin Wojtas <[email protected]>
The audio unit of Marvell Armada38x SoC is similar to the ones comprised by other Marvell SoCs (Kirkwood, Dove and Armada 370). Therefore KW audio driver can be used to support it and this commit adds new compatible string to identify Armada 38x variant.
Two new memory regions are added: first one for PLL configuration and the second one for choosing one of audio I/O modes (I2S or S/PDIF). For the latter purpose a new optional DT property is added ('spdif-mode').
kirkwood-i2s driver is extended by adding a new init function for Armada 38x flavor and also a routine that enables PLL output (i.e. MCLK) configuration.
Quoted 9 lines
Signed-off-by Marcin Wojtas <[email protected]>Tested-by Star_Automation <[email protected]>Reviewed-by Nadav Haklai <[email protected]>Reviewed-by Lior Amsalem <[email protected]>Tested-by Lior Amsalem <[email protected]>Signed-off-by Hezi Shahmoon <[email protected]>Reviewed-by Neta Zur Hershkovits <[email protected]>[pali: Fix support for pre-38x SoCs]Signed-off-by Pali Rohár <[email protected]>
Andrew
Mark Brown
maintainerRe: [PATCH v2] ASoC: kirkwood: enable Kirkwood driver for Armada 38x platforms
In reply to Pali RohárQuoted 8 lines · Pali Rohár
From: Marcin Wojtas <[email protected]>
The audio unit of Marvell Armada38x SoC is similar to the ones comprised by other Marvell SoCs (Kirkwood, Dove and Armada 370). Therefore KW audio driver can be used to support it and this commit adds new compatible string to identify Armada 38x variant.
[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: kirkwood: enable Kirkwood driver for Armada 38x platforms
commit: 2adfc688777e58f22f691d08728dd74d76177fd9
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Rob Herring
maintainerRe: [PATCH 1/5] ASoC: kirkwood: enable Kirkwood driver for Armada 38x platforms
In reply to Pali RohárQuoted 35 lines · Pali Rohár
From: Marcin Wojtas <[email protected]>
The audio unit of Marvell Armada38x SoC is similar to the ones comprised by other Marvell SoCs (Kirkwood, Dove and Armada 370). Therefore KW audio driver can be used to support it and this commit adds new compatible string to identify Armada 38x variant.
Two new memory regions are added: first one for PLL configuration and the second one for choosing one of audio I/O modes (I2S or S/PDIF). For the latter purpose a new optional DT property is added ('spdif-mode').
kirkwood-i2s driver is extended by adding a new init function for Armada 38x flavor and also a routine that enables PLL output (i.e. MCLK) configuration.
Signed-off-by Marcin Wojtas <[email protected]>Tested-by Star_Automation <[email protected]>Reviewed-by Nadav Haklai <[email protected]>Reviewed-by Lior Amsalem <[email protected]>Tested-by Lior Amsalem <[email protected]>Signed-off-by Hezi Shahmoon <[email protected]>Reviewed-by Neta Zur Hershkovits <[email protected]>[pali: Fix support for pre-38x SoCs]Signed-off-by Pali Rohár <[email protected]>--- .../devicetree/bindings/sound/mvebu-audio.txt | 14 +- sound/soc/kirkwood/kirkwood-i2s.c | 136 +++++++++++++++++- sound/soc/kirkwood/kirkwood.h | 2 + 3 files changed, 149 insertions(+), 3 deletions(-)Documentation/devicetree/bindings/sound/mvebu-audio.txt +0
-0
Documentation/devicetree/bindings/sound/mvebu-audio.txt Required properties: · line 9
Quoted 4 lines
Documentation/devicetree/bindings/sound/mvebu-audio.txt +1
-0@@ -6,9 +6,14 @@ Required properties: "marvell,kirkwood-audio" for Kirkwood platforms "marvell,dove-audio" for Dove platforms "marvell,armada370-audio" for Armada 370 platforms + "marvell,armada-380-audio" for Armada 38x platforms
Perhaps be consistent with the 370 string above it.
Documentation/devicetree/bindings/sound/mvebu-audio.txt Required properties: · line 12
Quoted 4 lines
Documentation/devicetree/bindings/sound/mvebu-audio.txt +1
-1- reg: physical base address of the controller and length of memory mapped - region. + region (named "i2s_regs").
So you are adding 'reg-names'? The values belong under 'reg-names' then. '_regs' is also redundant.
Quoted 8 lines
Documentation/devicetree/bindings/sound/mvebu-audio.txt +4
-0+ With "marvell,armada-380-audio" two other regions are required: + first of those is dedicated for Audio PLL Configuration registers + (named "pll_regs") and the second one ("soc_ctrl") - for register + where one of exceptive I/O types (I2S or S/PDIF) is set. - interrupts: with "marvell,kirkwood-audio", the audio interrupt
Documentation/devicetree/bindings/sound/mvebu-audio.txt Required properties: · line 36
Quoted 9 lines
Documentation/devicetree/bindings/sound/mvebu-audio.txt +6
-0@@ -23,6 +28,13 @@ Required properties: "internal" for the internal clock "extclk" for the external clock +Optional properties: + +- spdif-mode: + Enable S/PDIF mode on Armada 38x SoC. Using this property + disables standard I2S I/O. Valid only with "marvell,armada-380-audio" + compatible string.
So boolean?
Documentation/devicetree/bindings/sound/mvebu-audio.txt Required properties: · line 40
Quoted 4 lines
Documentation/devicetree/bindings/sound/mvebu-audio.txt +1
-0+ Example: i2s1: audio-controller@b4000 {
DT changes should be separate patch. It would also be nice to see this converted to schema first.
Rob
Re: [PATCH 1/5] ASoC: kirkwood: enable Kirkwood driver for Armada 38x platforms
Quoted 31 lines · Rob Herring
Quoted 30 lines · Pali Rohár
From: Marcin Wojtas <[email protected]>
The audio unit of Marvell Armada38x SoC is similar to the ones comprised by other Marvell SoCs (Kirkwood, Dove and Armada 370). Therefore KW audio driver can be used to support it and this commit adds new compatible string to identify Armada 38x variant.
Two new memory regions are added: first one for PLL configuration and the second one for choosing one of audio I/O modes (I2S or S/PDIF). For the latter purpose a new optional DT property is added ('spdif-mode').
kirkwood-i2s driver is extended by adding a new init function for Armada 38x flavor and also a routine that enables PLL output (i.e. MCLK) configuration.
Signed-off-by Marcin Wojtas <[email protected]>Tested-by Star_Automation <[email protected]>Reviewed-by Nadav Haklai <[email protected]>Reviewed-by Lior Amsalem <[email protected]>Tested-by Lior Amsalem <[email protected]>Signed-off-by Hezi Shahmoon <[email protected]>Reviewed-by Neta Zur Hershkovits <[email protected]>[pali: Fix support for pre-38x SoCs]Signed-off-by Pali Rohár <[email protected]>--- .../devicetree/bindings/sound/mvebu-audio.txt | 14 +- sound/soc/kirkwood/kirkwood-i2s.c | 136 +++++++++++++++++- sound/soc/kirkwood/kirkwood.h | 2 + 3 files changed, 149 insertions(+), 3 deletions(-)
Quoted 11 lines
Documentation/devicetree/bindings/sound/mvebu-audio.txt Required properties: · line 9
Quoted 9 lines
Documentation/devicetree/bindings/sound/mvebu-audio.txt +1
-0@@ -6,9 +6,14 @@ Required properties: "marvell,kirkwood-audio" for Kirkwood platforms "marvell,dove-audio" for Dove platforms "marvell,armada370-audio" for Armada 370 platforms + "marvell,armada-380-audio" for Armada 38x platformsPerhaps be consistent with the 370 string above it.
Hi Rob
That was something i also considered. But actually, all 380 compatibles use armada-380-FOOBAR. So this is inconsistent with armada370-audio, but consistent with armada-380 in general.
Andrew
PATCH 2/5 ARM: mvebu: add audio I2S controller to Armada 38x Device Tree
In reply to Pali RohárFrom: Marcin Wojtas <[email protected]>
This commit adds the description of the I2S controller to the Marvell Armada 38x SoC's Device Tree, as well as its pin configuration.
--- arch/arm/boot/dts/armada-38x.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
arch/arm/boot/dts/armada-38x.dtsi +19 -0
@@ -289,6 +289,13 @@ marvell,pins = "mpp44"; marvell,function = "sata3"; }; + + i2s_pins: i2s-pins { + marvell,pins = "mpp48", "mpp49", + "mpp50", "mpp51", + "mpp52", "mpp53"; + marvell,function = "audio"; + }; }; gpio0: gpio@18100 {
@@ -618,6 +625,18 @@ status = "disabled"; }; + audio_controller: audio-controller@e8000 { + #sound-dai-cells = <1>; + compatible = "marvell,armada-380-audio"; + reg = <0xe8000 0x4000>, <0x18410 0xc>, + <0x18204 0x4>; + reg-names = "i2s_regs", "pll_regs", "soc_ctrl"; + interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gateclk 0>; + clock-names = "internal"; + status = "disabled"; + }; + usb3_0: usb3@f0000 { compatible = "marvell,armada-380-xhci"; reg = <0xf0000 0x4000>,<0xf4000 0x4000>;
Signature · 1 line
2.20.1
Re: [PATCH 2/5] ARM: mvebu: add audio I2S controller to Armada 38x Device Tree
Quoted 11 lines · Pali Rohár
From: Marcin Wojtas <[email protected]>
This commit adds the description of the I2S controller to the Marvell Armada 38x SoC's Device Tree, as well as its pin configuration.
Signed-off-by Marcin Wojtas <[email protected]>Reviewed-by Nadav Haklai <[email protected]>Tested-by Nadav Haklai <[email protected]>Tested-by Lior Amsalem <[email protected]>[pali: Fix i2s-pins name]Signed-off-by Pali Rohár <[email protected]>
Andrew
PATCH 3/5 ARM: mvebu: add audio support to Armada 385 DB
In reply to Pali RohárFrom: Marcin Wojtas <[email protected]>
This commit adds the necessary Device Tree information to enable audio support on the Armada 385 DB platform. In details it:
* Instantiates the CS42L51 audio codec on the I2C0 bus
* Adds simple-card DT binding for audio on Armada 385 DB
* Adds description for both analog I2S and S/PDIF I/O
* Disabled by default
--- arch/arm/boot/dts/armada-388-db.dts | 69 +++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+)
arch/arm/boot/dts/armada-388-db.dts +69 -0
@@ -36,6 +36,11 @@ i2c@11000 { status = "okay"; clock-frequency = <100000>; + audio_codec: audio-codec@4a { + #sound-dai-cells = <0>; + compatible = "cirrus,cs42l51"; + reg = <0x4a>; + }; }; i2c@11100 {
@@ -99,6 +104,12 @@ no-1-8-v; }; + audio-controller@e8000 { + pinctrl-0 = <&i2s_pins>; + pinctrl-names = "default"; + status = "disabled"; + }; + usb3@f0000 { status = "okay"; };
@@ -128,6 +139,64 @@ }; }; }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "Armada 385 DB Audio"; + simple-audio-card,mclk-fs = <256>; + simple-audio-card,widgets = + "Headphone", "Out Jack", + "Line", "In Jack"; + simple-audio-card,routing = + "Out Jack", "HPL", + "Out Jack", "HPR", + "AIN1L", "In Jack", + "AIN1R", "In Jack"; + status = "disabled"; + + simple-audio-card,dai-link@0 { + format = "i2s"; + cpu { + sound-dai = <&audio_controller 0>; + }; + + codec { + sound-dai = <&audio_codec>; + }; + }; + + simple-audio-card,dai-link@1 { + format = "i2s"; + cpu { + sound-dai = <&audio_controller 1>; + }; + + codec { + sound-dai = <&spdif_out>; + }; + }; + + simple-audio-card,dai-link@2 { + format = "i2s"; + cpu { + sound-dai = <&audio_controller 1>; + }; + + codec { + sound-dai = <&spdif_in>; + }; + }; + }; + + spdif_out: spdif-out { + #sound-dai-cells = <0>; + compatible = "linux,spdif-dit"; + }; + + spdif_in: spdif-in { + #sound-dai-cells = <0>; + compatible = "linux,spdif-dir"; + }; }; &spi0 {
Signature · 1 line
2.20.1
Re: [PATCH 3/5] ARM: mvebu: add audio support to Armada 385 DB
Quoted 9 lines · Pali Rohár
From: Marcin Wojtas <[email protected]>
This commit adds the necessary Device Tree information to enable audio support on the Armada 385 DB platform. In details it:
* Instantiates the CS42L51 audio codec on the I2C0 bus
* Adds simple-card DT binding for audio on Armada 385 DB
Quoted 8 lines
* Adds description for both analog I2S and S/PDIF I/O
* Disabled by default
Signed-off-by Marcin Wojtas <[email protected]>Signed-off-by Nadav Haklai <[email protected]>Tested-by Star_Automation <[email protected]>Tested-by Lior Amsalem <[email protected]>
Andrew
PATCH 4/5 ARM: mvebu: Add spdif-pins mpp pins for Armada 38x
In reply to Pali RohárS/PDIF function on Armada 38x uses only mpp51 pin. So add spdif-pins mpp pins section for it. It is needed for boards without i2s.
--- arch/arm/boot/dts/armada-38x.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/boot/dts/armada-38x.dtsi +5 -0
@@ -296,6 +296,11 @@ "mpp52", "mpp53"; marvell,function = "audio"; }; + + spdif_pins: spdif-pins { + marvell,pins = "mpp51"; + marvell,function = "audio"; + }; }; gpio0: gpio@18100 {
Signature · 1 line
2.20.1
Re: [PATCH 4/5] ARM: mvebu: Add spdif-pins mpp pins for Armada 38x
Quoted 4 lines · Pali Rohár
S/PDIF function on Armada 38x uses only mpp51 pin. So add spdif-pins mpp pins section for it. It is needed for boards without i2s.
Signed-off-by Pali Rohár <[email protected]>
Andrew
PATCH 5/5 ARM: dts: turris-omnia: Define S/PDIF audio card
In reply to Pali RohárTurris Omnia has GPIO51 exported on pin header U16, which works in S/PDIF output mode. So define S/PDIF audio output card for this pin.
--- arch/arm/boot/dts/armada-385-turris-omnia.dts | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+)
arch/arm/boot/dts/armada-385-turris-omnia.dts +27 -0
@@ -105,6 +105,33 @@ */ status = "disabled"; }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "SPDIF"; + simple-audio-card,format = "i2s"; + + simple-audio-card,cpu { + sound-dai = <&audio_controller 1>; + }; + + simple-audio-card,codec { + sound-dai = <&spdif_out>; + }; + }; + + spdif_out: spdif-out { + #sound-dai-cells = <0>; + compatible = "linux,spdif-dit"; + }; +}; + +&audio_controller { + /* Pin header U16, GPIO51 in SPDIFO mode */ + pinctrl-0 = <&spdif_pins>; + pinctrl-names = "default"; + spdif-mode; + status = "okay"; }; &bm {
Signature · 1 line
2.20.1
Re: [PATCH 5/5] ARM: dts: turris-omnia: Define S/PDIF audio card
Quoted 4 lines · Pali Rohár
Turris Omnia has GPIO51 exported on pin header U16, which works in S/PDIF output mode. So define S/PDIF audio output card for this pin.
Signed-off-by Pali Rohár <[email protected]>
Andrew
Quoted 12 lines · Pali Rohár
This patch series add audio support for Armada 38x. It contains commits from Marvell linux repository
https://github.com/MarvellEmbeddedProcessors/linux-marvell/commit/a1d70444cb0476a7524273274ca8e6d52ce6f1fe
https://github.com/MarvellEmbeddedProcessors/linux-marvell/commit/f365c93237787c7a64f2617da9425eb01e09e71f
https://github.com/MarvellEmbeddedProcessors/linux-marvell/commit/b645bfa9121214d6456de3df6b8e577f2c01c6b3
https://github.com/MarvellEmbeddedProcessors/linux-marvell/commit/829c96c206f2930e5323064cef57158bd780730dfirst two squashed, rebased on top of the current linux master branch (at v6.0-rc6) with additional patches which adds S/PDIF support on Turris Omnia - A385 board.
Quoted 9 lines
Marcin Wojtas (3):
ASoC: kirkwood: enable Kirkwood driver for Armada 38x platforms
ARM: mvebu: add audio I2S controller to Armada 38x Device Tree
ARM: mvebu: add audio support to Armada 385 DBPali Rohár (2):
ARM: mvebu: Add spdif-pins mpp pins for Armada 38x
ARM: dts: turris-omnia: Define S/PDIF audio card
Patches 2 to 5 applied on mvebu/dt
The first one has to be applied in sound subsystem.
Thanks,
Gregory
Quoted 11 lines
.../devicetree/bindings/sound/mvebu-audio.txt | 14 +- arch/arm/boot/dts/armada-385-turris-omnia.dts | 27 ++++ arch/arm/boot/dts/armada-388-db.dts | 69 +++++++++ arch/arm/boot/dts/armada-38x.dtsi | 24 ++++ sound/soc/kirkwood/kirkwood-i2s.c | 136 +++++++++++++++++- sound/soc/kirkwood/kirkwood.h | 2 + 6 files changed, 269 insertions(+), 3 deletions(-)Signature · 1 line
2.20.1
Signature · 3 lines
Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com