Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3140425rdh; Thu, 28 Sep 2023 04:04:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEK7Lkj3jVGIANsXbLvl3zfnCSqQlqzAVPvCWzBfGakOgzovbaHXuynGKApHYiHyWfr+a6/ X-Received: by 2002:a92:c26c:0:b0:34b:aef9:60d4 with SMTP id h12-20020a92c26c000000b0034baef960d4mr847982ild.27.1695899096587; Thu, 28 Sep 2023 04:04:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695899096; cv=none; d=google.com; s=arc-20160816; b=M9Y/joRta/njDT97NFVLf0yyCDLHkeRaRzCgBx5L3F7If2gW1mQhEbXudkJmUPtdjo 0JU0yFvYmOtZGYtZFPziUiMJjLp7UaH+E1VVaemzZoX9gLayGIBDgM32An8QS2sM6SoC ZiP/rmR1f3oBrTKjf6rPbtXfoi0mZ1iYaR4R8kxti3Kf6xMql35vhPSsxBXG8NlEEsQz EoFtYiej1nYBidXz0fmZpv+N/xzSriybDeHpxVeNE7ppYjiHJH+KuheHbIuqIuS3N+J9 em9QQFMlPXshz2kd5HHq/zwoml0nnriGlgAMxvs7XME7/B4Tglp53T5Rv44AeCR/JwHt ROgw== 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=7eJLYOSK/ozL2Ka4OAIR7roEcVb8or3HqsXY7rhWBfA=; fh=YSxuK9BWao72yynvwExf+8eOkAPyMIcS9CoqIRrFY/o=; b=t5EKKt0s8haV2IJ09YY8GuEeGfhJMHamri68N68/AUyZUVp1qmziIbBVzoLbKhvuN/ zi8iN1F1u1pH0iZ5V4JyXL/s5ci18NbXEfRTf9QIyswWwcorJVBoMN/9r18966Y2ud3C l43VmUtoy1hpR2eBU8G7MN5L1D24AKhmGqyUZWZh2Rl/FWBxzBy8G1n666PEwxgcDl64 mDFzHKQbLE0a4OgI5dv2VptdSSUTMTuMKd260ks1zWLlaNjrJ/T+DPtyJpel1R8sq1ke ePadTMNC1uEh5ZyOoggsj0ONIkKnu8OaGqIvwus7bZUepp/4SKHOIZqQZhH15kBzaLvR Qkew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id k6-20020a6568c6000000b005702c84e4c2si18132152pgt.508.2023.09.28.04.04.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:04:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 5797B81C99B9; Thu, 28 Sep 2023 03:58:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231440AbjI1K54 (ORCPT + 99 others); Thu, 28 Sep 2023 06:57:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231726AbjI1K5z (ORCPT ); Thu, 28 Sep 2023 06:57:55 -0400 Received: from out28-173.mail.aliyun.com (out28-173.mail.aliyun.com [115.124.28.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D701219D; Thu, 28 Sep 2023 03:57:51 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.3256088|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.42984-0.00186958-0.568291;FP=7333335452469810594|1|1|20|0|-1|-1|-1;HT=ay29a033018047213;MF=wangweidong.a@awinic.com;NM=1;PH=DS;RN=31;RT=31;SR=0;TI=SMTPD_---.UqYH8Bg_1695898659; Received: from ubuntu-VirtualBox..(mailfrom:wangweidong.a@awinic.com fp:SMTPD_---.UqYH8Bg_1695898659) by smtp.aliyun-inc.com; Thu, 28 Sep 2023 18:57:47 +0800 From: wangweidong.a@awinic.com To: girdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, perex@perex.cz, tiwai@suse.com, wangweidong.a@awinic.com, rf@opensource.cirrus.com, shumingf@realtek.com, herve.codina@bootlin.com, rdunlap@infradead.org, 13916275206@139.com, ryans.lee@analog.com, linus.walleij@linaro.org, ckeepax@opensource.cirrus.com, doug@schmorgal.com, ajye_huang@compal.corp-partner.google.com, harshit.m.mogalapalli@oracle.com, arnd@arndb.de, yang.lee@linux.alibaba.com, u.kleine-koenig@pengutronix.de, liweilei@awinic.com, yijiangtao@awinic.com, trix@redhat.com, dan.carpenter@linaro.org, colin.i.king@gmail.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rob Herring Subject: [PATCH V6 01/10] ASoC: dt-bindings: awinic,aw88395: Add properties for multiple PA support Date: Thu, 28 Sep 2023 18:57:18 +0800 Message-ID: <20230928105727.47273-2-wangweidong.a@awinic.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230928105727.47273-1-wangweidong.a@awinic.com> References: <20230928105727.47273-1-wangweidong.a@awinic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Thu, 28 Sep 2023 03:58:17 -0700 (PDT) From: Weidong Wang 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, allowing multi-PA to achieve better playback effect. Signed-off-by: Weidong Wang Acked-by: Rob Herring --- .../bindings/sound/awinic,aw88395.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/awinic,aw88395.yaml b/Documentation/devicetree/bindings/sound/awinic,aw88395.yaml index 4051c2538caf..b977d3de87cb 100644 --- a/Documentation/devicetree/bindings/sound/awinic,aw88395.yaml +++ b/Documentation/devicetree/bindings/sound/awinic,aw88395.yaml @@ -32,11 +32,25 @@ 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/flag + required: - compatible - reg - '#sound-dai-cells' - reset-gpios + - awinic,audio-channel unevaluatedProperties: false @@ -51,5 +65,7 @@ examples: reg = <0x34>; #sound-dai-cells = <0>; reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>; + awinic,audio-channel = <0>; + awinic,sync-flag; }; }; -- 2.41.0