Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp571622rdb; Tue, 19 Sep 2023 04:17:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGnj0eZIkXNqDVhrAFS2m0XUeeguJFtvmG3GA21o1jFAfnK61SCpUF+Tpe9sdpoJLmD5LgO X-Received: by 2002:a05:6358:7242:b0:134:dc90:b7d1 with SMTP id i2-20020a056358724200b00134dc90b7d1mr14443739rwa.25.1695122244921; Tue, 19 Sep 2023 04:17:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695122244; cv=none; d=google.com; s=arc-20160816; b=KcFFqVkyEBhCiOqVehliHTRa8IfhWWHIe2CX2etJLt1hqfOEmkbOEi0xIK3NkMrfBE 7qpldeSuflxnTG1IGnp2KTDVYJ4JYtyqE1TaBdWxNVWixVEN+5XDTGlEuCFzysml0jhI o0a4hehmfmaC2iSWMze/D9Sak6xJ6wXxyoQuXJDQxGQrvT3QgI3zwczFriYOPmg+8HKz X1H4uvyflJTA4AKig3HIl4mG0PzxZ8DX0K512wWnZDCzFj2rBW2IoHlm6kZEEZwfpBau EKkkeNGFqmX9Lcxg/ZBDL41FuAGzD8KxGOwFbXuSWWG/PeQKAE/j/YAutSbL0XcIHOug jsvA== 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; bh=/ZUMhX8rGsoTClHG3N1+00oISmZuVfGOyCi8AlxV7hY=; fh=rioInmhNI0g92MWJzQJenTvoQfMaIAPqpLNlOWDlntk=; b=llmhrsSaEZEgx9fAcszUeQuh9euWIOBp7nsuk2ntJf4iiNXKgewbH6HzdVSjgy6sxQ rr9s47BoEHW6WeOThGfg4nEbgY9vZmJAoJLm5eifdDW/mP1dW0bbj5/QLitJ3ySIZWVW IaqMTZFf5Fs4lv/6snQB849GQEYJSj5gjLfkayhl+ZlJ3XfrP/NpEJ6zzPaaGC8UNrUM Zbx0xDYgkpyokc9ehZmNI+UGfPUJQ5BxJulSqvrykJ//uJ/7PZp2ywxk5pL5V7/hmOl7 ZEYc3NKCiNSrP9APz9YlNBUbE/G+756aK7AJZlqra49DuvlNt+IAzWqwJYuFaNOKKKJa uk/A== 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 i3-20020a63e903000000b00565eb0cf702si9679886pgh.310.2023.09.19.04.17.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 04:17:24 -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 5E18E81BDF07; Tue, 19 Sep 2023 04:06:37 -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 S232216AbjISLGg (ORCPT + 99 others); Tue, 19 Sep 2023 07:06:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232215AbjISLGI (ORCPT ); Tue, 19 Sep 2023 07:06:08 -0400 Received: from out28-52.mail.aliyun.com (out28-52.mail.aliyun.com [115.124.28.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBE3512D; Tue, 19 Sep 2023 03:57:44 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.3465002|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.42984-0.00186958-0.568291;FP=7261269027978073474|1|1|19|0|-1|-1|-1;HT=ay29a033018047194;MF=wangweidong.a@awinic.com;NM=1;PH=DS;RN=27;RT=27;SR=0;TI=SMTPD_---.Uj4ERmC_1695121054; Received: from ubuntu-VirtualBox..(mailfrom:wangweidong.a@awinic.com fp:SMTPD_---.Uj4ERmC_1695121054) by smtp.aliyun-inc.com; Tue, 19 Sep 2023 18:57:41 +0800 From: wangweidong.a@awinic.com To: lgirdwood@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, herve.codina@bootlin.com, shumingf@realtek.com, ryans.lee@analog.com, 13916275206@139.com, linus.walleij@linaro.org, ckeepax@opensource.cirrus.com, povik+lin@cutebit.org, harshit.m.mogalapalli@oracle.com, arnd@arndb.de, yijiangtao@awinic.com, yang.lee@linux.alibaba.com, liweilei@awinic.com, u.kleine-koenig@pengutronix.de, colin.i.king@gmail.com, trix@redhat.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V4 1/7] ASoC: dt-bindings: awinic,aw88395: Add properties for multiple PA support Date: Tue, 19 Sep 2023 18:57:18 +0800 Message-ID: <20230919105724.105624-2-wangweidong.a@awinic.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230919105724.105624-1-wangweidong.a@awinic.com> References: <20230919105724.105624-1-wangweidong.a@awinic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 19 Sep 2023 04:06:37 -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 --- .../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