ASoC: Add SiRF I2S controller and hdmi card drivers
Subsystems (3)
v6 cover ASoC: Add SiRF I2S controller and hdmi card drivers
From: Rongjun Ying <[email protected]>
This patchset adds CSR SiRFSoC sound drivers including:
4. The SiRF I2S controller driver
5. The SiRF hdmi card driver
Rongjun Ying (2):
ASoC: sirf: Add SiRF I2S driver
ASoC: sirf: Add hdmi support
.../devicetree/bindings/sound/sirf-i2s.txt | 27 ++ sound/soc/sirf/Kconfig | 11 + sound/soc/sirf/Makefile | 2 + sound/soc/sirf/sirf-i2s.c | 445 ++++++++++++++++++++ sound/soc/sirf/sirf-i2s.h | 93 ++++ 5 files changed, 578 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/sirf-i2s.txt create mode 100644 sound/soc/sirf/sirf-i2s.c create mode 100644 sound/soc/sirf/sirf-i2s.h
Signature · 1 line
1.7.5.4
PATCH v6 1/2 ASoC: sirf: Add SiRF I2S driver
From: Rongjun Ying <[email protected]>
This patch adds ASoC support for SiRF SoCs I2S modules.
Features include:
1. I2S bus specification compliant (Released by Philips Semiconductors in June, 1996)
2. Support both master and slave mode
3. Support provides MCLK to external CODEC both master and slave mode
4. Supports 16-bit resolution playback
5. Supports 16-bit resolution record
6 .Supports 2 channel record
7. Supports 2 channel and 6 channel mode playback
8. Frame length, left channel length and right channel length are all programmable
9. Supports two DMA channels for TXFIFO and RXFIFO
10. Supports floating mode (x_ac97_dout can be configured as input)
---
-v6:
Add MCLK output support
Use set_sysclk to set reference input clock
.../devicetree/bindings/sound/sirf-i2s.txt | 27 ++ sound/soc/sirf/Kconfig | 4 + sound/soc/sirf/Makefile | 2 + sound/soc/sirf/sirf-i2s.c | 445 ++++++++++++++++++++ sound/soc/sirf/sirf-i2s.h | 93 ++++ 5 files changed, 571 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/sirf-i2s.txt create mode 100644 sound/soc/sirf/sirf-i2s.c create mode 100644 sound/soc/sirf/sirf-i2s.h
Documentation/devicetree/bindings/sound/sirf-i2s.txt new file +27 -0
@@ -0,0 +1,27 @@ +* SiRF SoC I2S module + +Required properties: +- compatible: "sirf,prima2-i2s" +- reg: Base address and size entries: +- dmas: List of DMA controller phandle and DMA request line ordered pairs. +- dma-names: Identifier string for each DMA request line in the dmas property. + These strings correspond 1:1 with the ordered pairs in dmas. + + One of the DMA channels will be responsible for transmission (should be + named "tx") and one for reception (should be named "rx"). + +- clocks: A phandle of I2S controller clock source +- pinctrl-names: Must contain a "default" entry. +- pinctrl-NNN: One property must exist for each entry in pinctrl-names. + +Example: + +i2s: i2s@b0040000 { + compatible = "sirf,prima2-i2s"; + reg = <0xb0040000 0x10000>; + dmas = <&dmac1 6>, <&dmac1 12>; + dma-names = "rx", "tx"; + clocks = <&clks 27>; + pinctrl-names = "default"; + pinctrl-0 = <&i2s_pins_a>; +};
sound/soc/sirf/Kconfig +4 -0
@@ -12,3 +12,7 @@ config SND_SOC_SIRF_AUDIO config SND_SOC_SIRF_AUDIO_PORT select REGMAP_MMIO tristate + +config SND_SOC_SIRF_I2S + select REGMAP_MMIO + tristate
sound/soc/sirf/Makefile +2 -0
@@ -1,5 +1,7 @@ snd-soc-sirf-audio-objs := sirf-audio.o snd-soc-sirf-audio-port-objs := sirf-audio-port.o +snd-soc-sirf-i2s-objs := sirf-i2s.o obj-$(CONFIG_SND_SOC_SIRF_AUDIO) += snd-soc-sirf-audio.o obj-$(CONFIG_SND_SOC_SIRF_AUDIO_PORT) += snd-soc-sirf-audio-port.o +obj-$(CONFIG_SND_SOC_SIRF_I2S) += snd-soc-sirf-i2s.o
sound/soc/sirf/sirf-i2s.c new file +445 -0
445 lines not on this page · raw message
sound/soc/sirf/sirf-i2s.h new file +93 -0
93 lines not on this page · raw message
Signature · 1 line
1.7.5.4
Re: [PATCH v6 1/2] ASoC: sirf: Add SiRF I2S driver
Quoted 3 lines · RongJun Ying
From: Rongjun Ying <[email protected]>
This patch adds ASoC support for SiRF SoCs I2S modules.
Applied, thanks.
PATCH v6 2/2 ASoC: sirf: Add hdmi support
In reply to RongJun YingFrom: Rongjun Ying <[email protected]>
Use the simple-card
---
-v6:
Use the simple-card instead of hdmi card driver
sound/soc/sirf/Kconfig | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
sound/soc/sirf/Kconfig +7 -0
@@ -13,6 +13,13 @@ config SND_SOC_SIRF_AUDIO_PORT select REGMAP_MMIO tristate +config SND_SOC_SIRF_HDMI + tristate "SoC Audio support for SiRF HDMI" + depends on SND_SOC_SIRF + select SND_SIMPLE_CARD + select SND_SOC_SIRF_I2S + select SND_SOC_HDMI_CODEC + config SND_SOC_SIRF_I2S select REGMAP_MMIO tristate
Signature · 1 line
1.7.5.4
Mark Brown
maintainerRe: [PATCH v6 2/2] ASoC: sirf: Add hdmi support
sound/soc/sirf/Kconfig config SND_SOC_SIRF_AUDIO_PORT · line 22
Quoted 7 lines · RongJun Ying
sound/soc/sirf/Kconfig +7
-0+config SND_SOC_SIRF_HDMI + tristate "SoC Audio support for SiRF HDMI" + depends on SND_SOC_SIRF + select SND_SIMPLE_CARD + select SND_SOC_SIRF_I2S + select SND_SOC_HDMI_CODEC +
Don't do this, just make all the individual drivers selectable directly in Kconfig.