brintos

brintos / linux-shallow public Read only

0
0
Text · 2.7 KiB · f7ad5ea Raw
118 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/sound/imx-audio-card.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: NXP i.MX audio sound card.8 9maintainers:10  - Shengjiu Wang <shengjiu.wang@nxp.com>11 12allOf:13  - $ref: sound-card-common.yaml#14 15properties:16  compatible:17    enum:18      - fsl,imx-audio-card19 20patternProperties:21  ".*-dai-link$":22    description:23      Each subnode represents a dai link. Subnodes of each dai links would be24      cpu/codec dais.25 26    type: object27 28    properties:29      link-name:30        description: Indicates dai-link name and PCM stream name.31        $ref: /schemas/types.yaml#/definitions/string32        maxItems: 133 34      format:35        description: audio format.36        items:37          enum:38            - i2s39            - dsp_b40 41      dai-tdm-slot-num:42        description: see tdm-slot.txt.43        $ref: /schemas/types.yaml#/definitions/uint3244 45      dai-tdm-slot-width:46        description: see tdm-slot.txt.47        $ref: /schemas/types.yaml#/definitions/uint3248 49      cpu:50        description: Holds subnode which indicates cpu dai.51        type: object52        additionalProperties: false53        properties:54          sound-dai:55            maxItems: 156 57      codec:58        description: Holds subnode which indicates codec dai.59        type: object60        additionalProperties: false61        properties:62          sound-dai:63            minItems: 164            maxItems: 265 66      fsl,mclk-equal-bclk:67        description: Indicates mclk can be equal to bclk, especially for sai interface68        $ref: /schemas/types.yaml#/definitions/flag69 70    required:71      - link-name72      - cpu73 74    additionalProperties: false75 76required:77  - compatible78 79unevaluatedProperties: false80 81examples:82  - |83    sound-ak4458 {84        compatible = "fsl,imx-audio-card";85        model = "ak4458-audio";86        pri-dai-link {87            link-name = "akcodec";88            format = "i2s";89            fsl,mclk-equal-bclk;90            cpu {91                 sound-dai = <&sai1>;92            };93            codec {94                 sound-dai = <&ak4458_1>, <&ak4458_2>;95            };96        };97        fe-dai-link {98            link-name = "HiFi-ASRC-FE";99            format = "i2s";100            cpu {101                sound-dai = <&easrc>;102            };103        };104        be-dai-link {105            link-name = "HiFi-ASRC-BE";106            format = "dsp_b";107            dai-tdm-slot-num = <8>;108            dai-tdm-slot-width = <32>;109            fsl,mclk-equal-bclk;110            cpu {111                sound-dai = <&sai1>;112            };113            codec {114                sound-dai = <&ak4458_1>, <&ak4458_2>;115            };116        };117    };118