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