Infineon PEB2466 codec

Schema identifier ($id): "http://devicetree.org/schemas/sound/infineon,peb2466.yaml#"

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

Maintainers (maintainers): "Herve Codina <herve.codina@bootlin.com>"

The Infineon PEB2466 codec is a programmable DSP-based four channels codec with filters capabilities.

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 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 PEB2466 codec also supports 28 gpios (signaling pins).

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): "infineon,peb2466"

reg — required here #

SPI device address.

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

Master clock

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

spi-max-frequency — not listed as required here #

Maximum value (maximum): 8192000

reset-gpios — not listed as required here #

GPIO used to reset the device.

Maximum number of items (maxItems): 1

firmware-name — not listed as required here #

Maximum number of items (maxItems): 1

Filters coefficients file to load. If this property is omitted, internal filters are disabled.

#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", "#sound-dai-cells", "gpio-controller", "#gpio-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
spi {
    #address-cells = <1>;
    #size-cells = <0>;
    audio-codec@0 {
        compatible = "infineon,peb2466";
        reg = <0>;
        spi-max-frequency = <8192000>;
        reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
        #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)

Edit this page