Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1766132rwl; Thu, 5 Jan 2023 19:44:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXtf7CBMAJFfvpSpZA1v/iqwkVPwWqfFVNrhZEBXIox1ouTk/ctO8ywiddBjt9fUD9Zs2zMU X-Received: by 2002:a05:6402:685:b0:470:25cf:99d1 with SMTP id f5-20020a056402068500b0047025cf99d1mr45814391edy.31.1672976652943; Thu, 05 Jan 2023 19:44:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672976652; cv=none; d=google.com; s=arc-20160816; b=0CVrptRsQiyoCx1cpLef9rytDSQOusbVIoLM8/aaA3iejhUyCqWcl5KNbMViwNY77o JxEzmrB8PeWaa7gJ3Qo/X7ATj+N2NSsz26lNw3Kwqu/IAabK0CdirmbxKcBvsXG7e4MX HfhLkJP9Z8XYmQRom05LV0Mq4EkMxVQ+A2TFXh0Lo/Fcfqm/UzGfLbOl+lZ0Hafdy8Fg CBRHM1OpXC0QQwTYaf0KqjChYDPriMIbNf2hHiNeVVi8VSFZ8qcFRULecXTJKCJ7F8OT JHhBtGlefio+DEFmovd9IcGhOYJu7FB6lkObLV3CdgnDdymj415nzmv2aaA6twdUgj9h HFoA== 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=lyjQ07B+p3a/7ONRC2Fg1ArrmwtU5KKtT8WfBXrdlMI=; b=fJPXXkZEqFZgvng9xuq1xd+yVxDYVjdgslQJY/KgU3ZURrv8vWiRkn8cPmGawKACLO WN6bMoSDJ04MlG6tCvQjpsQMDtiEmgiz5Nrh3Elk+mOY4QgY9rKtWuBeXltfzxHb8x+M 5fS2b6GeTKOzS5rT71o8vDrOR+snpd7jqgKFnN1VSlBS9TxOdRUX7TiLS1jVIjl5Fr+b FHexFpFCyUo3rSqhVwOtSanRxYvnNrv411tZbrqcH+IkGBclLbcCkjS1uE/Qo1nsTrhI pWwMfNPZOgeWtiNAx8hh9RpcSL3Msnjr7RCfKpiRKwsSN+8Rn0bDLu9o4+FOB0WR4ndM AdDg== 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 v22-20020a056402349600b0045cecdc1fbcsi361645edc.9.2023.01.05.19.43.59; Thu, 05 Jan 2023 19:44:12 -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 S231760AbjAFD3U (ORCPT + 55 others); Thu, 5 Jan 2023 22:29:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231702AbjAFD3L (ORCPT ); Thu, 5 Jan 2023 22:29:11 -0500 Received: from out29-129.mail.aliyun.com (out29-129.mail.aliyun.com [115.124.29.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E85E6A0D0; Thu, 5 Jan 2023 19:29:08 -0800 (PST) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1530381|-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=ay29a033018047207;MF=wangweidong.a@awinic.com;NM=1;PH=DS;RN=26;RT=26;SR=0;TI=SMTPD_---.QlbrpT3_1672975741; Received: from ubuntu-VirtualBox..(mailfrom:wangweidong.a@awinic.com fp:SMTPD_---.QlbrpT3_1672975741) by smtp.aliyun-inc.com; Fri, 06 Jan 2023 11:29:04 +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, flatmax@flatmax.com, cezary.rojewski@intel.com, wangweidong.a@awinic.com, povik+lin@cutebit.org, yangxiaohua@everest-semi.com, daniel.beer@igorinstitute.com, 13691752556@139.com, srinivas.kandagatla@linaro.org, jonathan.albrieux@gmail.com, steve@sk2.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: liweilei@awinic.com, zhaolei@awinic.com, yijiangtao@awinic.com Subject: [PATCH V9 5/5] ASoC: dt-bindings: Add schema for "awinic,aw88395" Date: Fri, 6 Jan 2023 11:28:35 +0800 Message-Id: <20230106032835.141918-6-wangweidong.a@awinic.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230106032835.141918-1-wangweidong.a@awinic.com> References: <20230106032835.141918-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,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 --- .../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