Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11718359rwl; Tue, 3 Jan 2023 03:49:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXsyXrA0dGjBOl+/inAu/pALV7HYUI3GHBz6WaunNpkl4n/25rjRTJR/kwHqneMr5d8muiEZ X-Received: by 2002:a17:906:185b:b0:841:e5b3:c95d with SMTP id w27-20020a170906185b00b00841e5b3c95dmr40513496eje.30.1672746595634; Tue, 03 Jan 2023 03:49:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672746595; cv=none; d=google.com; s=arc-20160816; b=FVzUc1iJrhqvC+3rgIWPaHC1BtXje08FW51ac08FEBuxNsVWwLDDTOEJvhqSBnnjBP a8883KQWQMh9KYsIihlSje45bI4rfM2iUCQbdJPdWIAjfBJexIQUOzSetdcv+HiR81cF j/kdZ4/CKlSQIIDz7+ZSGntvvy++cwfObTg/uRpn+P9ahMN72u7CVPbt9tAmM3u6uTpD 1DK8ysaeb/xO7Cbo3e/elvCGRAgNfkyT+WGSx1heiHMCPKCK+EPbKiei6fBnY1BW3y5y kvoTQZt/attT7HPnBatz2ruEOu86vsKOJWzvI64p7LqbwL2qkMz+s/+qLXOaMXRWsdCF z9EA== 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=7qXp5jDi4277yO5hF4dq5EEO3SZZmM80ZqJQfF5BW98=; b=SzKbVyaex7KCUdt6lNsRIkFHaUr1LphxkH1G6zRfMwYiTm5tgZ6fmSbR8P3gQYgWd0 3wnZwyE97+q9pVIPhgOi+44bMzcZYuLd8lbc+H2Gfzi/LzTPIjAyEu8hTTWLBlWz+e35 g+ytJZpNOire5X9MmqkxLBOzapGQFZPX/JNLiy+QspjRtAJ8L2eDHR5472DcZt2d2pCZ T+S5S9Dk8T3txgFJzfZf5LkjJp23KuoUXwXBZkxhJWQKgfEU/eOnj5J1nc2qoozZpzm5 OZxZ3cOqBz7eYUUnFqdlMDZD7GdLQZUwcuWQseO5c2KpagDqhee7KnlPaJDk4CYNOt9k ZEdw== 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 wg13-20020a17090705cd00b0084cdb014b39si3118087ejb.773.2023.01.03.03.49.41; Tue, 03 Jan 2023 03:49:55 -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 S236916AbjACL1W (ORCPT + 61 others); Tue, 3 Jan 2023 06:27:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233146AbjACL1T (ORCPT ); Tue, 3 Jan 2023 06:27:19 -0500 Received: from out29-178.mail.aliyun.com (out29-178.mail.aliyun.com [115.124.29.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0539731F; Tue, 3 Jan 2023 03:27:15 -0800 (PST) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1034973|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.265725-0.00146619-0.732809;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_---.QjR9KV8_1672745223; Received: from ubuntu-VirtualBox..(mailfrom:wangweidong.a@awinic.com fp:SMTPD_---.QjR9KV8_1672745223) by smtp.aliyun-inc.com; Tue, 03 Jan 2023 19:27:10 +0800 From: wangweidong.a@awinic.com To: krzysztof.kozlowski@linaro.org Cc: alsa-devel@alsa-project.org, broonie@kernel.org, cezary.rojewski@intel.com, ckeepax@opensource.cirrus.com, devicetree@vger.kernel.org, duanyibo@awinic.com, flatmax@flatmax.com, james.schulman@cirrus.com, krzysztof.kozlowski+dt@linaro.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, liweilei@awinic.com, perex@perex.cz, pierre-louis.bossart@linux.intel.com, povik+lin@cutebit.org, rf@opensource.cirrus.com, robh+dt@kernel.org, shumingf@realtek.com, srinivas.kandagatla@linaro.org, stephan@gerhold.net, steve@sk2.org, tanureal@opensource.cirrus.com, tiwai@suse.com, wangweidong.a@awinic.com, yijiangtao@awinic.com, zhaolei@awinic.com, zhuning0077@gmail.com Subject: Re: [PATCH V8 5/5] ASoC: dt-bindings: Add schema for "awinic,aw883xx" Date: Tue, 3 Jan 2023 19:27:03 +0800 Message-Id: <20230103112703.382153-1-wangweidong.a@awinic.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: References: 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 Hi Krzysztof On 30/12/2022 10:34, wangweidong.a@awinic.com wrote: >> From: Weidong Wang >> >> Add a DT schema for describing Awinic AW883xx audio amplifiers. They are >> controlled using I2C. >> >> Signed-off-by: Weidong Wang >> --- >> .../bindings/sound/awinic,aw883xx.yaml | 49 +++++++++++++++++++ >> 1 file changed, 49 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/sound/awinic,aw883xx.yaml >> >> diff --git a/Documentation/devicetree/bindings/sound/awinic,aw883xx.yaml b/Documentation/devicetree/bindings/sound/awinic,aw883xx.yaml >> new file mode 100644 >> index 000000000000..b677427ebcd1 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/sound/awinic,aw883xx.yaml >> @@ -0,0 +1,49 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/sound/awinic,aw883xx.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Awinic AW883xx Smart Audio Amplifier >> + >> +maintainers: >> + - Stephan Weidong Wang >> + >> +description: >> + The Awinic AW883XX 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,aw883xx > Now the question what does "xx" stand for? I cannot find such product on > awinic website: > https://www.awinic.com/En/Index/queryAll/wd/aw883xx.html xx represents our company's aw88394 and aw88395 chips,Aw88395 chips can be found on https://www.awinic.com/cn/detail/index/catid/229/id/48/title/AW88395CSR.html The aw88394 chip will be available on the website in the near future. >> + >> + reg: >> + maxItems: 1 >> + >> + reset-gpios: >> + maxItems: 1 >> + > Why there is no sound-dai-cells? I'll add sound-dai-cells in patch v8 >> + sound-name-prefix: true > Drop it. I will modify it on patch v8 >> + >> +required: >> + - compatible >> + - reg >> + - reset-gpios >> + >> +additionalProperties: false > Instead: > unevaluatedProperties: false > unless this is not a codec and sound-dai-cells cannot be used? I will modify it on patch v8 >> + >> +examples: >> + - | >> + i2c { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + audio-codec@34 { >> + compatible = "awinic,aw883xx"; >> + reg = <0x34>; >> + reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>; > Does not look like you tested the bindings. Please run `make > dt_binding_check` (see > Documentation/devicetree/bindings/writing-schema.rst for instructions). I will modify it on patch v8 Best regards, Weidong Wang