From patchwork Mon Sep 18 09:45:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiYuan Huang X-Patchwork-Id: 141339 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp2553036vqi; Mon, 18 Sep 2023 03:27:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFXJAcjJj/vpr3R1h11RSKeiMl9o4dC/v14BnQs16ktcf7j2oRK8dal4jO1VJwJ3WbVBiRu X-Received: by 2002:a05:6a00:18a0:b0:690:41a1:9b6c with SMTP id x32-20020a056a0018a000b0069041a19b6cmr8496633pfh.10.1695032859234; Mon, 18 Sep 2023 03:27:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695032859; cv=none; d=google.com; s=arc-20160816; b=ChRAFiO3J4LcztHXW5lDr+dL4tRFrafKrLCjtLBC0dfEbaX6cHoLeYcwRSCPA0juVm 2SOzmHRGcFfru2ylwcpwC/KyefKsRSaC+iWfqGzjbO1MPL+1rO7YDJI9HL8PM6gdCZzV wIVDK8Zp6/9LkHx9KkAEGEDR2wNOIyVnSsiSnVeTJtY4zTRS3Xed6u2K4V9RX9CNiCvs mTK6UI4MHW4V0uUAI0uRx+jSXMH8yVYqxs7GsIBKaStas60ZpLmi4q02IxB3yrJ4LSjm k7Wt+5waBaYtVth5irH2nFkwU3Y0cKumRCAaJ7fvvdfeTRn0lXMCXxd6qlhRlWNs4Kf0 24LQ== 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=P6DFocHCFDgd+EmFV4UcDeIt/DnYcA67GF0XJmuJ9m0=; fh=S/7BT6ahIcfhXmla+e9aTZF+35ElAsG0i0hqLHiTnh8=; b=K4bGTzVnd+igYmQi2ceHBqDJ1V0vzqln9mDMzINnH7FMNmAFg1Dvu60av6Y9fEw8hi uCE3yx9pOyHnyuJ0vcmHYueqrHcfOsiMFJ5gXR8gTbe5U+6JoIe6ZGC+Sl/yte/arRhc 6bhtSQtRsGjUSi3uaSFNh0PHE44BXX8KnOPyQsqqY31xys0YayGHbrKtPVgHCEWcZd8v HLEI0pTqD1sma7aaY6+UBbj1ovOxbFBoHw4KlTQMU+WzJ6gbeFr7vRVqytX6j9PLzo2E TsMmxZS3b1PRaOL8ycv6JZJmWVUhZzoHKdYuITw2jCsTLKdSGybDDQ8n6cDHcCaqVhMc hHQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id bx8-20020a056a00428800b0068ff00bc807si7918467pfb.14.2023.09.18.03.27.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 03:27:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 47C5680A5F88; Mon, 18 Sep 2023 02:48:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239281AbjIRJre (ORCPT + 27 others); Mon, 18 Sep 2023 05:47:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239361AbjIRJrF (ORCPT ); Mon, 18 Sep 2023 05:47:05 -0400 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 744FD12B; Mon, 18 Sep 2023 02:46:34 -0700 (PDT) X-MailGates: (SIP:2,PASS,NONE)(compute_score:DELIVER,40,3) Received: from 192.168.10.47 by mg.richtek.com with MailGates ESMTPS Server V6.0(1978093:0:AUTH_RELAY) (envelope-from ) (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256/256); Mon, 18 Sep 2023 17:45:51 +0800 (CST) Received: from ex4.rt.l (192.168.10.47) by ex4.rt.l (192.168.10.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Mon, 18 Sep 2023 17:45:50 +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; Mon, 18 Sep 2023 17:45:50 +0800 From: To: Mark Brown , Krzysztof Kozlowski , Conor Dooley CC: Liam Girdwood , Rob Herring , Jaroslav Kysela , Takashi Iwai , ChiYuan Huang , Allen Lin , , , Subject: [PATCH 1/2] ASoC: dt-bindings: Add Richtek rtq9128 audio amplifier Date: Mon, 18 Sep 2023 17:45:40 +0800 Message-ID: <1695030341-20711-2-git-send-email-cy_huang@richtek.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1695030341-20711-1-git-send-email-cy_huang@richtek.com> References: <1695030341-20711-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 (snail.vger.email [0.0.0.0]); Mon, 18 Sep 2023 02:48:07 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777370775835095376 X-GMAIL-MSGID: 1777370775835095376 From: ChiYuan Huang Create richtek,rtq9128.yaml for rtq9128 amplifier. Signed-off-by: ChiYuan Huang --- .../bindings/sound/richtek,rtq9128.yaml | 51 +++++++++++++++++++ 1 file changed, 51 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..a79694c2b169 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/richtek,rtq9128.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0 +%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. + +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>; + }; + };