Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp394644rwb; Thu, 12 Jan 2023 22:07:50 -0800 (PST) X-Google-Smtp-Source: AMrXdXs6MOXmja1jvHOhChfvrvEZgByDQKA/VzH7a8q1fhZQRrGEhcLeSCUqH3d/sEERX2r2a4/+ X-Received: by 2002:a17:902:6a87:b0:194:6d39:5911 with SMTP id n7-20020a1709026a8700b001946d395911mr1644289plk.40.1673590070701; Thu, 12 Jan 2023 22:07:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673590070; cv=none; d=google.com; s=arc-20160816; b=Oz0bBTLCk22P58mrnjLZhkmIzqsjLqVtpGaDYE+uJpwgt025zEWaswUt2+R9DP7Jcs zF8uePuM1SIEIZ8Zu274PIhhHdl7fqBadAq9dzDCrWNO/DTkPFLAEBUNzrm9nU0AXgAb k4uxeUBswRUmmzDMDKvEqAgnDy2opF4FQhDne/mYjG4UAiLEoQN/GDbQjsPGCB3IP/EL moigTIzcFCOU8KlDnU88aFBv/7BF2JwfPxgqEn6iDZ9mfZ8k3DvijsiIjggSQUOzJwz3 Dpdi5GC2Xj1EvEir9H+cOk1fPIraOlKawmM86yMOXQMNK7B/j8107A4JObg6ZkFPb80p xB8w== 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=X1lSc6R7FxXC3TxXLimmEXiNIdzO2NcXYl1t/S/7hQ0=; b=orE1M58yRAqLiyczF13ATek27VdWOkJN+qEWlT3DsZEdrCaOzHBMQb/+21TIMzkzZG iIHbTycaCatqRDBDrLm/Z5o4dRc6+oVDJMM4w1lWU5MINGVXDkfAjotyip3rGirhMhPm fm37rUcyD9fw8mftJURVSo0fpgyoY5av29JSv4yLw4/MO3ESFMMQ6jjNHczW3F3oXuLy bP+c+vjC4LDkWhkaB0ajlFPlW1spu/g+sMaFERrmcOEyuss1OkKC5DN4s7MSCSc0mBMJ M3Fc5AXmiyoT8EnXTFxdZlsqI4DPyPLD7S8yLl3e8BFlbygipF//QvZmZikq0KuXcoqK N13Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020a170903124e00b00189c83914c7si19694591plh.89.2023.01.12.22.07.43; Thu, 12 Jan 2023 22:07:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239506AbjAMF7d (ORCPT + 50 others); Fri, 13 Jan 2023 00:59:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240425AbjAMF5v (ORCPT ); Fri, 13 Jan 2023 00:57:51 -0500 Received: from out28-193.mail.aliyun.com (out28-193.mail.aliyun.com [115.124.28.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9055E44C43; Thu, 12 Jan 2023 21:53:38 -0800 (PST) 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 Cc: liweilei@awinic.com, yijiangtao@awinic.com, zhaolei@awinic.com, Krzysztof Kozlowski 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; + }; + }; -- 2.39.0