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

ASoC: dt-bindings: realtek,rt5514: Convert to dtschema

Convert the RT5514 audio CODEC bindings to DT Schema. Make bindings
complete by adding 'spi-max-frequency', 'wakeup-source' properties.

Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com>
Cc: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://msgid.link/r/20240616095223.260786-1-animeshagarwal28@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Animesh Agarwal and committed by
Mark Brown
2618b2ec 20346f5c

+70 -37
+70
Documentation/devicetree/bindings/sound/realtek,rt5514.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/realtek,rt5514.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: RT5514 audio CODEC 8 + 9 + maintainers: 10 + - Animesh Agarwal <animeshagarwal28@gmail.com> 11 + 12 + description: | 13 + This device supports both I2C and SPI. 14 + 15 + Pins on the device (for linking into audio routes) for I2C: 16 + * DMIC1L 17 + * DMIC1R 18 + * DMIC2L 19 + * DMIC2R 20 + * AMICL 21 + * AMICR 22 + 23 + allOf: 24 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 25 + - $ref: dai-common.yaml# 26 + 27 + properties: 28 + compatible: 29 + const: realtek,rt5514 30 + 31 + reg: 32 + maxItems: 1 33 + 34 + clocks: 35 + items: 36 + - description: Master clock to the CODEC 37 + 38 + clock-names: 39 + items: 40 + - const: mclk 41 + 42 + interrupts: 43 + maxItems: 1 44 + description: The interrupt number to the cpu. 45 + 46 + realtek,dmic-init-delay-ms: 47 + description: Set the DMIC initial delay (ms) to wait it ready for I2C. 48 + 49 + spi-max-frequency: true 50 + 51 + wakeup-source: 52 + type: boolean 53 + description: Flag to indicate this device can wake system (suspend/resume). 54 + 55 + required: 56 + - compatible 57 + - reg 58 + 59 + unevaluatedProperties: false 60 + 61 + examples: 62 + - | 63 + i2c { 64 + #address-cells = <1>; 65 + #size-cells = <0>; 66 + codec@57 { 67 + compatible = "realtek,rt5514"; 68 + reg = <0x57>; 69 + }; 70 + };
-37
Documentation/devicetree/bindings/sound/rt5514.txt
··· 1 - RT5514 audio CODEC 2 - 3 - This device supports both I2C and SPI. 4 - 5 - Required properties: 6 - 7 - - compatible : "realtek,rt5514". 8 - 9 - - reg : the I2C address of the device for I2C, the chip select 10 - number for SPI. 11 - 12 - Optional properties: 13 - 14 - - clocks: The phandle of the master clock to the CODEC 15 - - clock-names: Should be "mclk" 16 - 17 - - interrupts: The interrupt number to the cpu. The interrupt specifier format 18 - depends on the interrupt controller. 19 - 20 - - realtek,dmic-init-delay-ms 21 - Set the DMIC initial delay (ms) to wait it ready for I2C. 22 - 23 - Pins on the device (for linking into audio routes) for I2C: 24 - 25 - * DMIC1L 26 - * DMIC1R 27 - * DMIC2L 28 - * DMIC2R 29 - * AMICL 30 - * AMICR 31 - 32 - Example: 33 - 34 - rt5514: codec@57 { 35 - compatible = "realtek,rt5514"; 36 - reg = <0x57>; 37 - };