From patchwork Fri Jan 13 05:53:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wangweidong.a@awinic.com X-Patchwork-Id: 642641 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 99536C54EBD for ; Fri, 13 Jan 2023 05:55:23 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 7DC268563; Fri, 13 Jan 2023 06:54:31 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7DC268563 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1673589321; bh=cMfHQKf2K0k6d0k5DAX7daGEDfNWAQfqXeNynVgvpmE=; h=From:To:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=s4kD3E0JExfT9BSNNvF1+Q1A0BiY1FJaOz5RxefwEtaZE1sY5oFmpXdxiLOyITU8T NpqBFYnWz+hXkQCoSYypEtrFmuHWIwTJ90vIFoCVYTV67tRu44hZZGMZ5t6ysD3q3s PCpCdSJ+TfhOvkLN/l/SBrilAQtKbbYwTYvpomcg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id A7D7FF80563; Fri, 13 Jan 2023 06:53:46 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A5392F8055A; Fri, 13 Jan 2023 06:53:40 +0100 (CET) Received: from out29-106.mail.aliyun.com (out29-106.mail.aliyun.com [115.124.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 6BECFF80557 for ; Fri, 13 Jan 2023 06:53:35 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6BECFF80557 X-Alimail-AntiSpam: AC=CONTINUE; BC=0.151715|-1; CH=green; DM=|CONTINUE|false|; DS=CONTINUE|ham_system_inform|0.325954-0.000438573-0.673608; FP=0|0|0|0|0|-1|-1|-1; HT=ay29a033018047213; MF=wangweidong.a@awinic.com; NM=1; PH=DS; RN=24; RT=24; SR=0; TI=SMTPD_---.QrY0tg6_1673589205; Received: from ubuntu-VirtualBox..(mailfrom:wangweidong.a@awinic.com fp:SMTPD_---.QrY0tg6_1673589205) by smtp.aliyun-inc.com; Fri, 13 Jan 2023 13:53:28 +0800 From: wangweidong.a@awinic.com To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, perex@perex.cz, tiwai@suse.com, ckeepax@opensource.cirrus.com, rf@opensource.cirrus.com, pierre-louis.bossart@linux.intel.com, james.schulman@cirrus.com, wangweidong.a@awinic.com, flatmax@flatmax.com, jonathan.albrieux@gmail.com, povik+lin@cutebit.org, 13691752556@139.com, shumingf@realtek.com, ryan.lee.analog@gmail.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V10 5/5] ASoC: dt-bindings: Add schema for "awinic,aw88395" Date: Fri, 13 Jan 2023 13:53:01 +0800 Message-Id: <20230113055301.189541-6-wangweidong.a@awinic.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230113055301.189541-1-wangweidong.a@awinic.com> References: <20230113055301.189541-1-wangweidong.a@awinic.com> MIME-Version: 1.0 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: yijiangtao@awinic.com, Krzysztof Kozlowski , zhaolei@awinic.com, liweilei@awinic.com Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From: Weidong Wang Add a DT schema for describing Awinic AW88395 audio amplifiers. They are controlled using I2C. Signed-off-by: Weidong Wang Reviewed-by: Krzysztof Kozlowski --- .../bindings/sound/awinic,aw88395.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/awinic,aw88395.yaml diff --git a/Documentation/devicetree/bindings/sound/awinic,aw88395.yaml b/Documentation/devicetree/bindings/sound/awinic,aw88395.yaml new file mode 100644 index 000000000000..35eef7d818a2 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/awinic,aw88395.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/awinic,aw88395.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Awinic AW88395 Smart Audio Amplifier + +maintainers: + - Weidong Wang + +description: + The Awinic AW88395 is an I2S/TDM input, high efficiency + digital Smart K audio amplifier with an integrated 10.25V + smart boost convert. + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: awinic,aw88395 + + reg: + maxItems: 1 + + '#sound-dai-cells': + const: 0 + + reset-gpios: + maxItems: 1 + +required: + - compatible + - reg + - '#sound-dai-cells' + - reset-gpios + +unevaluatedProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + audio-codec@34 { + compatible = "awinic,aw88395"; + reg = <0x34>; + #sound-dai-cells = <0>; + reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>; + }; + };