NAU88L21 audio codec

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

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

Maintainers (maintainers): "Seven Lee <wtli@nuvoton.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): "nuvoton,nau8821"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

nuvoton,jkdet-enable — not listed as required here #

Enable jack detection via JKDET pin.

Value type (type): "boolean"

nuvoton,jkdet-pull-enable — not listed as required here #

Enable JKDET pin pull. If set - pin pull enabled, otherwise pin in high impedance state.

Value type (type): "boolean"

nuvoton,jkdet-pull-up — not listed as required here #

Pull-up JKDET pin. If set then JKDET pin is pull up, otherwise pull down.

Value type (type): "boolean"

nuvoton,key-enable — not listed as required here #

handles key press detection.

Value type (type): "boolean"

nuvoton,jkdet-polarity — not listed as required here #

JKDET pin polarity.

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

Allowed values (enum): 0, 1

Default value (default): 1

nuvoton,micbias-voltage — not listed as required here #

MICBIAS output level select.

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

Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7

Default value (default): 6

nuvoton,vref-impedance — not listed as required here #

VMID Tie-off impedance select.

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

Allowed values (enum): 0, 1, 2, 3

Default value (default): 2

nuvoton,jack-insert-debounce — not listed as required here #

number from 0 to 7 that sets debounce time to 2^(n+2)ms.

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

Maximum value (maximum): 7

Default value (default): 7

nuvoton,jack-eject-debounce — not listed as required here #

number from 0 to 7 that sets debounce time to 2^(n+2)ms.

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

Maximum value (maximum): 7

Default value (default): 0

nuvoton,dmic-clk-threshold — not listed as required here #

DMIC clock speed expected value. Unit is Hz.

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

Default value (default): 3072000

nuvoton,dmic-slew-rate — not listed as required here #

The range 0 to 7 represents the speed of DMIC slew rate. The lowest value 0 means the slowest rate and the highest value 7 means the fastest rate.

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

Maximum value (maximum): 7

Default value (default): 0

nuvoton,left-input-single-end — not listed as required here #

Enable left input with single-ended settings if set. For the headset mic application, the single-ended control is just limited to the left adc for design demand.

Value type (type): "boolean"

nuvoton,adc-delay-ms — not listed as required here #

Delay (in ms) to make input path stable and avoid pop noise.

Minimum value (minimum): 125

Maximum value (maximum): 500

Default value (default): 125

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

Exact value (const): 0

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec@1b {
        compatible = "nuvoton,nau8821";
        reg = <0x1b>;
        interrupt-parent = <&gpio>;
        interrupts = <23 IRQ_TYPE_LEVEL_LOW>;
        nuvoton,jkdet-enable;
        nuvoton,jkdet-pull-enable;
        nuvoton,jkdet-pull-up;
        nuvoton,key-enable;
        nuvoton,left-input-single-end;
        nuvoton,jkdet-polarity = <GPIO_ACTIVE_LOW>;
        nuvoton,micbias-voltage = <6>;
        nuvoton,vref-impedance = <2>;
        nuvoton,jack-insert-debounce = <7>;
        nuvoton,jack-eject-debounce = <0>;
        nuvoton,dmic-clk-threshold = <3072000>;
        nuvoton,dmic-slew-rate = <0>;
        nuvoton,adc-delay-ms = <125>;
        #sound-dai-cells = <0>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 47: active high

Line 48: active low

Line 55: VDDA

Line 56: VDDA * 1

Line 57: VDDA * 1.1

Line 58: VDDA * 1.2

Line 59: VDDA * 1.3

Line 60: VDDA * 1.4

Line 61: VDDA * 1.53

Line 62: VDDA * 1.53

Line 69: open

Line 70: 25KOhms

Line 71: 125KOhms

Line 72: 2.5KOhms

Edit this page