Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6206235rwr; Tue, 9 May 2023 11:43:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5lGeovNe9WP8e9xFX6ajDmbyftTpmtMmtLiVU2QCWoxCr6fsqX+HYhpbS+/qDDcuW2bAdV X-Received: by 2002:a17:902:cec2:b0:1a8:1f41:59ba with SMTP id d2-20020a170902cec200b001a81f4159bamr17943185plg.38.1683657809739; Tue, 09 May 2023 11:43:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683657809; cv=none; d=google.com; s=arc-20160816; b=TPIekEwvv4ZC52UYApiagdYhZr+JqIJyStQZ/ilXYzbdqwAo4AC+c09UUmuiUDebMo QiJMTDjnwIoly+9Ifd8aIE7fJe2Ldxf4R+81F0JP2XqLuegrGHSDEkCXnMizqxz0JAwc 3Uxsj9Inmi5yx3g7l9mmFdrlOxKFo2Mk81seX0RMSzitkfzY1FnisHazwvJd81mKPUQ8 1oxV4jEhqSHoDAlvtQnwKvCVumKfz40ZWYGkbhYpjSe6T2PQ/ofNhmV+pkJM9qcHQbcu wwwDDnT9j1vQgyUkeS/ze+fd8mI/rJ89Z4neegIhV0fNZ/qc6GIWH2ETzr2aGZuKnfKO Dcxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ox+HikbDMSlVQvkib95Sdsd+OKRXaErXhP0bFI67vAo=; b=ThRJ+VI/rOM9sj7ypVJqcjQBly+u+6K0tHLHKVzu5TXwKrPQZz5Y6sTXlX8SoXIx5w e2FfhV+IxvBYFtzV8FYlbRN2vWJPQ5FjY6ZDvJwHWYgBbUpqP8QM1j9Trh3kT8xqjfQx BOWEDZ1WaufRYdlotUz4/WuCeGxQ7ersioOGXQB9GrOyO7T3VZQ2WQVk5+E8itiZqB37 Ms/HK1uYfNp9f0uRXmxPx+NTr5jws5jhCp5N3V+/5sk5YZItLivD55q2QqY4BzG5PU+Y g9fXfH7njT+3yIpiG8NgKlIdtcoXyV9mQiS5fB/gDG6m3vhfkuX3kveWKBnBtOOn7dK3 nPaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SFaU8+6j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a170902a9c900b001ab1ba2572csi1881437plr.240.2023.05.09.11.43.16; Tue, 09 May 2023 11:43:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SFaU8+6j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234929AbjEISZZ (ORCPT + 99 others); Tue, 9 May 2023 14:25:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234772AbjEISZT (ORCPT ); Tue, 9 May 2023 14:25:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62FF255B9; Tue, 9 May 2023 11:25:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F0A8663085; Tue, 9 May 2023 18:25:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CDF4C433D2; Tue, 9 May 2023 18:25:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683656717; bh=0P/k6mebKZTKYnXCl/aQwO2Tc3wNx/KJH2Q7j52kkjA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SFaU8+6jHTK+YTVoiam0qnoU0UqChEOTWM6zhet5hN42+pyCNQXmBwHxBAVW/oVsx mVkgpqL//w9LIIOsQmE9+r5V+BRGPGeqFq3tzi0BC634vU3hFiYF+U+Uui7kTZbkDx SKOsv9HIvDBtvjF+CG31kXP5I0V1RnWWPvYV1cUR+adIu8dfZPt/pA/yCmd+xL0uXj mkH3n/nPdchaFgEYGDy2mPYeKQKJRnqDrbxhTxpjYi2JMbf65gk6HeX3sB9qi2Egla rm38Q8srjrejq/MPnD+J1ksGovBPH8o+8P+SHY4ZaTiFS11v3+ykqp73Uh71I2gwpA 0LdA7mBfcnh4g== Date: Tue, 9 May 2023 19:25:12 +0100 From: Conor Dooley To: Martin =?utf-8?Q?Povi=C5=A1er?= Cc: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Lars-Peter Clausen , Nuno =?iso-8859-1?Q?S=E1?= , asahi@lists.linux.dev, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] ASoC: dt-bindings: Add adi,ssm3515 amp schema Message-ID: <20230509-marxism-plug-759c99ac601c@spud> References: <20230509163828.86003-1-povik+lin@cutebit.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tXg5GVPl27ExK2ga" Content-Disposition: inline In-Reply-To: <20230509163828.86003-1-povik+lin@cutebit.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --tXg5GVPl27ExK2ga Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Martin, On Tue, May 09, 2023 at 06:38:27PM +0200, Martin Povi=C5=A1er wrote: > Add a DT schema for the SSM3515 amp by Analog Devices. It's a simple > mono amplifier with digital input. >=20 > Signed-off-by: Martin Povi=C5=A1er > --- > .../bindings/sound/adi,ssm3515.yaml | 66 +++++++++++++++++++ > 1 file changed, 66 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/adi,ssm3515.y= aml >=20 > diff --git a/Documentation/devicetree/bindings/sound/adi,ssm3515.yaml b/D= ocumentation/devicetree/bindings/sound/adi,ssm3515.yaml > new file mode 100644 > index 000000000000..19b7185ae8e2 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/adi,ssm3515.yaml > @@ -0,0 +1,66 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +# Copyright (C) 2019-20 Texas Instruments Incorporated Copyright here looks a little odd, copy & paste from the TI bindings you send patches for earlier, or intended? > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/sound/adi,ssm3515.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" Drop the quotes on these please. > + > +title: Analog Devices SSM3515 Audio Amplifier > + > +maintainers: > + - Martin Povi=C5=A1er > + > +description: | > + SSM3515 is a mono Class-D audio amplifier with digital input. > + > + https://www.analog.com/media/en/technical-documentation/data-sheets/SS= M3515.pdf > + > +allOf: > + - $ref: dai-common.yaml# > + > +properties: > + compatible: > + enum: > + - adi,ssm3515 > + > + reg: > + maxItems: 1 > + > + adi,ana-gain: > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [0, 1, 2, 3] > + description: | > + The value to be set in the ANA_GAIN register field on the codec. T= his determines > + the full voltage span of the codec's analog output. > + > + To quote the datasheet on the available options: > + > + 00: 8.4 V Full-Scale Gain Mapping > + 01: 12.6 V Full-Scale Gain Mapping > + 10: 14 V Full-Scale Gain Mapping > + 11: 15 V Full-Scale Gain Mapping Putting register values into the DT does not seem correct, although I know nothing about sound and will have to defer to Krzysztof & Co. on that front. Cheers, Conor. > + > + '#sound-dai-cells': > + const: 0 > + > +required: > + - compatible > + - reg > + - adi,ana-gain > + > +additionalProperties: true > + > +examples: > + - | > + i2c { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + codec@14 { > + compatible =3D "adi,ssm3515"; > + reg =3D <0x14>; > + #sound-dai-cells =3D <0>; > + adi,ana-gain =3D <0>; > + sound-name-prefix =3D "Left Tweeter"; > + }; > + }; > --=20 > 2.38.3 >=20 --tXg5GVPl27ExK2ga Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZFqQBwAKCRB4tDGHoIJi 0pp5AQCfS8Mv3YefCZm1yQhkJ7tPH2BC/U/0KKONa1u5T0DbyQD+MTbNkTLycV/c kTuzd+ntH5LiR3vjV1rILXA9XLIoEA4= =ycLO -----END PGP SIGNATURE----- --tXg5GVPl27ExK2ga--