Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7977467rwl; Thu, 23 Mar 2023 10:59:03 -0700 (PDT) X-Google-Smtp-Source: AK7set9sH3+Ock+AaE58DYIRPbOFGcctmW2G9olhkNjbMNDcu62bHKyahKyciK8NzmtXWH69qerW X-Received: by 2002:a17:906:79c7:b0:931:54:f24d with SMTP id m7-20020a17090679c700b009310054f24dmr6217351ejo.22.1679594343379; Thu, 23 Mar 2023 10:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679594343; cv=none; d=google.com; s=arc-20160816; b=Zpy3mLXNOvOL7RMTX/ZxEU0u/JEHNgjbvYCzshV/pdDOHEEjmko5IPwiiZp6EOkrct blWUKQUNeulntu5azjHRMwP4i+CPLoOoG3BREyn9ZVnfsOVA82q9Aa8j9Rnijmh7Y3uk zxN4LOKsgHcyMEgdSrRcClcoLyNYhBg8gB6+s8IztML6NAMJ0pjRGx8iART9g87HiBa5 q/2RM0wepg6Cc+GhArXBL1rH7FahufnKGBLwf+DIGtrB6a79kYODIRsQxngzlnrr1WpR xAa/kUp05EyFaYae5iXijc58RCoxvkzIhkB4tSDcwGCrlKK2FNxkfcRMcab6FyIUFmj/ nKRA== 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:to:from :dkim-signature; bh=UNlU/dImMAR9PDxxI0s95TJ5dyS1Y5Lepeba170fA/o=; b=ZWmPzgKEFewOy4QreP6afwNdiHU1twkh0U8bMTwajgN6pQAfLLwc+27Q6+JUncO2pP 5zh2wnBvmL8awqJEx7U46olvHf5mENJmQsN0fQ+XFBTfVFSI2cNIx0QAySL/IJdEz9kn JRO+iTCKUvrcjvi+dV82LudP4Yl4SzgUE17QhOsGhHrLzhKDGtoRASIGTqDPCtJfVSCT j+EvAauGPHUD8230VRygLhNg2wAzH9ngBkxJcBZ3jJbjJIocV7Ba7CjVFhAw9w07O+cf TDqpTHrRGyJJeSK8V6krhzJx7Df3ZY1ch5zwe9iVIFST7Xwm+H0X9u3WtbksW1mKq5ff iOGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=L+NEcWGj; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q23-20020aa7d457000000b004acd080ecc5si18860171edr.98.2023.03.23.10.58.38; Thu, 23 Mar 2023 10:59:03 -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=@gmail.com header.s=20210112 header.b=L+NEcWGj; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229948AbjCWRxH (ORCPT + 99 others); Thu, 23 Mar 2023 13:53:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbjCWRxE (ORCPT ); Thu, 23 Mar 2023 13:53:04 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B2F31993; Thu, 23 Mar 2023 10:53:04 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id c4so13796946pfl.0; Thu, 23 Mar 2023 10:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679593983; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=UNlU/dImMAR9PDxxI0s95TJ5dyS1Y5Lepeba170fA/o=; b=L+NEcWGjZ/go6ert+EXlAxDJQnO06RSthhAMwsWd7rmvImymaL+4KN8NFxdrw8GLob HHE9dKnnd8BKaQ0JZaAVkh7U0vAyOT9U0x8S0MSShwIbt6PJOimRhT2Dj98tbIOECiGl 5ZHFJJGF63W4PAzFhHvPr0e5soCYrCdWi6fx0GUuGvoe9zYMbRycvd+tk/NBnBPWPCh6 F7+zi3O5+ooxvsNQsXKlVI0Jm1w56HdPpk6qy6OdpLWEbdoeaphDQLSBK/dslMNSpmBe +db93Fi9h7bq5eBCpiD3ngTAwAOkkh/KEb0R6TtJM+yrdMcwN2GlHv0ufT8vuDnDeXDU pXwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679593983; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UNlU/dImMAR9PDxxI0s95TJ5dyS1Y5Lepeba170fA/o=; b=D3VYDTev6EQL6uCz72QpBa9YNfLKqfjNcf+zo6VVgqGqsetJawlje4DJe5QBmu96iJ CGewOhhJrpy4crsc30co7RyTiWplIXhGcGbbAMZzISKYlAKnufUw8SFkxCGp4/zZrOch qUk5RuIw20dPZWfAcqkD+8qA6Z39owF6P/akMtjWpOwfckg47sz6QRpvDJaP1JUZzk2w v84LWe6Oys1ZOjkquzspJTP63LiYxIdtX1nbCqhEfEUKkoiilD3Bqh6T/infHuVwOSFh iDROMWgvusVpKKcNj1B1h77WY/Sa3HY/N662Qe5Yo25OPDzavXJCwyoXr/X9NedGORVE chPQ== X-Gm-Message-State: AO0yUKXM041giEHIVXFiq9H7VBKzkZFwzPbtCR9M3OrHBslupLkusIFu UwHKIGJ60ClE5mQzBNmn/OI= X-Received: by 2002:aa7:9e04:0:b0:625:500c:35bd with SMTP id y4-20020aa79e04000000b00625500c35bdmr6854610pfq.6.1679593983704; Thu, 23 Mar 2023 10:53:03 -0700 (PDT) Received: from ryan-ThinkPad-T470.. (c-24-6-63-212.hsd1.ca.comcast.net. [24.6.63.212]) by smtp.gmail.com with ESMTPSA id k17-20020a63d111000000b004fbb4a55b64sm11761040pgg.86.2023.03.23.10.53.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 10:53:03 -0700 (PDT) From: =?UTF-8?q?=E2=80=9CRyan?= To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, krzysztof.kozlowski@linaro.org, rf@opensource.cirrus.com, ckeepax@opensource.cirrus.com, pierre-louis.bossart@linux.intel.com, herve.codina@bootlin.com, wangweidong.a@awinic.com, james.schulman@cirrus.com, ajye_huang@compal.corp-partner.google.com, shumingf@realtek.com, povik+lin@cutebit.org, flatmax@flatmax.com, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org, devicetree@vger.kernel.org, ryans.lee@analog.com Subject: [PATCH V3 2/2] ASoC: dt-bindings: max98363: add soundwire amplifier Date: Thu, 23 Mar 2023 10:52:56 -0700 Message-Id: <20230323175256.2606939-2-ryan.lee.analog@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230323175256.2606939-1-ryan.lee.analog@gmail.com> References: <20230323175256.2606939-1-ryan.lee.analog@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 From: Ryan Lee This patch adds dt-bindings information for Analog Devices MAX98363 SoundWire Amplifier. Signed-off-by: Ryan Lee --- Changes from v1: Fixed a syntax error for the 'dt_binding_check' build. Removed unnecessary properties. Added description about SoundWire device ID of MAX98363 Changes from v2: Removed the legacy from i2c/i2s driver and added SoundWire device ID info. Added missing information about DAI. .../bindings/sound/adi,max98363.yaml | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/adi,max98363.yaml diff --git a/Documentation/devicetree/bindings/sound/adi,max98363.yaml b/Documentation/devicetree/bindings/sound/adi,max98363.yaml new file mode 100644 index 000000000000..92352a23e1cb --- /dev/null +++ b/Documentation/devicetree/bindings/sound/adi,max98363.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/adi,max98363.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices MAX98363 SoundWire Amplifier + +maintainers: + - Ryan Lee + +description: + The MAX98363 is a SoundWire input Class D mono amplifier that + supports MIPI SoundWire v1.2-compatible digital interface for + audio and control data. + SoundWire peripheral device ID of MAX98363 is 0x3X019F836300 + where X is the peripheral device unique ID decoded from pin. + It supports up to 10 peripheral devices(0x0 to 0x9). + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: sdw3019F836300 + + reg: + maxItems: 1 + + '#sound-dai-cells': + const: 0 + + sound-name-prefix: true + +required: + - compatible + - reg + - "#sound-dai-cells" + +additionalProperties: false + +examples: + - | + soundwire-controller@3250000 { + #address-cells = <2>; + #size-cells = <0>; + reg = <0x3250000 0x2000>; + + speaker@0,0 { + compatible = "sdw3019F836300"; + reg = <0 0>; + #sound-dai-cells = <0>; + sound-name-prefix = "Speaker Left"; + }; + + speaker@0,1 { + compatible = "sdw3019F836300"; + reg = <0 1>; + #sound-dai-cells = <0>; + sound-name-prefix = "Speaker Right"; + }; + }; -- 2.34.1