-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branches 'asoc/topic/wm8994', 'asoc/topic/wm899…
…6' and 'asoc/topic/zx' into asoc-next
- Loading branch information
Showing
10 changed files
with
902 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
ZTE ZX296702 I2S controller | ||
|
||
Required properties: | ||
- compatible : Must be "zte,zx296702-i2s" | ||
- reg : Must contain I2S core's registers location and length | ||
- clocks : Pairs of phandle and specifier referencing the controller's clocks. | ||
- clock-names: "tx" for the clock to the I2S interface. | ||
- dmas: Pairs of phandle and specifier for the DMA channel that is used by | ||
the core. The core expects two dma channels for transmit. | ||
- dma-names : Must be "tx" and "rx" | ||
|
||
For more details on the 'dma', 'dma-names', 'clock' and 'clock-names' properties | ||
please check: | ||
* resource-names.txt | ||
* clock/clock-bindings.txt | ||
* dma/dma.txt | ||
|
||
Example: | ||
i2s0: i2s0@0b005000 { | ||
#sound-dai-cells = <0>; | ||
compatible = "zte,zx296702-i2s"; | ||
reg = <0x0b005000 0x1000>; | ||
clocks = <&lsp0clk ZX296702_I2S0_DIV>; | ||
clock-names = "tx"; | ||
interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>; | ||
dmas = <&dma 5>, <&dma 6>; | ||
dma-names = "tx", "rx"; | ||
status = "okay"; | ||
}; | ||
|
||
sound { | ||
compatible = "simple-audio-card"; | ||
simple-audio-card,name = "zx296702_snd"; | ||
simple-audio-card,format = "left_j"; | ||
simple-audio-card,bitclock-master = <&sndcodec>; | ||
simple-audio-card,frame-master = <&sndcodec>; | ||
sndcpu: simple-audio-card,cpu { | ||
sound-dai = <&i2s0>; | ||
}; | ||
|
||
sndcodec: simple-audio-card,codec { | ||
sound-dai = <&acodec>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
ZTE ZX296702 SPDIF controller | ||
|
||
Required properties: | ||
- compatible : Must be "zte,zx296702-spdif" | ||
- reg : Must contain SPDIF core's registers location and length | ||
- clocks : Pairs of phandle and specifier referencing the controller's clocks. | ||
- clock-names: "tx" for the clock to the SPDIF interface. | ||
- dmas: Pairs of phandle and specifier for the DMA channel that is used by | ||
the core. The core expects one dma channel for transmit. | ||
- dma-names : Must be "tx" | ||
|
||
For more details on the 'dma', 'dma-names', 'clock' and 'clock-names' properties | ||
please check: | ||
* resource-names.txt | ||
* clock/clock-bindings.txt | ||
* dma/dma.txt | ||
|
||
Example: | ||
spdif0: spdif0@0b004000 { | ||
compatible = "zte,zx296702-spdif"; | ||
reg = <0x0b004000 0x1000>; | ||
clocks = <&lsp0clk ZX296702_SPDIF0_DIV>; | ||
clock-names = "tx"; | ||
interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; | ||
dmas = <&dma 4>; | ||
dma-names = "tx"; | ||
status = "okay"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
config ZX296702_SPDIF | ||
tristate "ZX296702 spdif" | ||
depends on SOC_ZX296702 || COMPILE_TEST | ||
depends on COMMON_CLK | ||
select SND_SOC_GENERIC_DMAENGINE_PCM | ||
help | ||
Say Y or M if you want to add support for codecs attached to the | ||
zx296702 spdif interface | ||
|
||
config ZX296702_I2S | ||
tristate "ZX296702 i2s" | ||
depends on SOC_ZX296702 || COMPILE_TEST | ||
depends on COMMON_CLK | ||
select SND_SOC_GENERIC_DMAENGINE_PCM | ||
help | ||
Say Y or M if you want to add support for codecs attached to the | ||
zx296702 i2s interface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
obj-$(CONFIG_ZX296702_SPDIF) += zx296702-spdif.o | ||
obj-$(CONFIG_ZX296702_I2S) += zx296702-i2s.o |
Oops, something went wrong.