Generic PDM Digital microphone (DMIC) codec

Schema identifier ($id): "http://devicetree.org/schemas/sound/dmic-codec.yaml#"

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

Maintainers (maintainers): "Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "dmic-codec"

#sound-dai-cells — not listed as required here #

Exact value (const): 0

vref-supply — not listed as required here #

Phandle to the digital microphone reference supply

dmicen-gpios — not listed as required here #

GPIO specifier for DMIC to control start and stop

Maximum number of items (maxItems): 1

num-channels — not listed as required here #

Number of microphones on this DAI

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 1

Maximum value (maximum): 8

Default value (default): 8

modeswitch-delay-ms — not listed as required here #

Delay (in ms) to complete DMIC mode switch

wakeup-delay-ms — not listed as required here #

Delay (in ms) after enabling the DMIC

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

dmic {
    compatible = "dmic-codec";
    dmicen-gpios = <&gpio4 3 GPIO_ACTIVE_HIGH>;
    num-channels = <1>;
    wakeup-delay-ms = <50>;
    modeswitch-delay-ms = <35>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page