Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp6123019rdb; Mon, 18 Sep 2023 05:07:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHfDUFLFbxif+CWU6RwPQ3e6j50Ax3Bhev/bDpJ1UOAJrHvvHVu/NlCmi3UR+m8RfxiJaHQ X-Received: by 2002:a05:6e02:be2:b0:348:ac7f:69a2 with SMTP id d2-20020a056e020be200b00348ac7f69a2mr11699225ilu.15.1695038841722; Mon, 18 Sep 2023 05:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695038841; cv=none; d=google.com; s=arc-20160816; b=DL4ioYRWDWAP5/ptctOi2XItg/f3P0RxHGyQvG0mYZN2bBuRks4dNf4guIEKSPuxKB lFKzcLj+fIjfdxSMEF3+j98d8ginAe3JZd5A38SbtW0l76rWzA5FktQXsSWcQSsR9ZpM 5yGICtWsKEcaQksIsMYjxSmtlUSv2/o5XZGTZgjnb7v2IUrzsU7oSSL3v6O2iqhRM1/l surbLdeE2LevdwSzilA1GsGTqFcu7gi3gxSS54PdqX/hDO0ZibrjOwexx0x2nyi880uS Z5YVqc0uHkx0a9tMfeUvh42HSLnM2lTWV1a5xXFabZWHaazMJ/H/qz9/iUtlt+AWLRId 8HdQ== 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=vR7HgRamjSU8Btsbfd6JHPJZVxlEEZC7bB5hTc9tqNg=; b=mqpmdSqRx0UbIKmY0RRcyVnz2qGXwK8XbxlkEoBYe70VWbM22ML3KQeSggE5HSZKhu 29pQCp/e/DSyffZGgkagvo4Cerbxh3SIm1AnB/OwXoXNzg5IDozsVDIzW3EJ8ELEnes6 RyCQSKGshRShaes2/bcDUSj9HTN+e/RylK0qgHgWSpMBdU3ebUC3QxPqAK0/ZWt7Jng1 bMnbZJBKkw6vTVWP1R0v5w3r+/oga4bTi0lPeeWmCn41eQL8nunXkaEO7MaH2uoaYjT4 EPp5bgDNQ+rbxIlLLVtyl+coCu1agUYjxOTrHK8HBymVpSlYfKBioye0PTsv1kVQevZO ZMrg== 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:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id g127-20020a636b85000000b00564274c2947si7655233pgc.637.2023.09.18.05.07.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 05:07:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 9F1EE81A5A4B; Mon, 18 Sep 2023 04:54:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240233AbjIRLyL (ORCPT + 99 others); Mon, 18 Sep 2023 07:54:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241878AbjIRLyG (ORCPT ); Mon, 18 Sep 2023 07:54:06 -0400 Received: from out28-74.mail.aliyun.com (out28-74.mail.aliyun.com [115.124.28.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF69518C; Mon, 18 Sep 2023 04:53:18 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.3403051|-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=ay29a033018047204;MF=wangweidong.a@awinic.com;NM=1;PH=DS;RN=27;RT=27;SR=0;TI=SMTPD_---.Ui7aPO._1695037986; Received: from ubuntu-VirtualBox..(mailfrom:wangweidong.a@awinic.com fp:SMTPD_---.Ui7aPO._1695037986) by smtp.aliyun-inc.com; Mon, 18 Sep 2023 19:53:13 +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, rf@opensource.cirrus.com, wangweidong.a@awinic.com, herve.codina@bootlin.com, shumingf@realtek.com, 13916275206@139.com, ryans.lee@analog.com, linus.walleij@linaro.org, ckeepax@opensource.cirrus.com, povik+lin@cutebit.org, arnd@arndb.de, harshit.m.mogalapalli@oracle.com, u.kleine-koenig@pengutronix.de, yang.lee@linux.alibaba.com, liweilei@awinic.com, yijiangtao@awinic.com, trix@redhat.com, colin.i.king@gmail.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V3 1/5] ASoC: dt-bindings: awinic,aw88395: Add properties for multiple PA support Date: Mon, 18 Sep 2023 19:52:51 +0800 Message-ID: <20230918115255.33171-2-wangweidong.a@awinic.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230918115255.33171-1-wangweidong.a@awinic.com> References: <20230918115255.33171-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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 18 Sep 2023 04:54:49 -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