Message ID | 20231209080742.1290-3-shenghao-ding@ti.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp5935440vqy; Sat, 9 Dec 2023 00:09:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGlq9T67b/O2Vr6AkRsf6jCedzigeROAm4BtYNvWRdekdA4cXKj/pxQEknk9W6hOTtgJJ/ X-Received: by 2002:a05:6a20:6a1f:b0:190:4b34:577d with SMTP id p31-20020a056a206a1f00b001904b34577dmr1852908pzk.88.1702109379726; Sat, 09 Dec 2023 00:09:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702109379; cv=none; d=google.com; s=arc-20160816; b=l8ogiir9xyM1EQF4rNx5qlPd4CLzueRj1DmKNG53xQ53UJxAcwoxKrdueTL002lFE5 zGm5QSCtfPg0rDz1qn7LBi259rSvBEzv46uXvVsCpcobVHaqQGgij2vMF+z0xn5Tngly fh66LwI6LU1IQZwl0xYH9YzjH93JzeM6vU3KKsFIkJS2Y2G9mOcszUpCUyTLmMmNg7ke 5/1+nmteIjRNGW5NxF0MdI5xDept6QTAGKvfBIqQdaoIOd3Z0rZJJfPaXyd/pgl5hlMo 6n50jGwx6tr5IxS3hh9/6qqf7fsHoGVUReMNY6JGiSMg8tahQ0Ah3Ubb40sqJP5A0OC7 guaA== 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 :dkim-signature; bh=0A5dgG5e8t8hFbkQsmKr04qZPph+V/aEN1MHzvY6hVo=; fh=pZ23y0ItwgH8rYHkMak3ucq+glh8YLYpmfWE4VeFSlg=; b=I8uUr6BFHx4ZfWX0PdBQ+8j97YB61steuunb9YIucCTpJmbTjkblN7nzxDVXeGHpNl XqlhZ4EQqyBdLwpvRijT8NVzqG36KUX3NLP5ZIR6wZW6VOC3ivVTgMjSGamCDs/jx6ae J3nwOJoJqcJzgMtBZxMjdGQ7VGIBUS+l8Q+DL0itfddDJ8UJGhqn5mzdSMAQtQBt+v+j JhwAmACXg4bwvuMuweuWTWoOBZXwfkHEyrr2TL/DKP4xQBiMr2c78YNo3FSq3PTp3EzU 50wWeKZrIfMuSy3JpxnwEBFtzWq1cQ4hOj9rlf94rquI0ci8FikDKV+lNvtYRIn+RYMa NSrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=g+vN7t84; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id l2-20020a170902f68200b001cfd0ddc5absi2881170plg.331.2023.12.09.00.09.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 00:09:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=g+vN7t84; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id DADC0807963D; Sat, 9 Dec 2023 00:09:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229451AbjLIIJX (ORCPT <rfc822;makky5685@gmail.com> + 99 others); Sat, 9 Dec 2023 03:09:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234416AbjLIIJC (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 9 Dec 2023 03:09:02 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B397F1 for <linux-kernel@vger.kernel.org>; Sat, 9 Dec 2023 00:09:07 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3B9882TF054908; Sat, 9 Dec 2023 02:08:02 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1702109282; bh=0A5dgG5e8t8hFbkQsmKr04qZPph+V/aEN1MHzvY6hVo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=g+vN7t846qj5ar33iUK3xG4DCTVpHewbFh+WreOVj0+96UgZuN/xh2pzD9Hy++IJi SNZy0EtiMnxzKMlMCFFMmncwACGZu+FvsMkONh40PZLxVPO/CgT3vw4CZuKwGZzpdj qab+YHefwogK037ppf8Ctp9+nLHTota2DserFPro= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3B9882xl019101 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 9 Dec 2023 02:08:02 -0600 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Sat, 9 Dec 2023 02:08:02 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Sat, 9 Dec 2023 02:08:02 -0600 Received: from LT5CG31242FY.dhcp.ti.com ([10.250.163.83]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3B987lHF122124; Sat, 9 Dec 2023 02:07:58 -0600 From: Shenghao Ding <shenghao-ding@ti.com> To: <broonie@kernel.org> CC: <krzysztof.kozlowski@linaro.org>, <robh+dt@kernel.org>, <andriy.shevchenko@linux.intel.com>, <lgirdwood@gmail.com>, <perex@perex.cz>, <pierre-louis.bossart@linux.intel.com>, <13916275206@139.com>, <alsa-devel@alsa-project.org>, <linux-kernel@vger.kernel.org>, <liam.r.girdwood@intel.com>, <soyer@irl.hu>, <tiwai@suse.de>, Shenghao Ding <shenghao-ding@ti.com> Subject: [PATCH v1 3/3] ASoC: dt-bindings: Add tas2563 into yaml Date: Sat, 9 Dec 2023 16:07:42 +0800 Message-ID: <20231209080742.1290-3-shenghao-ding@ti.com> X-Mailer: git-send-email 2.33.0.windows.2 In-Reply-To: <20231209080742.1290-1-shenghao-ding@ti.com> References: <20231209080742.1290-1-shenghao-ding@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sat, 09 Dec 2023 00:09:37 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784791045177247156 X-GMAIL-MSGID: 1784791045177247156 |
Series |
[v1,1/3] ASoC: tas2781: Add tas2563 into header file
|
|
Commit Message
Ding, Shenghao
Dec. 9, 2023, 8:07 a.m. UTC
Support tas2563.
Signed-off-by: Shenghao Ding <shenghao-ding@ti.com>
---
.../devicetree/bindings/sound/ti,tas2781.yaml | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
Comments
On 09/12/2023 09:07, Shenghao Ding wrote: > Support tas2563. > > Signed-off-by: Shenghao Ding <shenghao-ding@ti.com> > --- > .../devicetree/bindings/sound/ti,tas2781.yaml | 17 ++++++++++------- > 1 file changed, 10 insertions(+), 7 deletions(-) > > diff --git a/Documentation/devicetree/bindings/sound/ti,tas2781.yaml b/Documentation/devicetree/bindings/sound/ti,tas2781.yaml > index a69e6c223308..84e197e15df4 100644 > --- a/Documentation/devicetree/bindings/sound/ti,tas2781.yaml > +++ b/Documentation/devicetree/bindings/sound/ti,tas2781.yaml > @@ -11,11 +11,11 @@ maintainers: > - Shenghao Ding <shenghao-ding@ti.com> > > description: > - The TAS2781 is a mono, digital input Class-D audio amplifier > - optimized for efficiently driving high peak power into small > - loudspeakers. An integrated on-chip DSP supports Texas Instruments > - Smart Amp speaker protection algorithm. The integrated speaker > - voltage and current sense provides for real time > + The TAS2781/TAS2563 is a mono, digital input Class-D audio > + amplifier optimized for efficiently driving high peak power into > + small loudspeakers. An integrated on-chip DSP supports Texas > + Instruments Smart Amp speaker protection algorithm. The > + integrated speaker voltage and current sense provides for real time > monitoring of loudspeaker behavior. > > allOf: > @@ -25,16 +25,19 @@ properties: > compatible: > enum: > - ti,tas2781 > + - ti,tas2563 Looks like devices are compatible, so express it in the bindings with a fallback and drop driver patches. Best regards, Krzysztof
> -----Original Message----- > From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > Sent: Saturday, December 9, 2023 4:13 PM > To: Ding, Shenghao <shenghao-ding@ti.com>; broonie@kernel.org > Cc: robh+dt@kernel.org; andriy.shevchenko@linux.intel.com; > lgirdwood@gmail.com; perex@perex.cz; pierre-louis.bossart@linux.intel.com; > 13916275206@139.com; alsa-devel@alsa-project.org; linux- > kernel@vger.kernel.org; liam.r.girdwood@intel.com; soyer@irl.hu; > tiwai@suse.de > Subject: [EXTERNAL] Re: [PATCH v1 3/3] ASoC: dt-bindings: Add tas2563 into > yaml > > On 09/12/2023 09:07, Shenghao Ding wrote: > > Support tas2563. > > > > Signed-off-by: Shenghao Ding <shenghao-ding@ti.com> > > --- > > .../devicetree/bindings/sound/ti,tas2781.yaml | 17 ++++++++++------- > > 1 file changed, 10 insertions(+), 7 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/sound/ti,tas2781.yaml > > b/Documentation/devicetree/bindings/sound/ti,tas2781.yaml > > index a69e6c223308..84e197e15df4 100644 > > --- a/Documentation/devicetree/bindings/sound/ti,tas2781.yaml > > +++ b/Documentation/devicetree/bindings/sound/ti,tas2781.yaml > > @@ -11,11 +11,11 @@ maintainers: > > - Shenghao Ding <shenghao-ding@ti.com> > > > > description: > > - The TAS2781 is a mono, digital input Class-D audio amplifier > > - optimized for efficiently driving high peak power into small > > - loudspeakers. An integrated on-chip DSP supports Texas Instruments > > - Smart Amp speaker protection algorithm. The integrated speaker > > - voltage and current sense provides for real time > > + The TAS2781/TAS2563 is a mono, digital input Class-D audio > > + amplifier optimized for efficiently driving high peak power into > > + small loudspeakers. An integrated on-chip DSP supports Texas > > + Instruments Smart Amp speaker protection algorithm. The integrated > > + speaker voltage and current sense provides for real time > > monitoring of loudspeaker behavior. > > > > allOf: > > @@ -25,16 +25,19 @@ properties: > > compatible: > > enum: > > - ti,tas2781 > > + - ti,tas2563 > > Looks like devices are compatible, so express it in the bindings with a fallback > and drop driver patches. Exactly. Do you mean combine the three patches into one patch? > > Best regards, > Krzysztof
On 09/12/2023 09:30, Ding, Shenghao wrote: > > >> -----Original Message----- >> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >> Sent: Saturday, December 9, 2023 4:13 PM >> To: Ding, Shenghao <shenghao-ding@ti.com>; broonie@kernel.org >> Cc: robh+dt@kernel.org; andriy.shevchenko@linux.intel.com; >> lgirdwood@gmail.com; perex@perex.cz; pierre-louis.bossart@linux.intel.com; >> 13916275206@139.com; alsa-devel@alsa-project.org; linux- >> kernel@vger.kernel.org; liam.r.girdwood@intel.com; soyer@irl.hu; >> tiwai@suse.de >> Subject: [EXTERNAL] Re: [PATCH v1 3/3] ASoC: dt-bindings: Add tas2563 into >> yaml >> >> On 09/12/2023 09:07, Shenghao Ding wrote: >>> Support tas2563. >>> >>> Signed-off-by: Shenghao Ding <shenghao-ding@ti.com> >>> --- >>> .../devicetree/bindings/sound/ti,tas2781.yaml | 17 ++++++++++------- >>> 1 file changed, 10 insertions(+), 7 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/sound/ti,tas2781.yaml >>> b/Documentation/devicetree/bindings/sound/ti,tas2781.yaml >>> index a69e6c223308..84e197e15df4 100644 >>> --- a/Documentation/devicetree/bindings/sound/ti,tas2781.yaml >>> +++ b/Documentation/devicetree/bindings/sound/ti,tas2781.yaml >>> @@ -11,11 +11,11 @@ maintainers: >>> - Shenghao Ding <shenghao-ding@ti.com> >>> >>> description: >>> - The TAS2781 is a mono, digital input Class-D audio amplifier >>> - optimized for efficiently driving high peak power into small >>> - loudspeakers. An integrated on-chip DSP supports Texas Instruments >>> - Smart Amp speaker protection algorithm. The integrated speaker >>> - voltage and current sense provides for real time >>> + The TAS2781/TAS2563 is a mono, digital input Class-D audio >>> + amplifier optimized for efficiently driving high peak power into >>> + small loudspeakers. An integrated on-chip DSP supports Texas >>> + Instruments Smart Amp speaker protection algorithm. The integrated >>> + speaker voltage and current sense provides for real time >>> monitoring of loudspeaker behavior. >>> >>> allOf: >>> @@ -25,16 +25,19 @@ properties: >>> compatible: >>> enum: >>> - ti,tas2781 >>> + - ti,tas2563 >> >> Looks like devices are compatible, so express it in the bindings with a fallback >> and drop driver patches. > Exactly. Do you mean combine the three patches into one patch? No, driver changes should be dropped - I do not see their value. Compatibility should be expressed in the bindings. Look at example-schema (and hundreds of other bindings). Best regards, Krzysztof
On 09/12/2023 09:07, Shenghao Ding wrote: > Support tas2563. > > Signed-off-by: Shenghao Ding <shenghao-ding@ti.com> > --- > .../devicetree/bindings/sound/ti,tas2781.yaml | 17 ++++++++++------- > 1 file changed, 10 insertions(+), 7 deletions(-) > Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. You missed at least devicetree list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested. Please kindly resend and include all necessary To/Cc entries. Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/sound/ti,tas2781.yaml b/Documentation/devicetree/bindings/sound/ti,tas2781.yaml index a69e6c223308..84e197e15df4 100644 --- a/Documentation/devicetree/bindings/sound/ti,tas2781.yaml +++ b/Documentation/devicetree/bindings/sound/ti,tas2781.yaml @@ -11,11 +11,11 @@ maintainers: - Shenghao Ding <shenghao-ding@ti.com> description: - The TAS2781 is a mono, digital input Class-D audio amplifier - optimized for efficiently driving high peak power into small - loudspeakers. An integrated on-chip DSP supports Texas Instruments - Smart Amp speaker protection algorithm. The integrated speaker - voltage and current sense provides for real time + The TAS2781/TAS2563 is a mono, digital input Class-D audio + amplifier optimized for efficiently driving high peak power into + small loudspeakers. An integrated on-chip DSP supports Texas + Instruments Smart Amp speaker protection algorithm. The + integrated speaker voltage and current sense provides for real time monitoring of loudspeaker behavior. allOf: @@ -25,16 +25,19 @@ properties: compatible: enum: - ti,tas2781 + - ti,tas2563 reg: description: - I2C address, in multiple tas2781s case, all the i2c address + I2C address, in multiple AMP case, all the i2c address aggregate as one Audio Device to support multiple audio slots. + For tas2781, i2c address is from 0x38 to 0x3f; For tas2563, + i2c address is from 0x4e to 0x4f. maxItems: 8 minItems: 1 items: minimum: 0x38 - maximum: 0x3f + maximum: 0x4f reset-gpios: maxItems: 1