Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2532814rdh; Wed, 27 Sep 2023 05:43:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFaxVSvxO8d1RAX2hgfb1A0VlUYnbh8X7oHwNnch7hpeEXW4bkrhv1+3a+fzoygNBlw4Ja2 X-Received: by 2002:a05:6a00:cc8:b0:68e:2af1:b193 with SMTP id b8-20020a056a000cc800b0068e2af1b193mr2161167pfv.28.1695818630489; Wed, 27 Sep 2023 05:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695818630; cv=none; d=google.com; s=arc-20160816; b=CxdeNtueZrPLmDILeKECYUcTI78N/OBfhngWRBtbV3HYfdKnVnAEb3zo9GrqmtQ/Xl NncAMPT548weisG06M2yg37cJpeOjfKVJ2SN5Y0O92lexG8zggi9GfjpRlY2PHxOtdXx 9fe3BXzZ5SXAtVgP7r6ju/GgYGjRnCUGsNNjkqo32zYkf125Ah+wGm4D47q4n6gJbh17 a2XxHmFmyr+lhpjdluo42ieVQcpQ5gR+Aj+OObuzQloxc9oyJM5pZpIgguOs/tF60VuW pam+/k5UBRfPc7EggaLnhtU6gVSo6tMHmxomWY8EPyDUJcPA6nfW6LyT9ERm0Wf50l5O C/Ow== 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=U+iCBEBDdYk+/52L6w+R62tdq2yika6y8Ccu3LJnOJY=; b=zJ2sHFCjDZgX3cQaDAVr/qeQfq7S8zvqeciejsWggsVjxo2DswQhCmY91OI4wusaX3 tBDSxHpWaTxZoC6J0TBRFJ2w16taWXNHxEoChrEXck2A4EB0fKdRDbibhTuPlObcBNUY KMn2eFHCSYTCsuK45TcwKKa8Z9OQGihxzZOu4Ej//RKIIwmsZDNUVpx86vPIoGSqlagj SwWlMtJEkba1tZjbQn1pAgyy36yArkYTJEcG9S76lDvazoWiQsbXoWo1MySGvKlEVFe3 8F4aE9Hg4js61up8DKH1ZfWhYndD4oXRiDAS0VJOYr8DsLmjC4A1gviFROBXTugabNkh KSpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id r20-20020a6560d4000000b005783f4fa3a8si14791262pgv.203.2023.09.27.05.43.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 05:43:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 93A9283294ED; Wed, 27 Sep 2023 05:17:18 -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 S231613AbjI0MRA (ORCPT + 99 others); Wed, 27 Sep 2023 08:17:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231616AbjI0MQ7 (ORCPT ); Wed, 27 Sep 2023 08:16:59 -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 1E2B3192; Wed, 27 Sep 2023 05:16:56 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.3310761|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.42984-0.00186958-0.568291;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047199;MF=wangweidong.a@awinic.com;NM=1;PH=DS;RN=30;RT=30;SR=0;TI=SMTPD_---.Upkf33f_1695817005; Received: from ubuntu-VirtualBox..(mailfrom:wangweidong.a@awinic.com fp:SMTPD_---.Upkf33f_1695817005) by smtp.aliyun-inc.com; Wed, 27 Sep 2023 20:16:53 +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, shumingf@realtek.com, rf@opensource.cirrus.com, herve.codina@bootlin.com, arnd@arndb.de, 13916275206@139.com, ryans.lee@analog.com, linus.walleij@linaro.org, ckeepax@opensource.cirrus.com, doug@schmorgal.com, fido_max@inbox.ru, harshit.m.mogalapalli@oracle.com, liweilei@awinic.com, yang.lee@linux.alibaba.com, u.kleine-koenig@pengutronix.de, yijiangtao@awinic.com, dan.carpenter@linaro.org, colin.i.king@gmail.com, trix@redhat.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rob Herring Subject: [PATCH V5 1/8] ASoC: dt-bindings: awinic,aw88395: Add properties for multiple PA support Date: Wed, 27 Sep 2023 20:16:27 +0800 Message-ID: <20230927121634.94822-2-wangweidong.a@awinic.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230927121634.94822-1-wangweidong.a@awinic.com> References: <20230927121634.94822-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]); Wed, 27 Sep 2023 05:17:18 -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