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

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: dt-bindings: adi,ssm2305: Convert to DT schema

Convert the SSM2305 speaker amplifier binding from text format to
DT schema to enable dtbs_check validation.

Signed-off-by: Piyush Patle <piyushpatle228@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260318130733.52477-1-piyushpatle228@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Piyush Patle and committed by
Mark Brown
a809ff64 6017671d

+46 -14
-14
Documentation/devicetree/bindings/sound/adi,ssm2305.txt
··· 1 - Analog Devices SSM2305 Speaker Amplifier 2 - ======================================== 3 - 4 - Required properties: 5 - - compatible : "adi,ssm2305" 6 - - shutdown-gpios : The gpio connected to the shutdown pin. 7 - The gpio signal is ACTIVE_LOW. 8 - 9 - Example: 10 - 11 - ssm2305: analog-amplifier { 12 - compatible = "adi,ssm2305"; 13 - shutdown-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>; 14 - };
+46
Documentation/devicetree/bindings/sound/adi,ssm2305.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,ssm2305.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Analog Devices SSM2305 Class-D Speaker Amplifier 8 + 9 + maintainers: 10 + - Lars-Peter Clausen <lars@metafoo.de> 11 + 12 + description: 13 + The SSM2305 is a filterless, high efficiency, mono 2.8 W Class-D 14 + audio amplifier with a micropower shutdown mode controlled via a 15 + dedicated active-low GPIO pin. 16 + 17 + allOf: 18 + - $ref: dai-common.yaml# 19 + 20 + properties: 21 + compatible: 22 + const: adi,ssm2305 23 + 24 + shutdown-gpios: 25 + maxItems: 1 26 + description: 27 + GPIO connected to the shutdown pin (SD) of the SSM2305. 28 + The pin is active-low; asserting it puts the device into 29 + micropower shutdown mode. 30 + 31 + required: 32 + - compatible 33 + - shutdown-gpios 34 + 35 + unevaluatedProperties: false 36 + 37 + examples: 38 + - | 39 + #include <dt-bindings/gpio/gpio.h> 40 + 41 + analog-amplifier { 42 + compatible = "adi,ssm2305"; 43 + shutdown-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>; 44 + }; 45 + 46 + ...