Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp6123283rdb; Mon, 18 Sep 2023 05:07:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEA/xtr4pkvXD3HiRHFzTStF3UCMnARXCctyBW2lmvZhcJY/AaViraSoD3qsZCEAyRhk/5J X-Received: by 2002:a05:6a20:978a:b0:159:fe1d:2f32 with SMTP id hx10-20020a056a20978a00b00159fe1d2f32mr7160452pzc.42.1695038864976; Mon, 18 Sep 2023 05:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695038864; cv=none; d=google.com; s=arc-20160816; b=e4n7i1KsX7/7pQIUYspWlm2yeQCNVspyJ2AT/rYnVJvnFWXiYpVe4W4KITB4iZ5RuN fiBp+2MzztYNCL93rKFM2vVJpNBlGgS1R0F3INTFGzavjRS3NUdoDwN+dE7gWVEJKhBk NvdpyzZzvtO4AagfyImQlvtT6qT05HqeluPjgaPTmlwjuy/kGaoX9j7iQQ7Im8WA2b4c hGydRxyKmxAOT1ui49IQ7/QkZpqe4Ii2HdlOHVwh0q/57eNHUBk1tgrUtgwIUqZ6/U2a SRiqPoKSPCMPi62BmRPHeMyreO0DPuUXxiR40ygMBRMnt/gEAcXpsUnEINRAo7JsWYFr Bn2g== 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=Tn+gD9JHJii33Z4+pPkOI4vJieFN+SYmWCvyeWG1gg8=; fh=XNoiMR4liIaI+kIFOPwXoMesK/OtCbf16U2FZnyS9nI=; b=MjYcTJXUblPuMXW9bfLsStxx6pHYRIluEi39pJvoNSEjPMhpgtRpN71arc6Xmhw+6c bxDtVzoc28TAuw/YphDJAQmJj+glVIpB4Ew9K2vsl6RLnfyQLcon7aIBxbgtfRBHwTPO IVoqEeYNVxLxTWD4TTlqQFwt8QaYJfLg67+hz4jytzho2oroj0mxsUVOYf7hJUbGTHzQ ySWfTVJxHy1X8C9W1Y3y0CvUpD6j0c6EUTIrnJZAyPMaZzl/f1MtIiafcJz3wiNI2alI Kj2wTyEoScJZ84LnpDrHzLE58qS/NeL3enjzsv43b97QrhpCWUBRjltOt4lP4fWZsY4N F1mQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id a6-20020a656406000000b0056949ba3f3fsi7820630pgv.253.2023.09.18.05.07.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 05:07:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 6E4158228820; Mon, 18 Sep 2023 04:55:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237827AbjIRLyn (ORCPT + 99 others); Mon, 18 Sep 2023 07:54:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241696AbjIRLyM (ORCPT ); Mon, 18 Sep 2023 07:54:12 -0400 Received: from out28-221.mail.aliyun.com (out28-221.mail.aliyun.com [115.124.28.221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EEDEFD; Mon, 18 Sep 2023 04:53:25 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1414002|-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=ay29a033018047199;MF=wangweidong.a@awinic.com;NM=1;PH=DS;RN=28;RT=28;SR=0;TI=SMTPD_---.Ui7aPWT_1695037993; Received: from ubuntu-VirtualBox..(mailfrom:wangweidong.a@awinic.com fp:SMTPD_---.Ui7aPWT_1695037993) by smtp.aliyun-inc.com; Mon, 18 Sep 2023 19:53:21 +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 Cc: Rob Herring Subject: [PATCH V3 2/5] ASoC: dt-bindings: Add schema for "awinic,aw87390" Date: Mon, 18 Sep 2023 19:52:52 +0800 Message-ID: <20230918115255.33171-3-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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 18 Sep 2023 04:55:16 -0700 (PDT) From: Weidong Wang Add a DT schema for describing awinic aw87390 audio amplifiers. They are controlled using I2C. Reviewed-by: Rob Herring 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