DesignWare I2S controller

Schema identifier ($id): "http://devicetree.org/schemas/sound/snps,designware-i2s.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jose Abreu <joabreu@synopsys.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "canaan,k210-i2s"

Item 2

Exact value (const): "snps,designware-i2s"

Rule 2

Allowed values (enum): "snps,designware-i2s", "starfive,jh7110-i2stx0", "starfive,jh7110-i2stx1", "starfive,jh7110-i2srx"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

The interrupt line number for the I2S controller. Add this parameter if the I2S controller that you are using does not support DMA.

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Sampling rate reference clock

Item 2

APB clock

Item 3

Audio master clock

Item 4

Inner audio master clock source

Item 5

External audio master clock source

Item 6

Bit clock

Item 7

Left/right channel clock

Item 8

External bit clock

Item 9

External left/right channel clock

Minimum number of items (minItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "i2sclk"

Item 2

Exact value (const): "apb"

Item 3

Exact value (const): "mclk"

Item 4

Exact value (const): "mclk_inner"

Item 5

Exact value (const): "mclk_ext"

Item 6

Exact value (const): "bclk"

Item 7

Exact value (const): "lrck"

Item 8

Exact value (const): "bclk_ext"

Item 9

Exact value (const): "lrck_ext"

Minimum number of items (minItems): 1

resets — not listed as required here #

Array item rules (items) #

Item 1

Optional controller resets

Item 2

controller reset of Sampling rate

Minimum number of items (minItems): 1

dmas — not listed as required here #

Array item rules (items) #

Item 1

TX DMA Channel

Item 2

RX DMA Channel

Minimum number of items (minItems): 1

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

Minimum number of items (minItems): 1

starfive,syscon — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to System Register Controller sys_syscon node.

Item 2

I2S-rx enabled control offset of SYS_SYSCONSAIF__SYSCFG register.

Item 3

I2S-rx enabled control mask

The phandle to System Register Controller syscon node and the I2S-rx(ADC) enabled control offset and mask of SYS_SYSCONSAIF__SYSCFG register.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "canaan,k210-i2s"

When the condition matches (then) #

Properties and child nodes (properties)

#sound-dai-cells — not listed as required here

Exact value (const): 1

When the condition does not match (else) #

Properties and child nodes (properties)

#sound-dai-cells — not listed as required here

Exact value (const): 0

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "snps,designware-i2s"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

clock-names — not listed as required here

Maximum number of items (maxItems): 1

resets — not listed as required here

Maximum number of items (maxItems): 1

When the condition does not match (else) #

Properties and child nodes (properties)

resets — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "starfive,jh7110-i2stx0"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 5

clock-names — not listed as required here

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 5

Required in this object (required): "resets"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "starfive,jh7110-i2stx1"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 9

Maximum number of items (maxItems): 9

clock-names — not listed as required here

Minimum number of items (minItems): 9

Maximum number of items (maxItems): 9

Required in this object (required): "resets"

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "starfive,jh7110-i2srx"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 9

Maximum number of items (maxItems): 9

clock-names — not listed as required here

Minimum number of items (minItems): 9

Maximum number of items (maxItems): 9

Required in this object (required): "resets", "starfive,syscon"

When the condition does not match (else) #

Properties and child nodes (properties)

starfive,syscon — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "dmas", "dma-names"

Rule 2 #

Required in this object (required): "interrupts"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

soc_i2s: i2s@7ff90000 {
  compatible = "snps,designware-i2s";
  reg = <0x7ff90000 0x1000>;
  clocks = <&scpi_i2sclk 0>;
  clock-names = "i2sclk";
  #sound-dai-cells = <0>;
  dmas = <&dma0 5>;
  dma-names = "tx";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page