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

ASoC: dt-bindings: maxim,max98371: Convert to DT schema

Convert the Maxim Integrated MAX98371 audio codec bindings to DT schema.

Signed-off-by: André Morishita <andremorishita@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230401181930.533067-1-andremorishita@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

André Morishita and committed by
Mark Brown
5781c22e ee4281de

+42 -17
-17
Documentation/devicetree/bindings/sound/max98371.txt
··· 1 - max98371 codec 2 - 3 - This device supports I2C mode only. 4 - 5 - Required properties: 6 - 7 - - compatible : "maxim,max98371" 8 - - reg : The chip select number on the I2C bus 9 - 10 - Example: 11 - 12 - &i2c { 13 - max98371: max98371@31 { 14 - compatible = "maxim,max98371"; 15 - reg = <0x31>; 16 - }; 17 - };
+42
Documentation/devicetree/bindings/sound/maxim,max98371.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,max98371.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Maxim MAX98371 audio codec 8 + 9 + maintainers: 10 + - anish kumar <yesanishhere@gmail.com> 11 + 12 + allOf: 13 + - $ref: dai-common.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: maxim,max98371 18 + 19 + '#sound-dai-cells': 20 + const: 0 21 + 22 + reg: 23 + maxItems: 1 24 + 25 + required: 26 + - compatible 27 + - reg 28 + 29 + unevaluatedProperties: false 30 + 31 + examples: 32 + - | 33 + i2c { 34 + #address-cells = <1>; 35 + #size-cells = <0>; 36 + 37 + codec@31 { 38 + compatible = "maxim,max98371"; 39 + reg = <0x31>; 40 + #sound-dai-cells = <0>; 41 + }; 42 + };