All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: dt-bindings: max98396: add amplifier driver
@ 2022-04-16  0:40 Ryan Lee
  2022-04-16  0:40 ` [PATCH 2/2] ASoC: " Ryan Lee
  2022-04-16 22:17   ` Rob Herring
  0 siblings, 2 replies; 10+ messages in thread
From: Ryan Lee @ 2022-04-16  0:40 UTC (permalink / raw)
  To: lgirdwood, broonie, robh+dt, krzk+dt, perex, tiwai,
	srinivas.kandagatla, ckeepax, tanureal, cy_huang,
	pierre-louis.bossart, drhodes, pbrobinson, hdegoede,
	lukas.bulwahn, stephan, arnd, ryan.lee.analog, alsa-devel,
	devicetree, linux-kernel, ryans.lee

From: Ryan Lee <ryans.lee@analog.com>

This patch adds dt-bindings information for Analog Devices MAX98396
and MAX98397 Smart Amplifier.

Signed-off-by: Ryan Lee <ryans.lee@analog.com>
---
 .../bindings/sound/adi,max98396.yaml          | 84 +++++++++++++++++++
 1 file changed, 84 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/adi,max98396.yaml

diff --git a/Documentation/devicetree/bindings/sound/adi,max98396.yaml b/Documentation/devicetree/bindings/sound/adi,max98396.yaml
new file mode 100644
index 000000000000..4aee32f43ad1
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/adi,max98396.yaml
@@ -0,0 +1,84 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/adi,max98396.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices MAX98396 Speaker Amplifier Device Tree Bindings
+
+maintainers:
+  - Ryan Lee <ryans.lee@analog.com>
+
+description:
+  The MAX98396 is a mono Class-DG speaker amplifier with I/V sense.
+  The device provides a PCM interface for audio data and a standard
+  I2C interface for control data communication.
+  The MAX98397 is a variant of MAX98396 with wide input supply range.
+
+properties:
+  compatible:
+    enum:
+      - adi,max98396
+      - adi,max98397
+  reg:
+    maxItems: 1
+    description: I2C address of the device.
+
+  adi,vmon-slot-no:
+    description: slot number of the voltage sense monitor
+    minimum: 0
+    maximum: 15
+    default: 0
+
+  adi,imon-slot-no:
+    description: slot number of the current sense monitor
+    minimum: 0
+    maximum: 15
+    default: 0
+
+  adi,spkfb-slot-no:
+    description: slot number of speaker DSP monitor
+    minimum: 0
+    maximum: 15
+    default: 0
+
+  adi,interleave-mode:
+    type: boolean
+    description: For cases where a single combined channel for the I/V sense data is not sufficient,
+                the device can also be configured to share a single data output channel on alternating frames.
+                In this configuration, the current and voltage data will be frame interleaved on a single output channel.
+    default: false
+
+  reset-gpios:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        max98396: amplifier@39 {
+            compatible = "adi,max98396";
+            reg = <0x39>;
+            adi,vmon-slot-no = <0>;
+            adi,imon-slot-no = <1>;
+            adi,interleave-mode = <0>;
+            reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
+        };
+        max98397: amplifier@3c {
+            compatible = "adi,max98397";
+            reg = <0x3c>;
+            adi,vmon-slot-no = <0>;
+            adi,imon-slot-no = <1>;
+            adi,interleave-mode = <0>;
+            reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
+        };
+    };
+
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-04-21 22:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-16  0:40 [PATCH 1/2] ASoC: dt-bindings: max98396: add amplifier driver Ryan Lee
2022-04-16  0:40 ` [PATCH 2/2] ASoC: " Ryan Lee
2022-04-20 16:17   ` Mark Brown
2022-04-20 16:17     ` Mark Brown
2022-04-21 22:38     ` Lee, RyanS
2022-04-21 22:38       ` Lee, RyanS
2022-04-16 22:17 ` [PATCH 1/2] ASoC: dt-bindings: " Rob Herring
2022-04-16 22:17   ` Rob Herring
2022-04-18 22:32   ` Lee, RyanS
2022-04-18 22:32     ` Lee, RyanS

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.