Skip to contentSkip to conversation

ASoC: dt-bindings: max98520: add initial bindings

PATCH Superseded George Song 1 participant 2 messages Oct 26, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v6 1/2 ASoC: dt-bindings: max98520: add initial bindings

add initial bindings for max98520 audio amplifier

---
 .../bindings/sound/maxim,max98520.yaml        | 36 +++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/maxim,max98520.yaml
Documentation/devicetree/bindings/sound/maxim,max98520.yaml new file +36 -0
new file mode 100644
index 000000000000..b6509cb2c8e0
@@ -0,0 +1,36 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/maxim,max98520.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Maxim Integrated MAX98520 Speaker Amplifier Driver
+
+maintainers:
+  - George Song <[email protected]>
+
+properties:
+  compatible:
+    const: maxim,max98520
+
+  reg:
+    maxItems: 1
+    description: I2C address of the device.
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    i2c {
+      #address-cells = <1>;
+      #size-cells = <0>;
+      max98520: amplifier@38 {
+        compatible = "maxim,max98520";
+        reg = <0x38>;
+      };
+    };
+
Signature · 1 line
2.25.1
#1 lore raw

PATCH v6 2/2 ASoC: max98520: add max98520 audio amplifier driver

add max98520 audio amplifier driver

---
 sound/soc/codecs/Kconfig         |  12 +
 sound/soc/codecs/Makefile        |   2 +
 sound/soc/codecs/max98520.c      | 769 +++++++++++++++++++++++++++++
 sound/soc/codecs/max98520.c.save | 816 +++++++++++++++++++++++++++++++
 sound/soc/codecs/max98520.h      | 159 ++++++
 5 files changed, 1758 insertions(+)
 create mode 100644 sound/soc/codecs/max98520.c
 create mode 100644 sound/soc/codecs/max98520.c.save
 create mode 100644 sound/soc/codecs/max98520.h
sound/soc/codecs/Kconfig +12 -0
index 82ee233a269d..7ad1e3850279 100644
@@ -115,6 +115,7 @@ config SND_SOC_ALL_CODECS
 	imply SND_SOC_MAX98357A
 	imply SND_SOC_MAX98371
 	imply SND_SOC_MAX98504
+	imply SND_SOC_MAX98520
 	imply SND_SOC_MAX9867
 	imply SND_SOC_MAX98925
 	imply SND_SOC_MAX98926
@@ -922,6 +923,17 @@ config SND_SOC_MAX98927
 	tristate "Maxim Integrated MAX98927 Speaker Amplifier"
 	depends on I2C
 
+config SND_SOC_MAX98520
+	tristate "Maxim Integrated MAX98520 Speaker Amplifier"
+	depends on I2C
+	help
+	  Enable support for Maxim Integrated MAX98520 audio
+	  amplifier, which implements a tripler charge pump
+	  based boost converter and supports sample rates of
+	  8KHz to 192KHz.
+
+	  To compile this driver as a module, choose M here.
+
 config SND_SOC_MAX98373
 	tristate
 
sound/soc/codecs/Makefile +2 -0
index 8dcea2c4604a..daf63e31fdd0 100644
@@ -123,6 +123,7 @@ snd-soc-max9867-objs := max9867.o
 snd-soc-max98925-objs := max98925.o
 snd-soc-max98926-objs := max98926.o
 snd-soc-max98927-objs := max98927.o
+snd-soc-max98520-objs := max98520.o
 snd-soc-max98373-objs := max98373.o
 snd-soc-max98373-i2c-objs := max98373-i2c.o
 snd-soc-max98373-sdw-objs := max98373-sdw.o
@@ -450,6 +451,7 @@ obj-$(CONFIG_SND_SOC_MAX9867)	+= snd-soc-max9867.o
 obj-$(CONFIG_SND_SOC_MAX98925)	+= snd-soc-max98925.o
 obj-$(CONFIG_SND_SOC_MAX98926)	+= snd-soc-max98926.o
 obj-$(CONFIG_SND_SOC_MAX98927)	+= snd-soc-max98927.o
+obj-$(CONFIG_SND_SOC_MAX98520)	+= snd-soc-max98520.o
 obj-$(CONFIG_SND_SOC_MAX98373)	+= snd-soc-max98373.o
 obj-$(CONFIG_SND_SOC_MAX98373_I2C)   += snd-soc-max98373-i2c.o
 obj-$(CONFIG_SND_SOC_MAX98373_SDW)   += snd-soc-max98373-sdw.o
sound/soc/codecs/max98520.c new file +769 -0

769 lines not on this page · raw message

sound/soc/codecs/max98520.c.save new file +816 -0

816 lines not on this page · raw message

sound/soc/codecs/max98520.h new file +159 -0

159 lines not on this page · raw message

Signature · 1 line
2.25.1