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

ASoC: dt-bindings: sprd,pcm-platform: convert to YAML

Convert the Spreadtrum DMA platform 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/9fc646b70a73e7a6c513771d69b0edcd140f09d7.1730310275.git.stano.jakubek@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Stanislav Jakubek and committed by
Mark Brown
a80aedeb 101c9023

+56 -23
+56
Documentation/devicetree/bindings/sound/sprd,pcm-platform.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,pcm-platform.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Spreadtrum DMA platform 8 + 9 + maintainers: 10 + - Orson Zhai <orsonzhai@gmail.com> 11 + - Baolin Wang <baolin.wang7@gmail.com> 12 + - Chunyan Zhang <zhang.lyra@gmail.com> 13 + 14 + properties: 15 + compatible: 16 + const: sprd,pcm-platform 17 + 18 + dmas: 19 + maxItems: 10 20 + 21 + dma-names: 22 + items: 23 + - const: normal_p_l 24 + - const: normal_p_r 25 + - const: normal_c_l 26 + - const: normal_c_r 27 + - const: voice_c 28 + - const: fast_p 29 + - const: loop_c 30 + - const: loop_p 31 + - const: voip_c 32 + - const: voip_p 33 + 34 + required: 35 + - compatible 36 + - dmas 37 + - dma-names 38 + 39 + additionalProperties: false 40 + 41 + examples: 42 + - | 43 + platform { 44 + compatible = "sprd,pcm-platform"; 45 + dmas = <&agcp_dma 1 1>, <&agcp_dma 2 2>, 46 + <&agcp_dma 3 3>, <&agcp_dma 4 4>, 47 + <&agcp_dma 5 5>, <&agcp_dma 6 6>, 48 + <&agcp_dma 7 7>, <&agcp_dma 8 8>, 49 + <&agcp_dma 9 9>, <&agcp_dma 10 10>; 50 + dma-names = "normal_p_l", "normal_p_r", 51 + "normal_c_l", "normal_c_r", 52 + "voice_c", "fast_p", 53 + "loop_c", "loop_p", 54 + "voip_c", "voip_p"; 55 + }; 56 + ...
-23
Documentation/devicetree/bindings/sound/sprd-pcm.txt
··· 1 - * Spreadtrum DMA platform bindings 2 - 3 - Required properties: 4 - - compatible: Should be "sprd,pcm-platform". 5 - - dmas: Specify the list of DMA controller phandle and DMA request line ordered pairs. 6 - - dma-names: Identifier string for each DMA request line in the dmas property. 7 - These strings correspond 1:1 with the ordered pairs in dmas. 8 - 9 - Example: 10 - 11 - audio_platform:platform@0 { 12 - compatible = "sprd,pcm-platform"; 13 - dmas = <&agcp_dma 1 1>, <&agcp_dma 2 2>, 14 - <&agcp_dma 3 3>, <&agcp_dma 4 4>, 15 - <&agcp_dma 5 5>, <&agcp_dma 6 6>, 16 - <&agcp_dma 7 7>, <&agcp_dma 8 8>, 17 - <&agcp_dma 9 9>, <&agcp_dma 10 10>; 18 - dma-names = "normal_p_l", "normal_p_r", 19 - "normal_c_l", "normal_c_r", 20 - "voice_c", "fast_p", 21 - "loop_c", "loop_p", 22 - "voip_c", "voip_p"; 23 - };