Renesas IDT821034 codec device
Schema identifier ($id): "http://devicetree.org/schemas/sound/renesas,idt821034.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Herve Codina <herve.codina@bootlin.com>"
The IDT821034 codec is a four channel PCM codec with onchip filters and programmable gain setting.
The time-slots used by the codec must be set and so, the properties 'dai-tdm-slot-num', 'dai-tdm-slot-width', 'dai-tdm-slot-tx-mask' and 'dai-tdm-slot-rx-mask' must be present in the ALSA sound card node for sub-nodes that involve the codec. The codec uses one 8bit time-slot per channel. 'dai-tdm-tdm-slot-with' must be set to 8.
The IDT821034 codec also supports 5 gpios (SLIC signals) per channel.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Shared schema rule (
$ref):dai-common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "renesas,idt821034"
reg — required here #
SPI device address.
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 8192000
spi-cpha — required here #
true — No constraints added by this property rule.
#sound-dai-cells — required here #
Exact value (const): 0
#gpio-cells — required here #
Exact value (const): 2
gpio-controller — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "spi-cpha", "#sound-dai-cells", "gpio-controller", "#gpio-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
audio-codec@0 {
compatible = "renesas,idt821034";
reg = <0>;
spi-max-frequency = <8192000>;
spi-cpha;
#sound-dai-cells = <0>;
gpio-controller;
#gpio-cells = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)