Allwinner A10 I2S Controller
Schema identifier ($id): "http://devicetree.org/schemas/sound/allwinner,sun4i-a10-i2s.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.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-i2s"
Rule 2
Exact value (
const):"allwinner,sun6i-a31-i2s"
Rule 3
Exact value (
const):"allwinner,sun8i-a83t-i2s"
Rule 4
Exact value (
const):"allwinner,sun8i-h3-i2s"
Rule 5
Array item rules (
items)Item 1
Exact value (
const):"allwinner,sun8i-r40-i2s"Item 2
Exact value (
const):"allwinner,sun8i-h3-i2s"
Rule 6
Array item rules (
items)Item 1
Exact value (
const):"allwinner,sun8i-v3-i2s"Item 2
Exact value (
const):"allwinner,sun8i-h3-i2s"
Rule 7
Exact value (
const):"allwinner,sun50i-a64-codec-i2s"
Rule 8
Array item rules (
items)Item 1
Exact value (
const):"allwinner,sun50i-a64-i2s"Item 2
Exact value (
const):"allwinner,sun8i-h3-i2s"
Rule 9
Exact value (
const):"allwinner,sun50i-h6-i2s"
Rule 10
Exact value (
const):"allwinner,sun50i-r329-i2s"
Rule 11
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun20i-d1-i2s","allwinner,sun55i-a523-i2s"Item 2
Exact value (
const):"allwinner,sun50i-r329-i2s"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
Bus Clock
Item 2
Module Clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"apb"
Item 2
Exact value (
const):"mod"
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 hereRule for matching array elements (
contains)Allowed values (
enum):"allwinner,sun6i-a31-i2s","allwinner,sun8i-a83t-i2s","allwinner,sun8i-h3-i2s","allwinner,sun50i-a64-codec-i2s","allwinner,sun50i-h6-i2s","allwinner,sun50i-r329-i2s"When the condition matches (
then) #
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"allwinner,sun8i-a83t-i2s","allwinner,sun8i-h3-i2s"When the condition matches (
then) #Properties and child nodes (
properties)
dmas— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
RX DMA Channel
Item 2
TX DMA Channel
Some controllers cannot receive but can only transmit data. In such a case, the RX DMA channel is to be omitted.
dma-names— not listed as required hereExactly one of these rules must match (
oneOf)Rule 1
Array item rules (
items)Item 1
Exact value (
const):"rx"Item 2
Exact value (
const):"tx"Rule 2
Exact value (
const):"tx"Some controllers cannot receive but can only transmit data. In such a case, the RX name is to be omitted.
When the condition does not match (
else) #Properties and child nodes (
properties)
dmas— not listed as required hereArray item rules (
items)Item 1
RX DMA Channel
Item 2
TX DMA Channel
dma-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"rx"Item 2
Exact value (
const):"tx"
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) #
i2s0: i2s@1c22400 {
#sound-dai-cells = <0>;
compatible = "allwinner,sun4i-a10-i2s";
reg = <0x01c22400 0x400>;
interrupts = <0 16 4>;
clocks = <&apb0_gates 3>, <&i2s0_clk>;
clock-names = "apb", "mod";
dmas = <&dma 0 3>, <&dma 0 3>;
dma-names = "rx", "tx";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)
Line 57: Even though it only applies to subschemas under the conditionals,
Line 58: not listing them here will trigger a warning because of the
Line 59: additionalsProperties set to false.