Freescale Generic ASoC Sound Card with ASRC support
Schema identifier ($id): "http://devicetree.org/schemas/sound/fsl-asoc-card.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Freescale Generic ASoC Sound Card can be used, ideally, for all Freescale SoCs connecting with external CODECs. The idea of this generic sound card is a bit like ASoC Simple Card. However, for Freescale SoCs (especially those released in recent years), most of them have ASRC inside. And this is a specific feature that might be painstakingly controlled and merged into the Simple Card. So having this generic sound card allows all Freescale SoC users to benefit from the simplification of a new card support and the capability of the wide sample rates support through ASRC. Note, The card is initially designed for those sound cards who use AC'97, I2S and PCM DAI formats. However, it'll be also possible to support those non AC'97/I2S/PCM type sound cards, such as S/PDIF audio and HDMI audio, as long as the driver has been properly upgraded.
Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx-sgtl5000","fsl,imx25-pdk-sgtl5000","fsl,imx53-cpuvo-sgtl5000","fsl,imx51-babbage-sgtl5000","fsl,imx53-m53evk-sgtl5000","fsl,imx53-qsb-sgtl5000","fsl,imx53-voipac-sgtl5000","fsl,imx6-armadeus-sgtl5000","fsl,imx6-rex-sgtl5000","fsl,imx6-sabreauto-cs42888","fsl,imx6-wandboard-sgtl5000","fsl,imx6dl-nit6xlite-sgtl5000","fsl,imx6q-ba16-sgtl5000","fsl,imx6q-nitrogen6_max-sgtl5000","fsl,imx6q-nitrogen6_som2-sgtl5000","fsl,imx6q-nitrogen6x-sgtl5000","fsl,imx6q-sabrelite-sgtl5000","fsl,imx6q-sabresd-wm8962","fsl,imx6q-udoo-ac97","fsl,imx6q-ventana-sgtl5000","fsl,imx6sl-evk-wm8962","fsl,imx6sx-sdb-mqs","fsl,imx6sx-sdb-wm8962","fsl,imx7d-evk-wm8960","karo,tx53-audio-sgtl5000","tq,imx53-mba53-sgtl5000"Item 2
Allowed values (
enum):"fsl,imx-audio-ac97","fsl,imx-audio-cs42888","fsl,imx-audio-mqs","fsl,imx-audio-sgtl5000","fsl,imx-audio-wm8960","fsl,imx-audio-wm8962"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx-sabreauto-spdif","fsl,imx6sx-sdb-spdif"Item 2
Exact value (
const):"fsl,imx-audio-spdif"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx-audio-ac97","fsl,imx-audio-cs42888","fsl,imx-audio-cs427x","fsl,imx-audio-mqs","fsl,imx-audio-nau8822","fsl,imx-audio-sgtl5000","fsl,imx-audio-si476x","fsl,imx-audio-tlv320","fsl,imx-audio-tlv320aic31xx","fsl,imx-audio-tlv320aic32x4","fsl,imx-audio-wm8524","fsl,imx-audio-wm8904","fsl,imx-audio-wm8960","fsl,imx-audio-wm8962","fsl,imx-audio-wm8958","fsl,imx-audio-spdif"
model — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
The user-visible name of this sound complex
audio-asrc — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
The phandle of ASRC. It can be absent if there's no need to add ASRC support via DPCM.
audio-codec — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
The phandle of an audio codec. With "fsl,imx-audio-spdif", either SPDIF audio codec spdif_transmitter, spdif_receiver or both.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
Maximum number of items (
maxItems):1
audio-cpu — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
The phandle of an CPU DAI controller
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. There're a few pre-designed board connectors. "AMIC" stands for Analog Microphone Jack. "DMIC" stands for Digital Microphone Jack. The "Mic Jack" and "AMIC" are redundant while coexisting in order to support the old bindings of wm8962 and sgtl5000.
hp-det-gpio — not listed as required here #
Deprecated (deprecated): true
Maximum number of items (maxItems): 1
The GPIO that detect headphones are plugged in
hp-det-gpios — not listed as required here #
Maximum number of items (maxItems): 1
The GPIO that detect headphones are plugged in
mic-det-gpio — not listed as required here #
Deprecated (deprecated): true
Maximum number of items (maxItems): 1
The GPIO that detect microphones are plugged in
mic-det-gpios — not listed as required here #
Maximum number of items (maxItems): 1
The GPIO that detect microphones are plugged in
bitclock-master — not listed as required here #
Shared schema rule ($ref): simple-card.yaml#/definitions/bitclock-master
Indicates dai-link bit clock master.
frame-master — not listed as required here #
Shared schema rule ($ref): simple-card.yaml#/definitions/frame-master
Indicates dai-link frame master.
format — not listed as required here #
Shared schema rule ($ref): simple-card.yaml#/definitions/format
audio format.
frame-inversion — not listed as required here #
Shared schema rule ($ref): simple-card.yaml#/definitions/frame-inversion
dai-link uses frame clock inversion.
bitclock-inversion — not listed as required here #
Shared schema rule ($ref): simple-card.yaml#/definitions/bitclock-inversion
dai-link uses bit clock inversion.
mclk-id — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Main clock id for each codec, specific for each card configuration.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
mux-int-port — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 7
The internal port of the i.MX audio muxer (AUDMUX)
mux-ext-port — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 3, 4, 5, 6
The external port of the i.MX audio muxer
ssi-controller — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
The phandle of an CPU DAI controller
spdif-controller — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Deprecated (deprecated): true
The phandle of an S/PDIF CPU DAI controller.
spdif-out — not listed as required here #
Value type (type): "boolean"
Deprecated (deprecated): true
If present, the transmitting function of S/PDIF will be enabled, indicating there's a physical S/PDIF out connector or jack on the board or it's connecting to some other IP block, such as an HDMI encoder or display-controller.
spdif-in — not listed as required here #
Value type (type): "boolean"
Deprecated (deprecated): true
If present, the receiving function of S/PDIF will be enabled, indicating there is a physical S/PDIF in connector/jack on the board.
Required in this object (required): "compatible", "model"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
sound-cs42888 {
compatible = "fsl,imx-audio-cs42888";
model = "cs42888-audio";
audio-cpu = <&esai>;
audio-asrc = <&asrc>;
audio-codec = <&cs42888>;
audio-routing =
"Line Out Jack", "AOUT1L",
"Line Out Jack", "AOUT1R",
"Line Out Jack", "AOUT2L",
"Line Out Jack", "AOUT2R",
"Line Out Jack", "AOUT3L",
"Line Out Jack", "AOUT3R",
"Line Out Jack", "AOUT4L",
"Line Out Jack", "AOUT4R",
"AIN1L", "Line In Jack",
"AIN1R", "Line In Jack",
"AIN2L", "Line In Jack",
"AIN2R", "Line In Jack";
};
sound-spdif-asrc {
compatible = "fsl,imx-audio-spdif";
model = "spdif-asrc-audio";
audio-cpu = <&spdif>;
audio-asrc = <&easrc>;
audio-codec = <&spdifdit>, <&spdifdir>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)