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

ASoC: dt-bindings: ssm2518: Convert to dtschema

Convert the ADI SSM2518 audio CODEC bindings to DT schema.

Signed-off-by: Marek Vasut <marex@denx.de
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org
Link: https://lore.kernel.org/r/20230514225243.777504-1-marex@denx.de
Signed-off-by: Mark Brown <broonie@kernel.org

authored by

Marek Vasut and committed by
Mark Brown
20ef7f21 fc1d62b3

+47 -20
+47
Documentation/devicetree/bindings/sound/adi,ssm2518.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/adi,ssm2518.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Analog Devices SSM2518 audio amplifier 8 + 9 + maintainers: 10 + - Lars-Peter Clausen <lars@metafoo.de> 11 + 12 + allOf: 13 + - $ref: dai-common.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: adi,ssm2518 18 + 19 + reg: 20 + maxItems: 1 21 + description: | 22 + I2C address of the device. This will either be 0x34 (ADDR pin low) 23 + or 0x35 (ADDR pin high) 24 + 25 + gpios: 26 + maxItems: 1 27 + description: | 28 + GPIO connected to the nSD pin. If the property is not present 29 + it is assumed that the nSD pin is hardwired to always on. 30 + 31 + required: 32 + - compatible 33 + - reg 34 + 35 + unevaluatedProperties: false 36 + 37 + examples: 38 + - | 39 + i2c { 40 + #address-cells = <1>; 41 + #size-cells = <0>; 42 + codec@34 { 43 + compatible = "adi,ssm2518"; 44 + reg = <0x34>; 45 + gpios = <&gpio 5 0>; 46 + }; 47 + };
-20
Documentation/devicetree/bindings/sound/ssm2518.txt
··· 1 - SSM2518 audio amplifier 2 - 3 - This device supports I2C only. 4 - 5 - Required properties: 6 - - compatible : Must be "adi,ssm2518" 7 - - reg : the I2C address of the device. This will either be 0x34 (ADDR pin low) 8 - or 0x35 (ADDR pin high) 9 - 10 - Optional properties: 11 - - gpios : GPIO connected to the nSD pin. If the property is not present it is 12 - assumed that the nSD pin is hardwired to always on. 13 - 14 - Example: 15 - 16 - ssm2518: ssm2518@34 { 17 - compatible = "adi,ssm2518"; 18 - reg = <0x34>; 19 - gpios = <&gpio 5 0>; 20 - };