xref: /freebsd/sys/contrib/device-tree/Bindings/sound/loongson,ls1b-ac97.yaml (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
1*ae5de77eSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*ae5de77eSEmmanuel Vadot%YAML 1.2
3*ae5de77eSEmmanuel Vadot---
4*ae5de77eSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/loongson,ls1b-ac97.yaml#
5*ae5de77eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*ae5de77eSEmmanuel Vadot
7*ae5de77eSEmmanuel Vadottitle: Loongson-1 AC97 Controller
8*ae5de77eSEmmanuel Vadot
9*ae5de77eSEmmanuel Vadotmaintainers:
10*ae5de77eSEmmanuel Vadot  - Keguang Zhang <keguang.zhang@gmail.com>
11*ae5de77eSEmmanuel Vadot
12*ae5de77eSEmmanuel Vadotdescription:
13*ae5de77eSEmmanuel Vadot  The Loongson-1 AC97 controller supports 2-channel stereo output and input.
14*ae5de77eSEmmanuel Vadot  It is paired with the DMA engine to handle playback and capture functions.
15*ae5de77eSEmmanuel Vadot
16*ae5de77eSEmmanuel VadotallOf:
17*ae5de77eSEmmanuel Vadot  - $ref: dai-common.yaml#
18*ae5de77eSEmmanuel Vadot
19*ae5de77eSEmmanuel Vadotproperties:
20*ae5de77eSEmmanuel Vadot  compatible:
21*ae5de77eSEmmanuel Vadot    oneOf:
22*ae5de77eSEmmanuel Vadot      - const: loongson,ls1b-ac97
23*ae5de77eSEmmanuel Vadot      - items:
24*ae5de77eSEmmanuel Vadot          - enum:
25*ae5de77eSEmmanuel Vadot              - loongson,ls1a-ac97
26*ae5de77eSEmmanuel Vadot              - loongson,ls1c-ac97
27*ae5de77eSEmmanuel Vadot          - const: loongson,ls1b-ac97
28*ae5de77eSEmmanuel Vadot
29*ae5de77eSEmmanuel Vadot  reg:
30*ae5de77eSEmmanuel Vadot    maxItems: 3
31*ae5de77eSEmmanuel Vadot
32*ae5de77eSEmmanuel Vadot  reg-names:
33*ae5de77eSEmmanuel Vadot    items:
34*ae5de77eSEmmanuel Vadot      - const: ac97
35*ae5de77eSEmmanuel Vadot      - const: audio-tx
36*ae5de77eSEmmanuel Vadot      - const: audio-rx
37*ae5de77eSEmmanuel Vadot
38*ae5de77eSEmmanuel Vadot  dmas:
39*ae5de77eSEmmanuel Vadot    maxItems: 2
40*ae5de77eSEmmanuel Vadot
41*ae5de77eSEmmanuel Vadot  dma-names:
42*ae5de77eSEmmanuel Vadot    items:
43*ae5de77eSEmmanuel Vadot      - const: tx
44*ae5de77eSEmmanuel Vadot      - const: rx
45*ae5de77eSEmmanuel Vadot
46*ae5de77eSEmmanuel Vadot  '#sound-dai-cells':
47*ae5de77eSEmmanuel Vadot    const: 0
48*ae5de77eSEmmanuel Vadot
49*ae5de77eSEmmanuel Vadotrequired:
50*ae5de77eSEmmanuel Vadot  - compatible
51*ae5de77eSEmmanuel Vadot  - reg
52*ae5de77eSEmmanuel Vadot  - reg-names
53*ae5de77eSEmmanuel Vadot  - dmas
54*ae5de77eSEmmanuel Vadot  - dma-names
55*ae5de77eSEmmanuel Vadot  - '#sound-dai-cells'
56*ae5de77eSEmmanuel Vadot
57*ae5de77eSEmmanuel VadotunevaluatedProperties: false
58*ae5de77eSEmmanuel Vadot
59*ae5de77eSEmmanuel Vadotexamples:
60*ae5de77eSEmmanuel Vadot  - |
61*ae5de77eSEmmanuel Vadot    audio-controller@1fe74000 {
62*ae5de77eSEmmanuel Vadot        compatible = "loongson,ls1b-ac97";
63*ae5de77eSEmmanuel Vadot        reg = <0x1fe74000 0x60>, <0x1fe72420 0x4>, <0x1fe74c4c 0x4>;
64*ae5de77eSEmmanuel Vadot        reg-names = "ac97", "audio-tx", "audio-rx";
65*ae5de77eSEmmanuel Vadot        dmas = <&dma 1>, <&dma 2>;
66*ae5de77eSEmmanuel Vadot        dma-names = "tx", "rx";
67*ae5de77eSEmmanuel Vadot        #sound-dai-cells = <0>;
68*ae5de77eSEmmanuel Vadot    };
69