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

ASoC: dt-bindings: xlnx,spdif: Convert to json-schema

Convert the Xilinx SPDIF 2.0 device tree binding documentation to
json-schema.

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Link: https://patch.msgid.link/20250226122325.2014547-4-vincenzo.frascino@arm.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Vincenzo Frascino and committed by
Mark Brown
7ed7065d 1b8b6dd0

+77 -28
-28
Documentation/devicetree/bindings/sound/xlnx,spdif.txt
··· 1 - Device-Tree bindings for Xilinx SPDIF IP 2 - 3 - The IP supports playback and capture of SPDIF audio 4 - 5 - Required properties: 6 - - compatible: "xlnx,spdif-2.0" 7 - - clock-names: List of input clocks. 8 - Required elements: "s_axi_aclk", "aud_clk_i" 9 - - clocks: Input clock specifier. Refer to common clock bindings. 10 - - reg: Base address and address length of the IP core instance. 11 - - interrupts-parent: Phandle for interrupt controller. 12 - - interrupts: List of Interrupt numbers. 13 - - xlnx,spdif-mode: 0 :- receiver mode 14 - 1 :- transmitter mode 15 - - xlnx,aud_clk_i: input audio clock value. 16 - 17 - Example: 18 - spdif_0: spdif@80010000 { 19 - clock-names = "aud_clk_i", "s_axi_aclk"; 20 - clocks = <&misc_clk_0>, <&clk 71>; 21 - compatible = "xlnx,spdif-2.0"; 22 - interrupt-names = "spdif_interrupt"; 23 - interrupt-parent = <&gic>; 24 - interrupts = <0 91 4>; 25 - reg = <0x0 0x80010000 0x0 0x10000>; 26 - xlnx,spdif-mode = <1>; 27 - xlnx,aud_clk_i = <49152913>; 28 - };
+77
Documentation/devicetree/bindings/sound/xlnx,spdif.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/xlnx,spdif.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Xilinx SPDIF IP 8 + 9 + description: 10 + The IP supports playback and capture of SPDIF audio. 11 + 12 + maintainers: 13 + - Vincenzo Frascino <vincenzo.frascino@arm.com> 14 + 15 + allOf: 16 + - $ref: dai-common.yaml# 17 + 18 + properties: 19 + compatible: 20 + enum: 21 + - xlnx,spdif-2.0 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + interrupts: 27 + items: 28 + - description: SPDIF audio interrupt 29 + 30 + clock-names: 31 + items: 32 + - const: aud_clk_i 33 + - const: s_axi_aclk 34 + 35 + clocks: 36 + minItems: 1 37 + items: 38 + - description: input audio clock 39 + - description: clock for the AXI data stream 40 + 41 + xlnx,spdif-mode: 42 + $ref: /schemas/types.yaml#/definitions/uint32 43 + enum: 44 + - 0 45 + - 1 46 + description: | 47 + 0 - receiver 48 + 1 - transmitter 49 + 50 + xlnx,aud_clk_i: 51 + $ref: /schemas/types.yaml#/definitions/uint32 52 + description: 53 + Input audio clock frequency. It affects the sampling rate. 54 + 55 + required: 56 + - compatible 57 + - reg 58 + - interrupts 59 + - clock-names 60 + - clocks 61 + 62 + additionalProperties: false 63 + 64 + examples: 65 + - | 66 + spdif@80010000 { 67 + compatible = "xlnx,spdif-2.0"; 68 + reg = <0x80010000 0x10000>; 69 + clock-names = "aud_clk_i", "s_axi_aclk"; 70 + clocks = <&misc_clk_0>, <&clk 71>; 71 + interrupt-parent = <&gic>; 72 + interrupts = <0 91 4>; 73 + xlnx,spdif-mode = <1>; 74 + xlnx,aud_clk_i = <49152913>; 75 + }; 76 + 77 + ...