Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2400347rdb; Tue, 12 Sep 2023 00:00:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEP6oeSMLZVKmnKSsL2WAd97v+35sFIMOWwMiy9nPoA2th2fThMD1bgKbJpQ7CXKyYFw7ci X-Received: by 2002:a05:6a00:1acb:b0:68a:2272:23e9 with SMTP id f11-20020a056a001acb00b0068a227223e9mr11597861pfv.17.1694502019479; Tue, 12 Sep 2023 00:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694502019; cv=none; d=google.com; s=arc-20160816; b=Bhn8k1Jispiq4wgXX/vy777GT97JkUxPZpVqRJN7e5U/fV1a+Q61zT/lnkjUa9/i+7 Rm3BpkXZrtoL07OsN76VtmvyqCeaRiO0tjKZa3TAQusXzEfD4gDrXls9r34kQoqZekxO swGflgGxgPKuPEzvp2y24zJQstY9Hai4PZUKH7axy5Vogx2mVv5kMc7v9HGtSJxb+C21 xCz7P/MQV5RhCgcMJaX4kZnnr9LrXaT6Ahc5vEgXTbYooypJj5wSjO7CsXaqGoxxgWwC 2SBIfjCrPKskN4EG1P1yCa7MjCE5Lf/dAuVHNCamLtckvkBhFBpcRVPG518Bar8gLLxe Dzaw== 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=jiRW62OdsPMFJyIhOFaZXyU9Z/+aD0c8WPVl8X+oQz8=; fh=BqVAeBwXqe0FmoMFKHsgCy5VHVpMbYmVoWs6u5H6Arg=; b=ixvBrsmMDfUFlkvy+KVAmqPoKkyJIQDZbuwz+00FbzByuqFASDX+CVuKndVFb3v/j/ vwIXYPXLDAponijWGlv55PDAHyTuCyjF8BPwGFM+rZ0XWmfbwRpgQoV1sem8GVM/vTEA f8anQc/AOyAvwNkhI3yzCKnkDd5ERLNtSz5ovYXGEC7uorRwnqJOXL4cGeSmbxyOrRCm w9arBqcKFrGooL9iwQ/+CXDo46QU7nRcI0szPqqTSnUL9/O98YMoYuv6Je+osh37Y2A8 DO3oL9cTZrqC5zoDNoAPOYLUvPrpFusC5GHteiW8zpI2s701tg3H/TPJjthLeHjVVFn9 6q6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id e19-20020a056a001a9300b0068fefb0c039si185085pfv.99.2023.09.12.00.00.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 00:00:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id EFD5A8024ADD; Tue, 12 Sep 2023 00:00:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231139AbjILG7c (ORCPT + 99 others); Tue, 12 Sep 2023 02:59:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231199AbjILG7b (ORCPT ); Tue, 12 Sep 2023 02:59:31 -0400 Received: from out28-123.mail.aliyun.com (out28-123.mail.aliyun.com [115.124.28.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01DED10C9; Mon, 11 Sep 2023 23:59:26 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1476062|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.302725-0.000405716-0.696869;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047206;MF=wangweidong.a@awinic.com;NM=1;PH=DS;RN=27;RT=27;SR=0;TI=SMTPD_---.Ud9dop-_1694501955; Received: from ubuntu-VirtualBox..(mailfrom:wangweidong.a@awinic.com fp:SMTPD_---.Ud9dop-_1694501955) by smtp.aliyun-inc.com; Tue, 12 Sep 2023 14:59:22 +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, shumingf@realtek.com, ckeepax@opensource.cirrus.com, herve.codina@bootlin.com, wangweidong.a@awinic.com, 13916275206@139.com, ryans.lee@analog.com, linus.walleij@linaro.org, sebastian.reichel@collabora.com, fido_max@inbox.ru, povik+lin@cutebit.org, arnd@arndb.de, harshit.m.mogalapalli@oracle.com, liweilei@awinic.com, yijiangtao@awinic.com, colin.i.king@gmail.com, trix@redhat.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 2/5] ASoC: dt-bindings: Add schema for "awinic,aw87390" Date: Tue, 12 Sep 2023 14:58:49 +0800 Message-ID: <20230912065852.347000-3-wangweidong.a@awinic.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230912065852.347000-1-wangweidong.a@awinic.com> References: <20230912065852.347000-1-wangweidong.a@awinic.com> 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 (lipwig.vger.email [0.0.0.0]); Tue, 12 Sep 2023 00:00:04 -0700 (PDT) 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 lipwig.vger.email From: Weidong Wang Add a DT schema for describing awinic aw87390 audio amplifiers. They are controlled using I2C. Signed-off-by: Weidong Wang --- .../bindings/sound/awinic,aw87390.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/awinic,aw87390.yaml diff --git a/Documentation/devicetree/bindings/sound/awinic,aw87390.yaml b/Documentation/devicetree/bindings/sound/awinic,aw87390.yaml new file mode 100644 index 000000000000..ba9d8767c5d5 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/awinic,aw87390.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/awinic,aw87390.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Awinic Aw87390 Audio Amplifier + +maintainers: + - Weidong Wang + +description: + The awinic aw87390 is specifically designed to improve + the musical output dynamic range, enhance the overall + sound quallity, which is a new high efficiency, low + noise, constant large volume, 6th Smart K audio amplifier. + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: awinic,aw87390 + + reg: + maxItems: 1 + + "#sound-dai-cells": + const: 0 + + 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 + +required: + - compatible + - reg + - "#sound-dai-cells" + - awinic,audio-channel + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + audio-codec@58 { + compatible = "awinic,aw87390"; + reg = <0x58>; + #sound-dai-cells = <0>; + awinic,audio-channel = <0>; + }; + }; -- 2.41.0