Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4D60C6FD1F for ; Sat, 11 Mar 2023 09:19:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230493AbjCKJTy (ORCPT ); Sat, 11 Mar 2023 04:19:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230336AbjCKJTU (ORCPT ); Sat, 11 Mar 2023 04:19:20 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D312C9ED8 for ; Sat, 11 Mar 2023 01:17:57 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id g10so1183250eda.1 for ; Sat, 11 Mar 2023 01:17:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678526276; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=uw4cAGGgibSwDMH3Jhp+ycifcaLWuwvJWXMBQMAHLL8=; b=trhFgxa+aEx+qPyUu7FYyfESTxWyGGfu90sK88I7vzxaZKRMa9XLXIXu+H+1AzHcun iWzPdA4fU12aKR/Au6Bnu/H7TZRRRKxJWF3yfnwxveVkcnWfwRNn80DU28TcAHFUTr1p b5ipcdneOD0rRZeDWz3fiqKuDCXF7Cl6ZU7G5woyrA+zT1h8mL4jC1GU0ITIiu+ijid8 B2t1ELVWTDGo3XWF6yJnY+bwlEW4J2pUh++D4HdxaPH9/BO0Df3lbbLKQCwsO1v6AMps 4M8QwzCCmzhxuiWtP/wf3o50o6AWIbqcQzpKQWBVb57EizFq3yNBuMwshazxkRfhsWyk hzUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678526276; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uw4cAGGgibSwDMH3Jhp+ycifcaLWuwvJWXMBQMAHLL8=; b=rJdOkK+3ThlXsqsRS98PVolQj8m/j7IyPrHc+5aLE6BT/GrZyVgmsG5GAKugBVocxG QITYJNtDoK2KhAtEr0OTM2nyQdkj2DTu2UvfDZOXRcqCAscrVu773/TwdU5uMT62hUr2 ZokNLSCu2yvxt6rZ0VSw8Mlvau0uFc48+7O+quJQm5NDLLs/9nphucc0vn46G4+zL3yr q3+DLF7tPOH9JNKiu1V1zesG1EKOp6mGlq0w9Que9aT9B/X1pFCbSniHPSgh91YjTDlD ykgwhNAQWYBj7rE8tPpLFcDoMajQu1w8pizGvmCXteh65so2NxGS6m0akWQ5XgrJlySc kMag== X-Gm-Message-State: AO0yUKUB+xW7yH1r+Zq8DmLiJR7i5Uh1gKeRn03uglkN9qQ8egfWIsIl a18zlChyNPPfs+u0kPF/SqESNJlZb0B1oq9E5lU= X-Google-Smtp-Source: AK7set8/V8muly8GrRqJlvD9mRt0320JEfLtLQwThdTKCMA0OrS8U3c/dwGkGS2n8AdHC2f24grKTw== X-Received: by 2002:a17:906:8a64:b0:8b1:bafe:6135 with SMTP id hy4-20020a1709068a6400b008b1bafe6135mr25360315ejc.60.1678525822075; Sat, 11 Mar 2023 01:10:22 -0800 (PST) Received: from ?IPV6:2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b? ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id ae12-20020a17090725cc00b00922547486f9sm200836ejc.146.2023.03.11.01.10.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Mar 2023 01:10:21 -0800 (PST) Message-ID: Date: Sat, 11 Mar 2023 10:10:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH V2 2/2] ASoC: dt-bindings: max98363: add soundwire amplifier Content-Language: en-US To: =?UTF-8?B?4oCcUnlhbg==?= , lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, 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 References: <20230311011409.210014-1-ryan.lee.analog@gmail.com> <20230311011409.210014-2-ryan.lee.analog@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20230311011409.210014-2-ryan.lee.analog@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/03/2023 02:14, “Ryan wrote: > 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 > > .../bindings/sound/adi,max98363.yaml | 42 +++++++++++++++++++ > 1 file changed, 42 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..0e71b6c84007 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/adi,max98363.yaml > @@ -0,0 +1,42 @@ > +# 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). > + > +properties: > + compatible: > + enum: > + - adi,max98363 Aren't soundwire devices supposed to use device ID as compatible? Missing blank line > + reg: > + maxItems: 1 > + description: Peripheral-device unique ID decoded from pin. > + It's not a DAI? > +required: > + - compatible > + - reg Missing blank line > +additionalProperties: false > + > +examples: > + - | > + soundwire { > + #address-cells = <1>; > + #size-cells = <0>; > + amplifier@3 { > + compatible = "adi,max98363"; > + reg = <0x3>; That looks a bit different than regular SoundWire bus. I would argue that it's not SoundWire at all... > + }; > + }; Best regards, Krzysztof