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

ASoC: dt-bindings: maxim,max98095: Convert to dtschema

Convert the Maxim Integrated MAX98095 audio codec bindings to DT schema.
Add missing sound-dai-cells during conversion.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230211134755.86061-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
46f5c98e 66dc3b9b

+54 -22
-22
Documentation/devicetree/bindings/sound/max98095.txt
··· 1 - MAX98095 audio CODEC 2 - 3 - This device supports I2C only. 4 - 5 - Required properties: 6 - 7 - - compatible : "maxim,max98095". 8 - 9 - - reg : The I2C address of the device. 10 - 11 - Optional properties: 12 - 13 - - clocks: The phandle of the master clock to the CODEC 14 - 15 - - clock-names: Should be "mclk" 16 - 17 - Example: 18 - 19 - max98095: codec@11 { 20 - compatible = "maxim,max98095"; 21 - reg = <0x11>; 22 - };
+54
Documentation/devicetree/bindings/sound/maxim,max98095.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/maxim,max98095.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Maxim Integrated MAX98095 audio codec 8 + 9 + maintainers: 10 + - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 11 + 12 + allOf: 13 + - $ref: dai-common.yaml# 14 + 15 + properties: 16 + compatible: 17 + enum: 18 + - maxim,max98095 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + clocks: 24 + items: 25 + - description: master clock 26 + 27 + clock-names: 28 + items: 29 + - const: mclk 30 + 31 + '#sound-dai-cells': 32 + const: 1 33 + 34 + required: 35 + - compatible 36 + - reg 37 + 38 + unevaluatedProperties: false 39 + 40 + examples: 41 + - | 42 + #include <dt-bindings/interrupt-controller/irq.h> 43 + 44 + i2c { 45 + #address-cells = <1>; 46 + #size-cells = <0>; 47 + 48 + audio-codec@11 { 49 + compatible = "maxim,max98095"; 50 + reg = <0x11>; 51 + clocks = <&i2s0 0>; 52 + clock-names = "mclk"; 53 + }; 54 + };