Skip to content

Commit 3105581

Browse files
Stanislav Jakubekbroonie
authored andcommitted
ASoC: dt-bindings: sprd,sc9860-mcdt: convert to YAML
Convert the Spreadtrum Multi-Channel Data Transfer controller bindings to DT schema. Adjust filename to match compatible. Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://patch.msgid.link/140ee384c1c351ffa3abefa8dd3246d1625dda8d.1730310275.git.stano.jakubek@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent a80aede commit 3105581

2 files changed

Lines changed: 47 additions & 19 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/sound/sprd,sc9860-mcdt.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Spreadtrum Multi-Channel Data Transfer controller
8+
9+
description:
10+
The Multi-channel data transfer controller is used for sound stream
11+
transmission between the audio subsystem and other AP/CP subsystem. It
12+
supports 10 DAC channels and 10 ADC channels, and each channel can be
13+
configured with DMA mode or interrupt mode.
14+
15+
maintainers:
16+
- Orson Zhai <orsonzhai@gmail.com>
17+
- Baolin Wang <baolin.wang7@gmail.com>
18+
- Chunyan Zhang <zhang.lyra@gmail.com>
19+
20+
properties:
21+
compatible:
22+
const: sprd,sc9860-mcdt
23+
24+
reg:
25+
maxItems: 1
26+
27+
interrupts:
28+
maxItems: 1
29+
30+
required:
31+
- compatible
32+
- reg
33+
- interrupts
34+
35+
additionalProperties: false
36+
37+
examples:
38+
- |
39+
#include <dt-bindings/interrupt-controller/arm-gic.h>
40+
#include <dt-bindings/interrupt-controller/irq.h>
41+
42+
mcdt@41490000 {
43+
compatible = "sprd,sc9860-mcdt";
44+
reg = <0x41490000 0x170>;
45+
interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
46+
};
47+
...

Documentation/devicetree/bindings/sound/sprd-mcdt.txt

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)