From patchwork Wed Sep 20 03:50:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiYuan Huang X-Patchwork-Id: 142207 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp3855974vqi; Tue, 19 Sep 2023 20:54:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHhup4rSiCJ1yK5INbgiww7PT4hnSlmTT7w4HpXQjgAz8kY3kjIiPvMg3jeMjuAtcz5WXaa X-Received: by 2002:a05:6870:c1ce:b0:1d6:3b6d:f82f with SMTP id i14-20020a056870c1ce00b001d63b6df82fmr1465192oad.41.1695182065561; Tue, 19 Sep 2023 20:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695182065; cv=none; d=google.com; s=arc-20160816; b=Q9ZbLzOl0citq5l/uD7NNzVluurseHxfRYwEcaE0LGOUz1NluS2rAeHENtmZPRH0UG UHD40Zxb0s46pH/7hbmYGa5vrjeexmwqJPMHktVUntJjx0+BOn39H9m/Lqkt/2yH6v/+ II2rqcxSZPZIouXyiTDvGsbwiy82YAPvFTK3q5xqww70w86mPDchgTi7KCDy+lMxJoNg /NyFsoBCe6CyI1V/SOzgmHU973qdd6tR+vV36AM5iwY0YcccNsQq3MKw5/hfotmKIAul c4bWrUcXGi3u4GB8w/LJVG/y6l9FofPLehQD+mEZjQyKs0ZsXDEGna8FIfuR9Dc+N7OZ kJ1Q== 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=V8cJh68M613XLq952y3WSSe2uDMft4y67UrWolljeSQ=; fh=b2gECp4ioW0IC/c4AE3Hne9Lt73D69qSeso5k1ihEdA=; b=a2LBONBavGa4djSTVlxc6Wbd/Hj4v5/ncxfi+RFId2ox8Cac8hLE+IBylhh/aNd+oP dOuoKWXrGsEF9M+5bSFaj1bTtvwxFYole8QcF3cBdyRvnEiirbOH6twlKroE95oDccCk 6ua6+CQa0MJqIi5erh9o/JCJ4F8tjWCR6H5ZiL/P73o1ajKrJfxLTfj2YFAN2HOFBIAg ITCgMqixh821uMiADm9zXDk/TSRku/ItEeEhdlj1f3ShFKJHnAY29yepxyGbXKnvpxr/ yb90mMVrEaqQ8GMUBqHBvdyrSiMdgbVt85Al234CYi706oPKrO8ypBWPdW3ckYuf1vvB QcCw== 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:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id e10-20020a63690a000000b00573fa8f2827si10591415pgc.340.2023.09.19.20.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 20:54:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id AC82080BC12E; Tue, 19 Sep 2023 20:51:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232496AbjITDvR (ORCPT + 26 others); Tue, 19 Sep 2023 23:51:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231948AbjITDvP (ORCPT ); Tue, 19 Sep 2023 23:51:15 -0400 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9D01FB0; Tue, 19 Sep 2023 20:51:07 -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(1978106:0:AUTH_RELAY) (envelope-from ) (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256/256); Wed, 20 Sep 2023 11:50:36 +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; Wed, 20 Sep 2023 11:50:35 +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; Wed, 20 Sep 2023 11:50:35 +0800 From: To: Mark Brown , Krzysztof Kozlowski , Conor Dooley CC: Liam Girdwood , Rob Herring , Jaroslav Kysela , Takashi Iwai , Pierre-Louis Bossart , ChiYuan Huang , Allen Lin , , , Subject: [PATCH v3 1/2] ASoC: dt-bindings: Add Richtek rtq9128 audio amplifier Date: Wed, 20 Sep 2023 11:50:33 +0800 Message-ID: <1695181834-5809-2-git-send-email-cy_huang@richtek.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1695181834-5809-1-git-send-email-cy_huang@richtek.com> References: <1695181834-5809-1-git-send-email-cy_huang@richtek.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Tue, 19 Sep 2023 20:51:23 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777527229396924225 X-GMAIL-MSGID: 1777527229396924225 From: ChiYuan Huang Create richtek,rtq9128.yaml for rtq9128 amplifier. Signed-off-by: ChiYuan Huang Reviewed-by: Krzysztof Kozlowski --- v3 - Add Reviewed-by tag 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>; + }; + };