xref: /freebsd/sys/contrib/device-tree/Bindings/sound/loongson,ls-audio-card.yaml (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*f126890aSEmmanuel Vadot%YAML 1.2
3*f126890aSEmmanuel Vadot---
4*f126890aSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/loongson,ls-audio-card.yaml#
5*f126890aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*f126890aSEmmanuel Vadot
7*f126890aSEmmanuel Vadottitle: Loongson 7axxx/2kxxx ASoC audio sound card driver
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadotmaintainers:
10*f126890aSEmmanuel Vadot  - Yingkun Meng <mengyingkun@loongson.cn>
11*f126890aSEmmanuel Vadot
12*f126890aSEmmanuel Vadotdescription:
13*f126890aSEmmanuel Vadot  The binding describes the sound card present in loongson
14*f126890aSEmmanuel Vadot  7axxx/2kxxx platform. The sound card is an ASoC component
15*f126890aSEmmanuel Vadot  which uses Loongson I2S controller to transfer the audio data.
16*f126890aSEmmanuel Vadot
17*f126890aSEmmanuel Vadotproperties:
18*f126890aSEmmanuel Vadot  compatible:
19*f126890aSEmmanuel Vadot    const: loongson,ls-audio-card
20*f126890aSEmmanuel Vadot
21*f126890aSEmmanuel Vadot  model:
22*f126890aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/string
23*f126890aSEmmanuel Vadot    description: User specified audio sound card name
24*f126890aSEmmanuel Vadot
25*f126890aSEmmanuel Vadot  mclk-fs:
26*f126890aSEmmanuel Vadot    $ref: simple-card.yaml#/definitions/mclk-fs
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot  cpu:
29*f126890aSEmmanuel Vadot    description: Holds subnode which indicates cpu dai.
30*f126890aSEmmanuel Vadot    type: object
31*f126890aSEmmanuel Vadot    additionalProperties: false
32*f126890aSEmmanuel Vadot    properties:
33*f126890aSEmmanuel Vadot      sound-dai:
34*f126890aSEmmanuel Vadot        maxItems: 1
35*f126890aSEmmanuel Vadot    required:
36*f126890aSEmmanuel Vadot      - sound-dai
37*f126890aSEmmanuel Vadot
38*f126890aSEmmanuel Vadot  codec:
39*f126890aSEmmanuel Vadot    description: Holds subnode which indicates codec dai.
40*f126890aSEmmanuel Vadot    type: object
41*f126890aSEmmanuel Vadot    additionalProperties: false
42*f126890aSEmmanuel Vadot    properties:
43*f126890aSEmmanuel Vadot      sound-dai:
44*f126890aSEmmanuel Vadot        maxItems: 1
45*f126890aSEmmanuel Vadot    required:
46*f126890aSEmmanuel Vadot      - sound-dai
47*f126890aSEmmanuel Vadot
48*f126890aSEmmanuel Vadotrequired:
49*f126890aSEmmanuel Vadot  - compatible
50*f126890aSEmmanuel Vadot  - model
51*f126890aSEmmanuel Vadot  - mclk-fs
52*f126890aSEmmanuel Vadot  - cpu
53*f126890aSEmmanuel Vadot  - codec
54*f126890aSEmmanuel Vadot
55*f126890aSEmmanuel VadotadditionalProperties: false
56*f126890aSEmmanuel Vadot
57*f126890aSEmmanuel Vadotexamples:
58*f126890aSEmmanuel Vadot  - |
59*f126890aSEmmanuel Vadot    sound {
60*f126890aSEmmanuel Vadot        compatible = "loongson,ls-audio-card";
61*f126890aSEmmanuel Vadot        model = "loongson-audio";
62*f126890aSEmmanuel Vadot        mclk-fs = <512>;
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot        cpu {
65*f126890aSEmmanuel Vadot            sound-dai = <&i2s>;
66*f126890aSEmmanuel Vadot        };
67*f126890aSEmmanuel Vadot        codec {
68*f126890aSEmmanuel Vadot             sound-dai = <&es8323>;
69*f126890aSEmmanuel Vadot        };
70*f126890aSEmmanuel Vadot    };
71