2023-05-11 15:25:08

by Martin Povišer

[permalink] [raw]
Subject: [PATCH v2 0/2] ASoC SSM3515 codec driver

Hi,

Analog Devices SSM3515 is a simple speaker amp that Apple is
using in their 2021 iMacs, possibly elsewhere. This is a v2
of an ASoC driver for those, to be used with upcoming ASoC
support (in upstream kernels anyway) of those platforms.

Martin

Changes since v1:
https://lore.kernel.org/asahi/[email protected]/T/#t
- drop 'adi,ana-gain' from the binding
- move device reset to bus probe
- fix schema copyright, other schema tweaks

Martin Povišer (2):
ASoC: dt-bindings: Add adi,ssm3515 amp schema
ASoC: ssm3515: Add new amp driver

.../bindings/sound/adi,ssm3515.yaml | 49 ++
MAINTAINERS | 2 +
sound/soc/codecs/Kconfig | 6 +
sound/soc/codecs/Makefile | 2 +
sound/soc/codecs/ssm3515.c | 448 ++++++++++++++++++
5 files changed, 507 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/adi,ssm3515.yaml
create mode 100644 sound/soc/codecs/ssm3515.c

--
2.38.3



2023-05-11 15:27:42

by Martin Povišer

[permalink] [raw]
Subject: [PATCH v2 1/2] ASoC: dt-bindings: Add adi,ssm3515 amp schema

Add a DT schema for the SSM3515 amp by Analog Devices. It's a simple
mono amplifier with digital input.

Signed-off-by: Martin Povišer <[email protected]>
---
.../bindings/sound/adi,ssm3515.yaml | 49 +++++++++++++++++++
1 file changed, 49 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/adi,ssm3515.yaml

diff --git a/Documentation/devicetree/bindings/sound/adi,ssm3515.yaml b/Documentation/devicetree/bindings/sound/adi,ssm3515.yaml
new file mode 100644
index 000000000000..144450df5869
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/adi,ssm3515.yaml
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/adi,ssm3515.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices SSM3515 Audio Amplifier
+
+maintainers:
+ - Martin Povišer <[email protected]>
+
+description: |
+ SSM3515 is a mono Class-D audio amplifier with digital input.
+
+ https://www.analog.com/media/en/technical-documentation/data-sheets/SSM3515.pdf
+
+allOf:
+ - $ref: dai-common.yaml#
+
+properties:
+ compatible:
+ enum:
+ - adi,ssm3515
+
+ reg:
+ maxItems: 1
+
+ '#sound-dai-cells':
+ const: 0
+
+required:
+ - compatible
+ - reg
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ codec@14 {
+ compatible = "adi,ssm3515";
+ reg = <0x14>;
+ #sound-dai-cells = <0>;
+ sound-name-prefix = "Left Tweeter";
+ };
+ };
--
2.38.3


2023-05-11 17:15:38

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v2 1/2] ASoC: dt-bindings: Add adi,ssm3515 amp schema

On 11/05/2023 17:05, Martin Povišer wrote:
> Add a DT schema for the SSM3515 amp by Analog Devices. It's a simple
> mono amplifier with digital input.
>
> Signed-off-by: Martin Povišer <[email protected]>
> ---

Reviewed-by: Krzysztof Kozlowski <[email protected]>

Best regards,
Krzysztof


2023-05-12 04:30:10

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH v2 0/2] ASoC SSM3515 codec driver

On Thu, 11 May 2023 17:05:44 +0200, Martin Povišer wrote:
> Analog Devices SSM3515 is a simple speaker amp that Apple is
> using in their 2021 iMacs, possibly elsewhere. This is a v2
> of an ASoC driver for those, to be used with upcoming ASoC
> support (in upstream kernels anyway) of those platforms.
>
> Martin
>
> [...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/2] ASoC: dt-bindings: Add adi,ssm3515 amp schema
commit: 51208a4d303b78642c5d5b35fb9ce963a84d21d0
[2/2] ASoC: ssm3515: Add new amp driver
commit: 4ac690bbae02e26e36e133becd86babb657126ef

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