Allwinner A33 Codec

Schema identifier ($id): "http://devicetree.org/schemas/sound/allwinner,sun8i-a33-codec.yaml#"

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

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

#sound-dai-cells — required here #

Minimum value (minimum): 0

Maximum value (maximum): 1

A value of 0 is deprecated. When used, it only allows access to the ADC/DAC and AIF1 (the CPU DAI), not the other two AIFs/DAIs.

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

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

Item 2

Exact value (const): "allwinner,sun8i-a33-codec"

Rule 2

Exact value (const): "allwinner,sun8i-a33-codec"

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): "bus"

Item 2

Exact value (const): "mod"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

audio-codec@1c22e00 {
  #sound-dai-cells = <1>;
  compatible = "allwinner,sun8i-a33-codec";
  reg = <0x01c22e00 0x400>;
  interrupts = <0 29 4>;
  clocks = <&ccu 47>, <&ccu 92>;
  clock-names = "bus", "mod";
};

Source notes #

Annotations retained from the schema source

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

Edit this page