1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/sound/maxim 4 $id: http://devicetree.org/schemas/sound/maxim,max9759.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Maxim MAX9759 Speaker Amplifier 7 title: Maxim MAX9759 Speaker Amplifier 8 8 9 maintainers: 9 maintainers: 10 - Otabek Nazrullaev <otabeknazrullaev1998@gma 10 - Otabek Nazrullaev <otabeknazrullaev1998@gmail.com> 11 11 12 properties: 12 properties: 13 compatible: 13 compatible: 14 const: maxim,max9759 14 const: maxim,max9759 15 15 16 shutdown-gpios: 16 shutdown-gpios: 17 maxItems: 1 17 maxItems: 1 18 description: the gpio connected to the shu 18 description: the gpio connected to the shutdown pin 19 19 20 mute-gpios: 20 mute-gpios: 21 maxItems: 1 21 maxItems: 1 22 description: the gpio connected to the mut 22 description: the gpio connected to the mute pin 23 23 24 gain-gpios: 24 gain-gpios: 25 maxItems: 2 25 maxItems: 2 26 description: the 2 gpios connected to the 26 description: the 2 gpios connected to the g1 and g2 pins 27 27 28 required: 28 required: 29 - compatible 29 - compatible 30 - shutdown-gpios 30 - shutdown-gpios 31 - mute-gpios 31 - mute-gpios 32 - gain-gpios 32 - gain-gpios 33 33 34 additionalProperties: false 34 additionalProperties: false 35 35 36 examples: 36 examples: 37 - | 37 - | 38 #include <dt-bindings/gpio/gpio.h> 38 #include <dt-bindings/gpio/gpio.h> 39 amplifier { 39 amplifier { 40 compatible = "maxim,max9759"; 40 compatible = "maxim,max9759"; 41 shutdown-gpios = <&gpio3 20 GPIO_ACTIVE_ 41 shutdown-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>; 42 mute-gpios = <&gpio3 19 GPIO_ACTIVE_LOW> 42 mute-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>; 43 gain-gpios = <&gpio3 23 GPIO_ACTIVE_LOW> 43 gain-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>, 44 <&gpio3 25 GPIO_ACTIVE_LOW>; 44 <&gpio3 25 GPIO_ACTIVE_LOW>; 45 }; 45 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.