Freescale MXS audio complex with SGTL5000 codec

Schema identifier ($id): "http://devicetree.org/schemas/sound/fsl,mxs-audio-sgtl5000.yaml#"

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

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "bluegiga,apx4devkit-sgtl5000", "denx,m28evk-sgtl5000", "fsl,imx28-evk-sgtl5000", "fsl,imx28-mbmx28lc-sgtl5000", "fsl,imx28-tx28-sgtl5000"

Item 2

Exact value (const): "fsl,mxs-audio-sgtl5000"

model — not listed as required here #

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

The user-visible name of this sound complex

saif-controllers — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

The phandle list of the MXS SAIF controller

audio-codec — required here #

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

The phandle of the SGTL5000 audio codec

audio-routing — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/non-unique-string-array

A list of the connections between audio components. Each entry is a pair of strings, the first being the connection's sink, the second being the connection's source. Valid names could be power supplies, SGTL5000 pins, and the jacks on the board:

Power supplies:
  * Mic Bias
SGTL5000 pins:
  * MIC_IN
  * LINE_IN
  * HP_OUT
  * LINE_OUT
Board connectors:
  * Mic Jack
  * Line In Jack
  * Headphone Jack
  * Line Out Jack
  * Ext Spk

Required in this object (required): "compatible", "saif-controllers", "audio-codec"

All of these rules must match (allOf) #

Rule 1 #

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "fsl,imx28-evk-sgtl5000", "fsl,mxs-audio-sgtl5000";
    model = "imx28-evk-sgtl5000";
    saif-controllers = <&saif0 &saif1>;
    audio-codec = <&sgtl5000>;
    audio-routing =
        "MIC_IN", "Mic Jack",
        "Mic Jack", "Mic Bias",
        "Headphone Jack", "HP_OUT";
};

Source notes #

Annotations retained from the schema source

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

Edit this page