From patchwork Thu May 11 15:05:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Martin_Povi=C5=A1er?= X-Patchwork-Id: 92699 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp4462247vqo; Thu, 11 May 2023 08:25:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5miyUvyrRsipM9yUN5SwhCWwcznQSDc+2/IyP3VwCB3OSbVSSo04tlIWC73ampiEsZM5NP X-Received: by 2002:a17:902:f683:b0:1ac:8148:8c40 with SMTP id l3-20020a170902f68300b001ac81488c40mr17924127plg.53.1683818737143; Thu, 11 May 2023 08:25:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683818737; cv=none; d=google.com; s=arc-20160816; b=Otk+LycBEQvXsaL1u/cl80jukw/aEZ5dgwW/LO1c72ii5ltPUf7m76a4XjO74i96K6 jX7KCbRI7HFr4BGqbh+sfbdoAkcBrJLD4T+Dwhv6siy0TRO3HxfjbP1d5Nfcs7nk8ryt TLT7qKMuP7R/sbSwvv83EP5P9UZQ0ZxrfN3tnCoGPMm42gEyqicdQ2i+kqTU0pBtNb7T ETSx3cGQdQgGhuyR2RxyDMhrWT/rNnosCujKZf950+D0Qc6jW/WmkYvxVyxo8F1B5uDS DGWhLKH3/Cj721u2Th0PcLTdEkH95T6/XnXHcR6yN/ZdT0JMM8x0WL92D7R5uuW7qtR7 ebXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :from; bh=LUXpft4LGfCn5GgpYQv6QU3QQmD6+DR/XZsk9hOWCGg=; b=l15YoM7zsrqD8UlIJU2Y5Jdu60Uot8xRlGaeisYBH/I65UDRzlOi1nju1nDLr3njNF GwnGSv37bJGSO6IbE/Mpx+DUEUpXy4Sm4dQ6idp2OSnJwpqPDA8oQPWR4Vi+SdT5hVCv oxKUCwanoMknzoRfhgRBKeJyENRwHnX0LoXBG31KbcwXc9RcByJRtscoUeJXW4JiBTI9 11m0sH3c5hT4I41vRYNpdlpH+mF4ShnnNRLoZFB6EfbSQqem1tMcyVujaBgiPyinQVqB A0RHT3RMLEXGfczrRRDz+C69ZpaU04XH5cSIif8jzSZIOzS4AYacLsHQvugMeuPiM3NW 4tow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=m+c9kFV4; 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=cutebit.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iz11-20020a170902ef8b00b001aadb0b0359si6713065plb.290.2023.05.11.08.25.24; Thu, 11 May 2023 08:25:37 -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=@cutebit.org header.s=mail header.b=m+c9kFV4; 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=cutebit.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238519AbjEKPG0 (ORCPT + 99 others); Thu, 11 May 2023 11:06:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238474AbjEKPGY (ORCPT ); Thu, 11 May 2023 11:06:24 -0400 Received: from hutie.ust.cz (hutie.ust.cz [185.8.165.127]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C44A810D; Thu, 11 May 2023 08:06:21 -0700 (PDT) From: =?utf-8?q?Martin_Povi=C5=A1er?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cutebit.org; s=mail; t=1683817579; bh=LUXpft4LGfCn5GgpYQv6QU3QQmD6+DR/XZsk9hOWCGg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=m+c9kFV4LIiEFh1DscaoTKxX7uZPMsuDU5gVOGJJkRH7CCfqbWyeM/CT3vaMw61Lj p7bi+S31cUb8snlx/h8qv3YFs5nJD3QoC71AnBotJgty5sj5isC85I2fu2UnYCP+Gt S09R9hS8PvRFyOJznORnq3ePMbvW2wZWuwu1AUxY= To: =?utf-8?q?Martin_Povi=C5=A1er?= , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Lars-Peter Clausen , =?utf-8?q?Nuno_S=C3=A1?= Cc: asahi@lists.linux.dev, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] ASoC: dt-bindings: Add adi,ssm3515 amp schema Date: Thu, 11 May 2023 17:05:45 +0200 Message-Id: <20230511150546.8499-2-povik+lin@cutebit.org> In-Reply-To: <20230511150546.8499-1-povik+lin@cutebit.org> References: <20230511150546.8499-1-povik+lin@cutebit.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765611915693523583?= X-GMAIL-MSGID: =?utf-8?q?1765611915693523583?= 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 Reviewed-by: Krzysztof Kozlowski --- .../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 + +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"; + }; + };