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: maxim,max9759: Convert to DT schema.

Convert Maxim MAX9759 Speaker Amplifier bindings to DT schema.
Add missing gpio header file into examples section

Signed-off-by: Otabek Nazrullaev <otabeknazrullaev1998@gmail.com>
Cc: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230315173404.7215-1-otabeknazrullaev1998@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Otabek Nazrullaev and committed by
Mark Brown
1d8777d2 87771c94

+45 -18
-18
Documentation/devicetree/bindings/sound/maxim,max9759.txt
··· 1 - Maxim MAX9759 Speaker Amplifier 2 - =============================== 3 - 4 - Required properties: 5 - - compatible : "maxim,max9759" 6 - - shutdown-gpios : the gpio connected to the shutdown pin 7 - - mute-gpios : the gpio connected to the mute pin 8 - - gain-gpios : the 2 gpios connected to the g1 and g2 pins 9 - 10 - Example: 11 - 12 - max9759: analog-amplifier { 13 - compatible = "maxim,max9759"; 14 - shutdown-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>; 15 - mute-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>; 16 - gain-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>, 17 - <&gpio3 25 GPIO_ACTIVE_LOW>; 18 - };
+45
Documentation/devicetree/bindings/sound/maxim,max9759.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,max9759.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Maxim MAX9759 Speaker Amplifier 8 + 9 + maintainers: 10 + - Otabek Nazrullaev <otabeknazrullaev1998@gmail.com> 11 + 12 + properties: 13 + compatible: 14 + const: maxim,max9759 15 + 16 + shutdown-gpios: 17 + maxItems: 1 18 + description: the gpio connected to the shutdown pin 19 + 20 + mute-gpios: 21 + maxItems: 1 22 + description: the gpio connected to the mute pin 23 + 24 + gain-gpios: 25 + maxItems: 2 26 + description: the 2 gpios connected to the g1 and g2 pins 27 + 28 + required: 29 + - compatible 30 + - shutdown-gpios 31 + - mute-gpios 32 + - gain-gpios 33 + 34 + additionalProperties: false 35 + 36 + examples: 37 + - | 38 + #include <dt-bindings/gpio/gpio.h> 39 + amplifier { 40 + compatible = "maxim,max9759"; 41 + shutdown-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>; 42 + mute-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>; 43 + gain-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>, 44 + <&gpio3 25 GPIO_ACTIVE_LOW>; 45 + };