From patchwork Tue Sep 19 01:18:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiYuan Huang X-Patchwork-Id: 141640 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp3062328vqi; Mon, 18 Sep 2023 18:19:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFBXxpmABPj7jtjDGoR2sHJkMO/oQFiMiLmLFMxmM8y59XBEOL3sP3OwVQkP5Cvzz15ZUeZ X-Received: by 2002:a17:90a:f312:b0:273:e42b:34c1 with SMTP id ca18-20020a17090af31200b00273e42b34c1mr7668026pjb.42.1695086344875; Mon, 18 Sep 2023 18:19:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695086344; cv=none; d=google.com; s=arc-20160816; b=Es1BltpwZ93O3RwJN/09rx/07eDGAooz7VnXbKmAKOdeOT2lFNY/hLIUEAsMrZl/Yv lupX5WxFpG4Z5ZsUGSClTHK6xN7bAAfguadT0X9GnCZWN8cApUUwDwnYxQQwEn47nJQR ud3lBv/A8BayeFQxXRCH59SAtHDpTOgg5DQhTgEAfkjPRgidl+8T/3QgHKjroXPw6lsQ 6TtjjUrDvgk78x4ePijs0x7VGVBOZbjImzkKzeD0DfFRxlnSAFyMmYFva4UameJvtP1X 5GpIVlYBakA1avv7Vc+Rl5ZuhDch0OuXwKdTWpK3uj2Scux99NXEExof140ybhNgIybU kyQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Q0XvUZWe8uHb2pbtWErdy3qCQitqA7W7cVXpOLgfZww=; fh=S/7BT6ahIcfhXmla+e9aTZF+35ElAsG0i0hqLHiTnh8=; b=Y/1kJD469aBXJj98zzUNXFXheQVU7VeK/6Fg4PVwRvCnSSzlajo9xqvxa6r76EvJ9B s54rZ2YG1zZ7VSNdbQbfNJpKqPoNJypw8/e2iFkWpiRwd73BceTAmuKUAzekjo1JVsjF 0dRvqUKQF/K/m+SYs5WMKtHkWBWrI4UyCqkdxJGIoy+tcb6HXfNYDvkg5V4lPyM6kPZf 4XKqIGquo93FMI97xWRVmxL1rKEPA2bNvtxRbYpWEKztN4bv6jDx3XPgW2Vq8KB6m3iR GJU1guaV0Wi6n32nAwGyWLF52mHjhGMTpiJzOSmXNPGFFRXrr6WqrIE6og+pIDAVyvZV y5Pw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id e7-20020a17090ac20700b0027465340295si8996547pjt.60.2023.09.18.18.19.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 18:19:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 24803825CD1C; Mon, 18 Sep 2023 18:19:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230430AbjISBTF (ORCPT + 25 others); Mon, 18 Sep 2023 21:19:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230427AbjISBTE (ORCPT ); Mon, 18 Sep 2023 21:19:04 -0400 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5C46D10D; Mon, 18 Sep 2023 18:18:56 -0700 (PDT) X-MailGates: (SIP:2,PASS,NONE)(compute_score:DELIVER,40,3) Received: from 192.168.10.46 by mg.richtek.com with MailGates ESMTPS Server V6.0(1978116:0:AUTH_RELAY) (envelope-from ) (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256/256); Tue, 19 Sep 2023 09:18:22 +0800 (CST) Received: from ex4.rt.l (192.168.10.47) by ex3.rt.l (192.168.10.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Tue, 19 Sep 2023 09:18:22 +0800 Received: from linuxcarl2.richtek.com (192.168.10.154) by ex4.rt.l (192.168.10.45) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Tue, 19 Sep 2023 09:18:22 +0800 From: To: Mark Brown , Krzysztof Kozlowski , Conor Dooley CC: Liam Girdwood , Rob Herring , Jaroslav Kysela , Takashi Iwai , ChiYuan Huang , Allen Lin , , , Subject: [PATCH v2 1/2] ASoC: dt-bindings: Add Richtek rtq9128 audio amplifier Date: Tue, 19 Sep 2023 09:18:20 +0800 Message-ID: <1695086301-10376-2-git-send-email-cy_huang@richtek.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1695086301-10376-1-git-send-email-cy_huang@richtek.com> References: <1695086301-10376-1-git-send-email-cy_huang@richtek.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 18 Sep 2023 18:19:04 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777426859277323922 X-GMAIL-MSGID: 1777426859277323922 From: ChiYuan Huang Create richtek,rtq9128.yaml for rtq9128 amplifier. Signed-off-by: ChiYuan Huang Reviewed-by: Krzysztof Kozlowski --- v2 - Dual license - Add $ref for dai-common.yaml - Remove delimiter '|' in head of description --- .../bindings/sound/richtek,rtq9128.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/richtek,rtq9128.yaml diff --git a/Documentation/devicetree/bindings/sound/richtek,rtq9128.yaml b/Documentation/devicetree/bindings/sound/richtek,rtq9128.yaml new file mode 100644 index 000000000000..d117f08fff30 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/richtek,rtq9128.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/richtek,rtq9128.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Richtek RTQ9128 Automative Audio Power Amplifier + +maintainers: + - ChiYuan Huang + +description: + The RTQ9128 is a ultra-low output noise, high-efficiency, four-channel + class-D audio power amplifier and delivering 4x75W into 4OHm at 10% + THD+N from a 25V supply in automotive applications. + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + enum: + - richtek,rtq9128 + + reg: + maxItems: 1 + + enable-gpios: + maxItems: 1 + + '#sound-dai-cells': + const: 0 + +required: + - compatible + - reg + - '#sound-dai-cells' + +unevaluatedProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + speaker@1a { + compatible = "richtek,rtq9128"; + reg = <0x1a>; + enable-gpios = <&gpio 26 GPIO_ACTIVE_HIGH>; + #sound-dai-cells = <0>; + }; + };