1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/sound/imx-a 4 $id: http://devicetree.org/schemas/sound/imx-audio-card.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: NXP i.MX audio sound card. 7 title: NXP i.MX audio sound card. 8 8 9 maintainers: 9 maintainers: 10 - Shengjiu Wang <shengjiu.wang@nxp.com> 10 - Shengjiu Wang <shengjiu.wang@nxp.com> 11 11 12 allOf: << 13 - $ref: sound-card-common.yaml# << 14 << 15 properties: 12 properties: 16 compatible: 13 compatible: 17 enum: 14 enum: 18 - fsl,imx-audio-card 15 - fsl,imx-audio-card 19 16 >> 17 model: >> 18 $ref: /schemas/types.yaml#/definitions/string >> 19 description: User specified audio sound card name >> 20 >> 21 audio-routing: >> 22 $ref: /schemas/types.yaml#/definitions/non-unique-string-array >> 23 description: >> 24 A list of the connections between audio components. Each entry is a >> 25 pair of strings, the first being the connection's sink, the second >> 26 being the connection's source. Valid names could be power supplies, >> 27 MicBias of codec and the jacks on the board. >> 28 20 patternProperties: 29 patternProperties: 21 ".*-dai-link$": 30 ".*-dai-link$": 22 description: 31 description: 23 Each subnode represents a dai link. Subn 32 Each subnode represents a dai link. Subnodes of each dai links would be 24 cpu/codec dais. 33 cpu/codec dais. 25 34 26 type: object 35 type: object 27 36 28 properties: 37 properties: 29 link-name: 38 link-name: 30 description: Indicates dai-link name a 39 description: Indicates dai-link name and PCM stream name. 31 $ref: /schemas/types.yaml#/definitions 40 $ref: /schemas/types.yaml#/definitions/string 32 maxItems: 1 41 maxItems: 1 33 42 34 format: 43 format: 35 description: audio format. 44 description: audio format. 36 items: 45 items: 37 enum: 46 enum: 38 - i2s 47 - i2s 39 - dsp_b 48 - dsp_b 40 49 41 dai-tdm-slot-num: 50 dai-tdm-slot-num: 42 description: see tdm-slot.txt. 51 description: see tdm-slot.txt. 43 $ref: /schemas/types.yaml#/definitions 52 $ref: /schemas/types.yaml#/definitions/uint32 44 53 45 dai-tdm-slot-width: 54 dai-tdm-slot-width: 46 description: see tdm-slot.txt. 55 description: see tdm-slot.txt. 47 $ref: /schemas/types.yaml#/definitions 56 $ref: /schemas/types.yaml#/definitions/uint32 48 57 49 cpu: 58 cpu: 50 description: Holds subnode which indic 59 description: Holds subnode which indicates cpu dai. 51 type: object 60 type: object 52 additionalProperties: false 61 additionalProperties: false 53 properties: 62 properties: 54 sound-dai: 63 sound-dai: 55 maxItems: 1 64 maxItems: 1 56 65 57 codec: 66 codec: 58 description: Holds subnode which indic 67 description: Holds subnode which indicates codec dai. 59 type: object 68 type: object 60 additionalProperties: false 69 additionalProperties: false 61 properties: 70 properties: 62 sound-dai: 71 sound-dai: 63 minItems: 1 72 minItems: 1 64 maxItems: 2 73 maxItems: 2 65 74 66 fsl,mclk-equal-bclk: 75 fsl,mclk-equal-bclk: 67 description: Indicates mclk can be equ 76 description: Indicates mclk can be equal to bclk, especially for sai interface 68 $ref: /schemas/types.yaml#/definitions 77 $ref: /schemas/types.yaml#/definitions/flag 69 78 70 required: 79 required: 71 - link-name 80 - link-name 72 - cpu 81 - cpu 73 82 74 additionalProperties: false 83 additionalProperties: false 75 84 76 required: 85 required: 77 - compatible 86 - compatible >> 87 - model 78 88 79 unevaluatedProperties: false !! 89 additionalProperties: false 80 90 81 examples: 91 examples: 82 - | 92 - | 83 sound-ak4458 { 93 sound-ak4458 { 84 compatible = "fsl,imx-audio-card"; 94 compatible = "fsl,imx-audio-card"; 85 model = "ak4458-audio"; 95 model = "ak4458-audio"; 86 pri-dai-link { 96 pri-dai-link { 87 link-name = "akcodec"; 97 link-name = "akcodec"; 88 format = "i2s"; 98 format = "i2s"; 89 fsl,mclk-equal-bclk; 99 fsl,mclk-equal-bclk; 90 cpu { 100 cpu { 91 sound-dai = <&sai1>; 101 sound-dai = <&sai1>; 92 }; 102 }; 93 codec { 103 codec { 94 sound-dai = <&ak4458_1>, <&ak 104 sound-dai = <&ak4458_1>, <&ak4458_2>; 95 }; 105 }; 96 }; 106 }; 97 fe-dai-link { 107 fe-dai-link { 98 link-name = "HiFi-ASRC-FE"; 108 link-name = "HiFi-ASRC-FE"; 99 format = "i2s"; 109 format = "i2s"; 100 cpu { 110 cpu { 101 sound-dai = <&easrc>; 111 sound-dai = <&easrc>; 102 }; 112 }; 103 }; 113 }; 104 be-dai-link { 114 be-dai-link { 105 link-name = "HiFi-ASRC-BE"; 115 link-name = "HiFi-ASRC-BE"; 106 format = "dsp_b"; 116 format = "dsp_b"; 107 dai-tdm-slot-num = <8>; 117 dai-tdm-slot-num = <8>; 108 dai-tdm-slot-width = <32>; 118 dai-tdm-slot-width = <32>; 109 fsl,mclk-equal-bclk; 119 fsl,mclk-equal-bclk; 110 cpu { 120 cpu { 111 sound-dai = <&sai1>; 121 sound-dai = <&sai1>; 112 }; 122 }; 113 codec { 123 codec { 114 sound-dai = <&ak4458_1>, <&ak4 124 sound-dai = <&ak4458_1>, <&ak4458_2>; 115 }; 125 }; 116 }; 126 }; 117 }; 127 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.