1c9ccf3a3SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c9ccf3a3SEmmanuel Vadot%YAML 1.2 3c9ccf3a3SEmmanuel Vadot--- 4c9ccf3a3SEmmanuel Vadot$id: http://devicetree.org/schemas/sound/awinic,aw8738.yaml# 5c9ccf3a3SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c9ccf3a3SEmmanuel Vadot 7c9ccf3a3SEmmanuel Vadottitle: Awinic AW8738 Audio Amplifier 8c9ccf3a3SEmmanuel Vadot 9c9ccf3a3SEmmanuel Vadotmaintainers: 10c9ccf3a3SEmmanuel Vadot - Stephan Gerhold <stephan@gerhold.net> 11c9ccf3a3SEmmanuel Vadot 12c9ccf3a3SEmmanuel Vadotdescription: 13c9ccf3a3SEmmanuel Vadot The Awinic AW8738 is a simple audio amplifier with different operation modes 14c9ccf3a3SEmmanuel Vadot (set using one-wire pulse control). The mode configures the speaker-guard 15c9ccf3a3SEmmanuel Vadot function (primarily the power limit for the amplifier). 16c9ccf3a3SEmmanuel Vadot 17c9ccf3a3SEmmanuel VadotallOf: 18*8bab661aSEmmanuel Vadot - $ref: dai-common.yaml# 19c9ccf3a3SEmmanuel Vadot 20c9ccf3a3SEmmanuel Vadotproperties: 21c9ccf3a3SEmmanuel Vadot compatible: 22c9ccf3a3SEmmanuel Vadot const: awinic,aw8738 23c9ccf3a3SEmmanuel Vadot 24c9ccf3a3SEmmanuel Vadot mode-gpios: 25c9ccf3a3SEmmanuel Vadot description: 26c9ccf3a3SEmmanuel Vadot GPIO used for one-wire pulse control. The pin is typically called SHDN 27c9ccf3a3SEmmanuel Vadot (active-low), but this is misleading since it is actually more than 28c9ccf3a3SEmmanuel Vadot just a simple shutdown/enable control. 29c9ccf3a3SEmmanuel Vadot maxItems: 1 30c9ccf3a3SEmmanuel Vadot 31c9ccf3a3SEmmanuel Vadot awinic,mode: 32c9ccf3a3SEmmanuel Vadot description: Operation mode (number of pulses for one-wire pulse control) 33c9ccf3a3SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 34c9ccf3a3SEmmanuel Vadot minimum: 1 35c9ccf3a3SEmmanuel Vadot maximum: 7 36c9ccf3a3SEmmanuel Vadot 37c9ccf3a3SEmmanuel Vadot sound-name-prefix: true 38c9ccf3a3SEmmanuel Vadot 39c9ccf3a3SEmmanuel Vadotrequired: 40c9ccf3a3SEmmanuel Vadot - compatible 41c9ccf3a3SEmmanuel Vadot - mode-gpios 42c9ccf3a3SEmmanuel Vadot - awinic,mode 43c9ccf3a3SEmmanuel Vadot 44c9ccf3a3SEmmanuel VadotadditionalProperties: false 45c9ccf3a3SEmmanuel Vadot 46c9ccf3a3SEmmanuel Vadotexamples: 47c9ccf3a3SEmmanuel Vadot - | 48c9ccf3a3SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 49c9ccf3a3SEmmanuel Vadot audio-amplifier { 50c9ccf3a3SEmmanuel Vadot compatible = "awinic,aw8738"; 51c9ccf3a3SEmmanuel Vadot mode-gpios = <&msmgpio 114 GPIO_ACTIVE_HIGH>; 52c9ccf3a3SEmmanuel Vadot awinic,mode = <5>; 53c9ccf3a3SEmmanuel Vadot sound-name-prefix = "Speaker Amp"; 54c9ccf3a3SEmmanuel Vadot }; 55