Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Stanislav Jakubek and committed by
Mark Brown
31055812 a80aedeb

+47 -19
+47
Documentation/devicetree/bindings/sound/sprd,sc9860-mcdt.yaml
··· 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 + ...
-19
Documentation/devicetree/bindings/sound/sprd-mcdt.txt
··· 1 - Spreadtrum Multi-Channel Data Transfer Binding 2 - 3 - The Multi-channel data transfer controller is used for sound stream 4 - transmission between audio subsystem and other AP/CP subsystem. It 5 - supports 10 DAC channel and 10 ADC channel, and each channel can be 6 - configured with DMA mode or interrupt mode. 7 - 8 - Required properties: 9 - - compatible: Should be "sprd,sc9860-mcdt". 10 - - reg: Should contain registers address and length. 11 - - interrupts: Should contain one interrupt shared by all channel. 12 - 13 - Example: 14 - 15 - mcdt@41490000 { 16 - compatible = "sprd,sc9860-mcdt"; 17 - reg = <0 0x41490000 0 0x170>; 18 - interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>; 19 - };