Samsung SoC I2S controller
Schema identifier ($id): "http://devicetree.org/schemas/sound/samsung-i2s.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Sylwester Nawrocki <s.nawrocki@samsung.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dai-common.yaml#
Properties and child nodes (properties) #
compatible — required here #
samsung,s3c6410-i2s: for 8/16/24bit stereo I2S.
samsung,s5pv210-i2s: for 8/16/24bit multichannel (5.1) I2S with secondary FIFO, s/w reset control and internal mux for root clock source.
samsung,exynos5420-i2s: for 8/16/24bit multichannel (5.1) I2S for playback, stereo channel capture, secondary FIFO using internal or external DMA, s/w reset control, internal mux for root clock source and 7.1 channel TDM support for playback; TDM (Time division multiplexing) is to allow transfer of multiple channel audio data on single data line.
samsung,exynos7-i2s: with all the available features of Exynos5 I2S. Exynos7 I2S has 7.1 channel TDM support for capture, secondary FIFO with only external DMA and more number of root clock sampling frequencies.
samsung,exynos7-i2s1: I2S1 on previous samsung platforms supports stereo channels. Exynos7 I2S1 upgraded to 5.1 multichannel with slightly modified bit offsets.
tesla,fsd-i2s: for 8/16/24bit stereo channel I2S for playback and capture, secondary FIFO using external DMA, s/w reset control, internal mux for root clock source with all root clock sampling frequencies supported by Exynos7 I2S and 7.1 channel TDM support for playback and capture TDM (Time division multiplexing) to allow transfer of multiple channel audio data on single data line.
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"samsung,s3c6410-i2s","samsung,s5pv210-i2s","samsung,exynos5420-i2s","samsung,exynos7-i2s","samsung,exynos7-i2s1","tesla,fsd-i2s"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"samsung,exynos7-i2s"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
reg — required here #
Maximum number of items (maxItems): 1
dmas — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
dma-names — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"tx"Item 2
Exact value (
const):"rx"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"tx"Item 2
Exact value (
const):"rx"Item 3
Exact value (
const):"tx-sec"
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
clock-names — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"iis"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"iis"Item 2
Exact value (
const):"i2s_opclk0"Item 3
Exact value (
const):"i2s_opclk1"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"iis"Item 2
Exact value (
const):"i2s_opclk0"
"iis" is the I2S bus clock and i2s_opclk0, i2s_opclk1 are sources of the root clock. I2S0 has internal mux to select the source of root clock and I2S1 and I2S2 doesn't have any such mux.
#clock-cells — not listed as required here #
Exact value (const): 1
clock-output-names — not listed as required here #
Deprecated (deprecated): true
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"i2s_cdclk0"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"i2s_cdclk1"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"i2s_cdclk2"
Names of the CDCLK I2S output clocks.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
samsung,idma-addr — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Internal DMA register base address of the audio subsystem (used in secondary sound source).
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
#sound-dai-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "dmas", "dma-names", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/exynos-audss-clk.h>
i2s0: i2s@3830000 {
compatible = "samsung,s5pv210-i2s";
reg = <0x03830000 0x100>;
dmas = <&pdma0 10>,
<&pdma0 9>,
<&pdma0 8>;
dma-names = "tx", "rx", "tx-sec";
clocks = <&clock_audss EXYNOS_I2S_BUS>,
<&clock_audss EXYNOS_I2S_BUS>,
<&clock_audss EXYNOS_SCLK_I2S>;
clock-names = "iis", "i2s_opclk0", "i2s_opclk1";
#clock-cells = <1>;
samsung,idma-addr = <0x03000000>;
pinctrl-names = "default";
pinctrl-0 = <&i2s0_bus>;
#sound-dai-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 91: for I2S0
Line 95: for I2S1 and I2S2
Line 109: for I2S0
Line 111: for I2S1
Line 113: for I2S2