Allwinner A10 S/PDIF Controller

Schema identifier ($id): "http://devicetree.org/schemas/sound/allwinner,sun4i-a10-spdif.yaml#"

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

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Liam Girdwood <lgirdwood@gmail.com>", "Mark Brown <broonie@kernel.org>", "Maxime Ripard <mripard@kernel.org>"

Properties and child nodes (properties) #

#sound-dai-cells — required here #

Exact value (const): 0

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "allwinner,sun4i-a10-spdif"

Rule 2

Exact value (const): "allwinner,sun6i-a31-spdif"

Rule 3

Exact value (const): "allwinner,sun8i-h3-spdif"

Rule 4

Exact value (const): "allwinner,sun50i-h6-spdif"

Rule 5

Exact value (const): "allwinner,sun50i-h616-spdif"

Rule 6

Exact value (const): "allwinner,sun55i-a523-spdif"

Rule 7

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun8i-a83t-spdif"

Item 2

Exact value (const): "allwinner,sun8i-h3-spdif"

Rule 8

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun50i-a64-spdif"

Item 2

Exact value (const): "allwinner,sun8i-h3-spdif"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

clock-names — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

dmas — required here #

true — No constraints added by this property rule.

dma-names — required here #

true — No constraints added by this property rule.

resets — not listed as required here #

Maximum number of items (maxItems): 1

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)

Allowed values (enum): "allwinner,sun6i-a31-spdif", "allwinner,sun8i-h3-spdif", "allwinner,sun50i-h6-spdif", "allwinner,sun50i-h616-spdif", "allwinner,sun55i-a523-spdif"

When the condition matches (then) #

Required in this object (required): "resets"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "allwinner,sun8i-h3-spdif", "allwinner,sun50i-h616-spdif"

When the condition matches (then) #

Properties and child nodes (properties)

dmas — not listed as required here

TX DMA Channel

dma-names — not listed as required here

Exact value (const): "tx"

When the condition does not match (else) #

Properties and child nodes (properties)

dmas — not listed as required here

Array item rules (items)

Item 1

RX DMA Channel

Item 2

TX DMA Channel

dma-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "allwinner,sun55i-a523-spdif"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

Bus Clock

Item 2

TX Clock

Item 3

RX Clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "apb"

Item 2

Exact value (const): "tx"

Item 3

Exact value (const): "rx"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

Bus Clock

Item 2

Module Clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "apb"

Item 2

Exact value (const): "spdif"

Required in this object (required): "#sound-dai-cells", "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

spdif: spdif@1c21000 {
    #sound-dai-cells = <0>;
    compatible = "allwinner,sun4i-a10-spdif";
    reg = <0x01c21000 0x40>;
    interrupts = <13>;
    clocks = <&apb0_gates 1>, <&spdif_clk>;
    clock-names = "apb", "spdif";
    dmas = <&dma 0 2>, <&dma 0 2>;
    dma-names = "rx", "tx";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 48: Even though it only applies to subschemas under the conditionals,

Line 49: not listing them here will trigger a warning because of the

Line 50: additionalsProperties set to false.

Edit this page