mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
a80aedeb81
commit
310558120e
2 changed files with 47 additions and 19 deletions
|
@ -0,0 +1,47 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
||||||
|
%YAML 1.2
|
||||||
|
---
|
||||||
|
$id: http://devicetree.org/schemas/sound/sprd,sc9860-mcdt.yaml#
|
||||||
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||||
|
|
||||||
|
title: Spreadtrum Multi-Channel Data Transfer controller
|
||||||
|
|
||||||
|
description:
|
||||||
|
The Multi-channel data transfer controller is used for sound stream
|
||||||
|
transmission between the audio subsystem and other AP/CP subsystem. It
|
||||||
|
supports 10 DAC channels and 10 ADC channels, and each channel can be
|
||||||
|
configured with DMA mode or interrupt mode.
|
||||||
|
|
||||||
|
maintainers:
|
||||||
|
- Orson Zhai <orsonzhai@gmail.com>
|
||||||
|
- Baolin Wang <baolin.wang7@gmail.com>
|
||||||
|
- Chunyan Zhang <zhang.lyra@gmail.com>
|
||||||
|
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
const: sprd,sc9860-mcdt
|
||||||
|
|
||||||
|
reg:
|
||||||
|
maxItems: 1
|
||||||
|
|
||||||
|
interrupts:
|
||||||
|
maxItems: 1
|
||||||
|
|
||||||
|
required:
|
||||||
|
- compatible
|
||||||
|
- reg
|
||||||
|
- interrupts
|
||||||
|
|
||||||
|
additionalProperties: false
|
||||||
|
|
||||||
|
examples:
|
||||||
|
- |
|
||||||
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||||
|
#include <dt-bindings/interrupt-controller/irq.h>
|
||||||
|
|
||||||
|
mcdt@41490000 {
|
||||||
|
compatible = "sprd,sc9860-mcdt";
|
||||||
|
reg = <0x41490000 0x170>;
|
||||||
|
interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
|
};
|
||||||
|
...
|
|
@ -1,19 +0,0 @@
|
||||||
Spreadtrum Multi-Channel Data Transfer Binding
|
|
||||||
|
|
||||||
The Multi-channel data transfer controller is used for sound stream
|
|
||||||
transmission between audio subsystem and other AP/CP subsystem. It
|
|
||||||
supports 10 DAC channel and 10 ADC channel, and each channel can be
|
|
||||||
configured with DMA mode or interrupt mode.
|
|
||||||
|
|
||||||
Required properties:
|
|
||||||
- compatible: Should be "sprd,sc9860-mcdt".
|
|
||||||
- reg: Should contain registers address and length.
|
|
||||||
- interrupts: Should contain one interrupt shared by all channel.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
mcdt@41490000 {
|
|
||||||
compatible = "sprd,sc9860-mcdt";
|
|
||||||
reg = <0 0x41490000 0 0x170>;
|
|
||||||
interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
|
|
||||||
};
|
|
Loading…
Add table
Reference in a new issue