mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
ASoC: dt-bindings: Add Loongson-1 AC97 Controller
Add devicetree binding document for Loongson-1 AC97 controller. Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Keguang Zhang <keguang.zhang@gmail.com> Link: https://patch.msgid.link/20250409-loongson1-ac97-v2-1-65d5db96a046@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
8ffd015db8
commit
d60007fc9b
|
|
@ -0,0 +1,68 @@
|
|||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/sound/loongson,ls1b-ac97.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Loongson-1 AC97 Controller
|
||||
|
||||
maintainers:
|
||||
- Keguang Zhang <keguang.zhang@gmail.com>
|
||||
|
||||
description:
|
||||
The Loongson-1 AC97 controller supports 2-channel stereo output and input.
|
||||
It is paired with the DMA engine to handle playback and capture functions.
|
||||
|
||||
allOf:
|
||||
- $ref: dai-common.yaml#
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
oneOf:
|
||||
- const: loongson,ls1b-ac97
|
||||
- items:
|
||||
- enum:
|
||||
- loongson,ls1a-ac97
|
||||
- loongson,ls1c-ac97
|
||||
- const: loongson,ls1b-ac97
|
||||
|
||||
reg:
|
||||
maxItems: 3
|
||||
|
||||
reg-names:
|
||||
items:
|
||||
- const: ac97
|
||||
- const: audio-tx
|
||||
- const: audio-rx
|
||||
|
||||
dmas:
|
||||
maxItems: 2
|
||||
|
||||
dma-names:
|
||||
items:
|
||||
- const: tx
|
||||
- const: rx
|
||||
|
||||
'#sound-dai-cells':
|
||||
const: 0
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
- reg-names
|
||||
- dmas
|
||||
- dma-names
|
||||
- '#sound-dai-cells'
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
audio-controller@1fe74000 {
|
||||
compatible = "loongson,ls1b-ac97";
|
||||
reg = <0x1fe74000 0x60>, <0x1fe72420 0x4>, <0x1fe74c4c 0x4>;
|
||||
reg-names = "ac97", "audio-tx", "audio-rx";
|
||||
dmas = <&dma 1>, <&dma 2>;
|
||||
dma-names = "tx", "rx";
|
||||
#sound-dai-cells = <0>;
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user