Commit 2e5a74c6 authored by Mark Brown's avatar Mark Brown

ASoC: add support for TAS5805M digital amplifier

Merge series from Daniel Beer <daniel.beer@igorinstitute.com>:

This pair of patches implements support for the TAS5805M class D audio
amplifier. This driver, and the example configuration in the device-tree
file, were originally based on a 4.19 series kernel and have been
modified slightly from the tested version.
parents 8f1a27bb b8aec7a4
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/tas5805m.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: TAS5805M audio amplifier
maintainers:
- Daniel Beer <daniel.beer@igorinstitute.com>
description: |
The TAS5805M is a class D audio amplifier with a built-in DSP.
properties:
compatible:
enum:
- ti,tas5805m
reg:
maxItems: 1
description: |
I2C address of the amplifier. See the datasheet for possible values.
pvdd-supply:
description: |
Regulator for audio power supply (PVDD in the datasheet).
pdn-gpios:
description: |
Power-down control GPIO (PDN pin in the datasheet).
ti,dsp-config-name:
description: |
The name of the DSP configuration that should be loaded for this
instance. Configuration blobs are sequences of register writes
generated from TI's PPC3 tool.
$ref: /schemas/types.yaml#/definitions/string
examples:
- |
i2c0 {
#address-cells = <1>;
#size-cells = <0>;
tas5805m: tas5805m@2c {
reg = <0x2c>;
compatible = "ti,tas5805m";
pvdd-supply = <&audiopwr>;
pdn-gpios = <&tlmm 160 0>;
ti,dsp-config-name = "mono_pbtl_48khz";
};
};
additionalProperties: true
......@@ -1485,6 +1485,15 @@ config SND_SOC_TAS5720
Enable support for Texas Instruments TAS5720L/M high-efficiency mono
Class-D audio power amplifiers.
config SND_SOC_TAS5805M
tristate "Texas Instruments TAS5805M speaker amplifier"
depends on I2C
help
Enable support for Texas Instruments TAS5805M Class-D
amplifiers. This is a speaker amplifier with an integrated
DSP. DSP configuration for each instance needs to be supplied
via a device-tree attribute.
config SND_SOC_TAS6424
tristate "Texas Instruments TAS6424 Quad-Channel Audio amplifier"
depends on I2C
......
......@@ -236,6 +236,7 @@ snd-soc-sti-sas-objs := sti-sas.o
snd-soc-tas5086-objs := tas5086.o
snd-soc-tas571x-objs := tas571x.o
snd-soc-tas5720-objs := tas5720.o
snd-soc-tas5805m-objs := tas5805m.o
snd-soc-tas6424-objs := tas6424.o
snd-soc-tda7419-objs := tda7419.o
snd-soc-tas2770-objs := tas2770.o
......@@ -574,6 +575,7 @@ obj-$(CONFIG_SND_SOC_TAS2764) += snd-soc-tas2764.o
obj-$(CONFIG_SND_SOC_TAS5086) += snd-soc-tas5086.o
obj-$(CONFIG_SND_SOC_TAS571X) += snd-soc-tas571x.o
obj-$(CONFIG_SND_SOC_TAS5720) += snd-soc-tas5720.o
obj-$(CONFIG_SND_SOC_TAS5805M) += snd-soc-tas5805m.o
obj-$(CONFIG_SND_SOC_TAS6424) += snd-soc-tas6424.o
obj-$(CONFIG_SND_SOC_TDA7419) += snd-soc-tda7419.o
obj-$(CONFIG_SND_SOC_TAS2770) += snd-soc-tas2770.o
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment