* [PATCH V3 1/2] ASoC: dt-bindings: max98396: add amplifier driver
@ 2022-04-25 17:37 Ryan Lee
2022-04-26 0:55 ` Rob Herring
2022-04-26 17:07 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Ryan Lee @ 2022-04-25 17:37 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>
---
Changes from v1:
Fixed yamllint/dtschema/dtc warnings and errors
Changes from v2:
No change
.../bindings/sound/adi,max98396.yaml | 79 +++++++++++++++++++
1 file changed, 79 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..ec4c10c2598a
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/adi,max98396.yaml
@@ -0,0 +1,79 @@
+# 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
+ $ref: "/schemas/types.yaml#/definitions/uint32"
+ minimum: 0
+ maximum: 15
+ default: 0
+
+ adi,imon-slot-no:
+ description: slot number of the current sense monitor
+ $ref: "/schemas/types.yaml#/definitions/uint32"
+ minimum: 0
+ maximum: 15
+ default: 0
+
+ adi,spkfb-slot-no:
+ description: slot number of speaker DSP monitor
+ $ref: "/schemas/types.yaml#/definitions/uint32"
+ minimum: 0
+ maximum: 15
+ default: 0
+
+ adi,interleave-mode:
+ 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.
+ type: boolean
+
+ 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>;
+ reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
+ };
+ };
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH V3 1/2] ASoC: dt-bindings: max98396: add amplifier driver
2022-04-25 17:37 [PATCH V3 1/2] ASoC: dt-bindings: max98396: add amplifier driver Ryan Lee
@ 2022-04-26 0:55 ` Rob Herring
2022-04-26 17:07 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2022-04-26 0:55 UTC (permalink / raw)
To: Ryan Lee
Cc: perex, arnd, drhodes, cy_huang, alsa-devel, krzk+dt, lgirdwood,
srinivas.kandagatla, lukas.bulwahn, robh+dt, linux-kernel,
ryans.lee, devicetree, ckeepax, hdegoede, tiwai,
pierre-louis.bossart, stephan, pbrobinson, tanureal, broonie
On Mon, 25 Apr 2022 10:37:15 -0700, Ryan Lee wrote:
> 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>
> ---
> Changes from v1:
> Fixed yamllint/dtschema/dtc warnings and errors
> Changes from v2:
> No change
>
> .../bindings/sound/adi,max98396.yaml | 79 +++++++++++++++++++
> 1 file changed, 79 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/sound/adi,max98396.yaml
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH V3 1/2] ASoC: dt-bindings: max98396: add amplifier driver
2022-04-25 17:37 [PATCH V3 1/2] ASoC: dt-bindings: max98396: add amplifier driver Ryan Lee
2022-04-26 0:55 ` Rob Herring
@ 2022-04-26 17:07 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2022-04-26 17:07 UTC (permalink / raw)
To: stephan, devicetree, perex, tiwai, lgirdwood, ckeepax, pbrobinson,
lukas.bulwahn, krzk+dt, cy_huang, ryan.lee.analog,
pierre-louis.bossart, srinivas.kandagatla, hdegoede, drhodes,
tanureal, linux-kernel, ryans.lee, Arnd Bergmann, robh+dt,
alsa-devel
On Mon, 25 Apr 2022 10:37:15 -0700, Ryan Lee wrote:
> From: Ryan Lee <ryans.lee@analog.com>
>
> This patch adds dt-bindings information for Analog Devices MAX98396
> and MAX98397 Smart Amplifier.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/2] ASoC: dt-bindings: max98396: add amplifier driver
commit: 3a2c9a553f4785555408b32d59ebfe125d8b9f09
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-26 17:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-25 17:37 [PATCH V3 1/2] ASoC: dt-bindings: max98396: add amplifier driver Ryan Lee
2022-04-26 0:55 ` Rob Herring
2022-04-26 17:07 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).