Freescale i.MX audio complex with ES8328 codec

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

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

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "fsl,imx-audio-es8328"

model — required here #

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

The user-visible name of this sound complex

ssi-controller — required here #

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

The phandle of the i.MX SSI controller

jack-gpio — required here #

Optional GPIO for headphone jack

Maximum number of items (maxItems): 1

audio-amp-supply — required here #

Power regulator for speaker amps

audio-codec — required here #

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

The phandle to the ES8328 audio codec

audio-routing — 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, ES8328 pins, and the jacks on the board:

Power supplies:
  * audio-amp
ES8328 pins:
  * LOUT1
  * LOUT2
  * ROUT1
  * ROUT2
  * LINPUT1
  * LINPUT2
  * RINPUT1
  * RINPUT2
  * Mic PGA
Board connectors:
  * Headphone
  * Speaker
  * Mic Jack

mux-int-port — required here #

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

The internal port of the i.MX audio muxer (AUDMUX)

Allowed values (enum): 1, 2, 7

Default value (default): 1

mux-ext-port — required here #

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

The external port of the i.MX audio muxer (AUDMIX)

Allowed values (enum): 3, 4, 5, 6

Default value (default): 3

Required in this object (required): "compatible", "model", "ssi-controller", "jack-gpio", "audio-amp-supply", "audio-codec", "audio-routing", "mux-int-port", "mux-ext-port"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sound {
    compatible = "fsl,imx-audio-es8328";
    model = "imx-audio-es8328";
    ssi-controller = <&ssi1>;
    audio-codec = <&codec>;
    jack-gpio = <&gpio5 15 0>;
    audio-amp-supply = <&reg_audio_amp>;
    audio-routing =
        "Speaker", "LOUT2",
        "Speaker", "ROUT2",
        "Speaker", "audio-amp",
        "Headphone", "ROUT1",
        "Headphone", "LOUT1",
        "LINPUT1", "Mic Jack",
        "RINPUT1", "Mic Jack",
        "Mic Jack", "Mic Bias";
    mux-int-port = <1>;
    mux-ext-port = <3>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page