Texas Instruments TS3A227E Autonomous Audio Accessory Detection and Configuration Switch

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

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

Maintainers (maintainers): "Dylan Reid <dgreid@chromium.org>"

The TS3A227E detect headsets of 3-ring and 4-ring standards and switches automatically to route the microphone correctly. It also handles key press detection in accordance with the Android audio headset specification v1.0.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,ts3a227e"

reg — required here #

Exact value (const): 59

interrupts — required here #

Maximum number of items (maxItems): 1

ti,micbias — not listed as required here #

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

Intended MICBIAS voltage (datasheet section 9.6.7).

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

Default value (default): 1

ti,debounce-release-ms — not listed as required here #

key release debounce time in ms (datasheet section 9.6.7).

Allowed values (enum): 0, 20

Default value (default): 20

ti,debounce-press-ms — not listed as required here #

key press debounce time in ms (datasheet section 9.6.7).

Allowed values (enum): 2, 40, 80, 120

Default value (default): 80

ti,debounce-insertion-ms — not listed as required here #

headset insertion debounce time in ms (datasheet section 9.6.5).

Allowed values (enum): 2, 30, 60, 90, 120, 150, 1000, 2000

Default value (default): 90

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

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    codec: audio-controller@3b {
        compatible = "ti,ts3a227e";
        reg = <0x3b>;
        interrupt-parent = <&gpio1>;
        interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
    };
};

Source notes #

Annotations retained from the schema source

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

Line 34: 2.1 V

Line 35: 2.2 V

Line 36: 2.3 V

Line 37: 2.4 V

Line 38: 2.5 V

Line 39: 2.6 V

Line 40: 2.7 V

Line 41: 2.8 V

Edit this page