Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3089621rdb; Wed, 13 Sep 2023 01:22:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH5Q+snjn36QwwNAI1gGvfYu93pNHJlzcprjCqnGHL94/CkvU/3jAPjzk8S9anrPPLRq98/ X-Received: by 2002:aa7:88c8:0:b0:68f:cb69:8e4f with SMTP id k8-20020aa788c8000000b0068fcb698e4fmr2412751pff.1.1694593351044; Wed, 13 Sep 2023 01:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694593351; cv=none; d=google.com; s=arc-20160816; b=bLmpjytv4i60yMCsjTws45Ee1uHxQ5cjHPAyxJjDrsBIt87JPErbVgRMdD8kLX53XC 37kCiVbbbnMnrHdxWuxPoGLzDA0jBuhr2MMTR46Wr2jySdiirakFRB+VICPI4y5/grEV Czi/GM9+UMVOd0P1A36IfrKU6FGlqdobRBMRpsIW8ku03c/dxxZjj1jA19i3txYBscAa yFQnV3At3cHyEmfpNkGogxLhRxwiS4jLAh1YR7MSCDrBRrURvw2G5NYs63JF4n/kA4in ZdmIeibUMfor1TPrzjryTqrtqGvD9ls6HdBjEujub+mPLCKe73bt4TqKPemntRaSZS4m U4pw== 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:from; bh=Xtq98JgGHeolPyLMNbktPULCo3PwrgcJPgI4UIQoqmo=; fh=7VLxf4fNO1W7F0XgNWLpz3oEIKncO4w6HJ+yFwTgbOI=; b=n+qTCU+KZSZCFk90fXruNtlt+JeEO3hzVrN/3YVRYhCheiI1Oa59H7F42bfMSpxf7e YSVRczXd+VZTKSbtpXaFYXYw/O7TMDu+Mw6bJpAr+3IqvBQCNHy08sCg42crSP8NQfO7 ZQA/Iu7poBrxkAf75UpmXT4xPUPTXdtBQAg0+dLqmeoiZCCRpnge2HdQl1VDo6+xD4e2 17d2Q/tPIUDO2KOsF9vMzHxqorOy2XxRdIXq87tHBAI1PVOwMpkgZEA2gKuyflYhxqRH ezEq8KvY0zD7riTxIHJDNZBMxu28ikg9xhjzfUeHJ+J7PxAqTGY40sk1n1hJ8WKZ9yfN HSRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id u70-20020a638549000000b005774d2f4ab5si7015895pgd.807.2023.09.13.01.22.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 01:22:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0BF37816692B; Wed, 13 Sep 2023 01:08:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238797AbjIMIIF (ORCPT + 99 others); Wed, 13 Sep 2023 04:08:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232468AbjIMIHG (ORCPT ); Wed, 13 Sep 2023 04:07:06 -0400 Received: from out28-75.mail.aliyun.com (out28-75.mail.aliyun.com [115.124.28.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16AEF199F; Wed, 13 Sep 2023 01:07:01 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.09614743|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.110075-0.000808817-0.889117;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047212;MF=wangweidong.a@awinic.com;NM=1;PH=DS;RN=27;RT=27;SR=0;TI=SMTPD_---.Ue3VeMa_1694592409; Received: from ubuntu-VirtualBox..(mailfrom:wangweidong.a@awinic.com fp:SMTPD_---.Ue3VeMa_1694592409) by smtp.aliyun-inc.com; Wed, 13 Sep 2023 16:06:58 +0800 From: wangweidong.a@awinic.com To: robh@kernel.org Cc: 13916275206@139.com, alsa-devel@alsa-project.org, arnd@arndb.de, broonie@kernel.org, ckeepax@opensource.cirrus.com, colin.i.king@gmail.com, conor+dt@kernel.org, devicetree@vger.kernel.org, fido_max@inbox.ru, harshit.m.mogalapalli@oracle.com, herve.codina@bootlin.com, krzysztof.kozlowski+dt@linaro.org, lgirdwood@gmail.com, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, liweilei@awinic.com, perex@perex.cz, povik+lin@cutebit.org, rf@opensource.cirrus.com, ryans.lee@analog.com, sebastian.reichel@collabora.com, shumingf@realtek.com, tiwai@suse.com, trix@redhat.com, wangweidong.a@awinic.com, yijiangtao@awinic.com Subject: Re: [PATCH V2 1/5] ASoC: dt-bindings: Adds properties to "awinic,aw88395" Date: Wed, 13 Sep 2023 16:06:48 +0800 Message-ID: <20230913080648.364569-1-wangweidong.a@awinic.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230912162122.GA880119-robh@kernel.org> References: <20230912162122.GA880119-robh@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Sep 2023 01:08:13 -0700 (PDT) Thank you very much for your advice, and I will modify it in the next patch. On Tue, Sep 12, 2023 at 11:21:22PM -0500, robh@kernel.org wrote: > On Tue, Sep 12, 2023 at 02:58:48PM +0800, wangweidong.a@awinic.com wrote: >> From: Weidong Wang > The subject is still pretty generic. Ideally, we'd never have the same > subject twice. I'd do something like this: > ASoC: dt-bindings: awinic,aw88395: Add properties for multiple PA support Thank you very much. I will modify according to your suggestion in the next patch >> >> Adds properties to "awinic,aw88395" to make files more complete > Complete in what way? multiple PAs, right. It's not really clear > to me though how these properties enable support for multiple PAs. Thank you very much. I will change the following content in the next patch: Add two properties, the "awinic,audio-channel" property and the "awinic,sync-flag". The "awinic,audio-channel" is used to make different PA load different configurations, the "awinic,sync-flag" is used to synchronize the phases of multiple PA. These two properties will be read by the corresponding driver, so that the multi-PA to achieve better playback effect. >> >> Signed-off-by: Weidong Wang >> --- >> .../bindings/sound/awinic,aw88395.yaml | 19 +++++++++++++++++++ >> 1 file changed, 19 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/sound/awinic,aw88395.yaml b/Documentation/devicetree/bindings/sound/awinic,aw88395.yaml >> index 4051c2538caf..4965aa4a5370 100644 >> --- a/Documentation/devicetree/bindings/sound/awinic,aw88395.yaml >> +++ b/Documentation/devicetree/bindings/sound/awinic,aw88395.yaml >> @@ -32,11 +32,28 @@ properties: >> reset-gpios: >> maxItems: 1 >> >> + awinic,audio-channel: >> + description: >> + It is used to distinguish multiple PA devices, so that different >> + configurations can be loaded to different PA devices >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + minimum: 0 >> + maximum: 7 >> + >> + awinic,sync-flag: >> + description: >> + Flag bit used to keep the phase synchronized in the case of multiple PA >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + minimum: 0 >> + maximum: 1 >> + >> required: >> - compatible >> - reg >> - '#sound-dai-cells' >> - reset-gpios >> + - awinic,audio-channel >> + - awinic,sync-flag >> >> unevaluatedProperties: false >> >> @@ -51,5 +68,7 @@ examples: >> reg = <0x34>; >> #sound-dai-cells = <0>; >> reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>; >> + awinic,audio-channel = <0>; >> + awinic,sync-flag = <0>; >> }; >> }; >> -- >> 2.41.0 >>