NXP/Goodix TFA989X (TFA1) Audio Amplifiers

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

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

Maintainers (maintainers): "Stephan Gerhold <stephan@gerhold.net>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nxp,tfa9890", "nxp,tfa9895", "nxp,tfa9897"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

rcv-gpios — not listed as required here #

optional GPIO to be asserted when receiver mode is enabled.

sound-name-prefix — not listed as required here #

true — No constraints added by this property rule.

vddd-supply — not listed as required here #

regulator phandle for the VDDD power supply.

Condition (if) #

This rule must not match (not) #

Properties and child nodes (properties) #

compatible — not listed as required here

Exact value (const): "nxp,tfa9897"

When the condition matches (then) #

Properties and child nodes (properties) #

rcv-gpios — not listed as required here #

false — Not permitted by this property rule.

Required in this object (required): "compatible", "reg", "#sound-dai-cells"

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

false

Not allowed by this rule.

Examples (examples) #

i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  audio-codec@34 {
    compatible = "nxp,tfa9895";
    reg = <0x34>;
    sound-name-prefix = "Speaker Left";
    #sound-dai-cells = <0>;
  };
  audio-codec@36 {
    compatible = "nxp,tfa9895";
    reg = <0x36>;
    sound-name-prefix = "Speaker Right";
    #sound-dai-cells = <0>;
  };
};
#include <dt-bindings/gpio/gpio.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  speaker_codec_top: audio-codec@34 {
    compatible = "nxp,tfa9897";
    reg = <0x34>;
    vddd-supply = <&pm8916_l6>;
    rcv-gpios = <&msmgpio 50 GPIO_ACTIVE_HIGH>;
    pinctrl-names = "default";
    pinctrl-0 = <&speaker_top_default>;
    sound-name-prefix = "Speaker Top";
    #sound-dai-cells = <0>;
  };

  speaker_codec_bottom: audio-codec@36 {
    compatible = "nxp,tfa9897";
    reg = <0x36>;
    vddd-supply = <&pm8916_l6>;
    rcv-gpios = <&msmgpio 111 GPIO_ACTIVE_HIGH>;
    pinctrl-names = "default";
    pinctrl-0 = <&speaker_bottom_default>;
    sound-name-prefix = "Speaker Bottom";
    #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)

Edit this page