Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2305347rdb; Mon, 25 Dec 2023 05:18:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IHhGyh35RTF5ttDThQr1W44CdcoPzOMnCc7oDuXgfmevovbV2uZD/u5Ql0xeK4c9tw94jXi X-Received: by 2002:a17:907:86a3:b0:a20:6e5:e034 with SMTP id qa35-20020a17090786a300b00a2006e5e034mr7996476ejc.50.1703510308011; Mon, 25 Dec 2023 05:18:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703510308; cv=none; d=google.com; s=arc-20160816; b=m/jQEBvPs9Mtj3OJSPWziyYH+5gNmCCeKB83opBzr4Rry3dcxok1zHhtdpb/i9TQ3Z fgwKs+ONoPHKioujr6DerfG8AWf0pXf84I45ZQ1SWmqI5O2ldmV6V7t9uBIFkMXqqqll hnD4UG77Nr+ZLam3EmY4AfXvjjo8zeMqQ/zT7BqDF/RwEcWcGv0efdTFwFTafHCzfELA l343BsUOZIPv6wA7T1QAAbu8XCbEQ64DgCFPXTP15rixjMPSzq3S+7G3J83pZLDWfEsJ CCOguXoZll6HtPHArVCHa+ZJ1owPheoTo8prm7cXt2PRiOc83KRQJRfsXsoU5W4KIdH6 go+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=gB2sJklVLsEde4cZmwju8ryKiVUx7PI57luEqbVUE6Q=; fh=RMcur3Cu6uw3rEjgZLG0Kkzp6YyiaM1p3CYqw/jIQ7w=; b=ZsPuc9fmhrBVbkkul9uSVlNjPspS9RAmM2dZdJrMEXxdSEtaKWXLSxDfw/zTT/muce kkRTzjRj9R7w+6xel2IJ1miRV9PM7D/lK4NyRx+2ySuQMQ0pDOfmUYu3rrQD2V6I7TbZ 2d3r80FGBoGyYsSlxs7F8lsQYk2+YkwNAe+5mKwFfyTHIzU8qk+SjvC0EFtwEoIamfQi 70+Gu1MizdIMnkf4pco1KFcuqdiiz7S72WfX90wM6vFvXxcTPOkRhpyBaBf7URSUUrG0 ZMZ5wQ/sKiF7qJKUfxAEfDaGq97EPgBSwmiEcQv9GGT9uS1WYS6tfFFP7cSpDKBbKc7J IA2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SQaPkDWM; spf=pass (google.com: domain of linux-kernel+bounces-11060-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11060-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v10-20020a1709063bca00b00a234cab6d6esi4233606ejf.715.2023.12.25.05.18.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 05:18:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11060-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SQaPkDWM; spf=pass (google.com: domain of linux-kernel+bounces-11060-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11060-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7DCB31F221E4 for ; Mon, 25 Dec 2023 13:18:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 500EC51C55; Mon, 25 Dec 2023 13:18:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="SQaPkDWM" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B122151C35 for ; Mon, 25 Dec 2023 13:18:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a26db3be219so226848266b.0 for ; Mon, 25 Dec 2023 05:18:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703510295; x=1704115095; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=gB2sJklVLsEde4cZmwju8ryKiVUx7PI57luEqbVUE6Q=; b=SQaPkDWMOPH4lQWNs1d2uGB71CHvqBEc90U1bcM4uPhyu36wXjOO1r+gDjJaKh0t5z eomIiVPbvZgOTXni07moCShZGvkoeAyFuEEzadUaNA2A7Ji8vC0kINfOpeTNvQ/B2IW3 TkVry67mYRrpO9/OGZg/ez5hBAgTOpJGVHARyyxcrIrv9FXcNTl4BP79chRhOc8vTYuE xLuKKxskGixgjFCOD9dnr/CwV8m3dS1o0vfGJG/hl3/9Ufy2qonkR/1bpLxtbH5ns0P0 Eb5U7oYLsB60BTleSZVdNdyoeiUe6IjtZm/mXgsElJf7XaZflgAQxtcr12uckwWuOfWl Jyqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703510295; x=1704115095; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gB2sJklVLsEde4cZmwju8ryKiVUx7PI57luEqbVUE6Q=; b=ur7qWezMdpVT2fuoa8Ha1FnTJvDsmOj/CpB4RHsFs5tH79iEQnQtb45Ll43fe7jUG8 DfZtzDGKI+prBwVI68pS7QgEUfvW1F8Fk+By8cQVf9pTlFDBxvLZ7No/Af1yi4I5EZOK iRnBITdubEI+LqYfgOkyzGOVAe7HKnO6aWDlUn6Y4dS6658C4Vrqa9XPHdheJiogg96w Spf8v038Movuxl9ENBPVdkK0zmKMU/RrS1NTokZp27UibGJGywYdf+iHPLqaATn2gWIa SLLVd04EOqe/c5wJWUOX070YDcA4ZxuZTfAyvzcqn9lC9OiRfc7TuQrOt1rWAmQMkhXG EpRw== X-Gm-Message-State: AOJu0YwSqYwF190e6ItsBNIOBjwiOG3SrRyd9Hz/BjyaDO+yRlP0HblV klg5DjwPdMHvruUDP3Ozz/BYkUlDoO2frw== X-Received: by 2002:a17:906:3ad1:b0:a26:9876:ae7f with SMTP id z17-20020a1709063ad100b00a269876ae7fmr5216806ejd.49.1703510294968; Mon, 25 Dec 2023 05:18:14 -0800 (PST) Received: from [192.168.0.22] ([78.10.206.178]) by smtp.gmail.com with ESMTPSA id p10-20020a170907910a00b00a26aaa47cc0sm4287343ejq.129.2023.12.25.05.18.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Dec 2023 05:18:14 -0800 (PST) Message-ID: <954a2ab8-3931-4022-a004-6a560c1a6a25@linaro.org> Date: Mon, 25 Dec 2023 14:18:13 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 5/5] ASoC: dt-bindings: Add tas2563 into ti,ta2781.yaml to enable DSP mode Content-Language: en-US To: Shenghao Ding , broonie@kernel.org, conor+dt@kernel.org Cc: robh+dt@kernel.org, andriy.shevchenko@linux.intel.com, kevin-lu@ti.com, baojun.xu@ti.com, devicetree@vger.kernel.org, lgirdwood@gmail.com, perex@perex.cz, pierre-louis.bossart@linux.intel.com, 13916275206@139.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, liam.r.girdwood@intel.com, soyer@irl.hu, tiwai@suse.de, peeyush@ti.com, navada@ti.com References: <20231225053932.1138-1-shenghao-ding@ti.com> <20231225053932.1138-5-shenghao-ding@ti.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC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X47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231225053932.1138-5-shenghao-ding@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 25/12/2023 06:39, Shenghao Ding wrote: > Move tas2563 from tas2562.yaml to tas2781.yaml, because tas2563 only work > in bypass-DSP mode with tas2562 driver. In oder to enable DSP mode for > tas2563, it has been moved to tas2781 driver. As to the hardware part, > such as register setting and DSP firmware, all these are stored in the > binary firmware. What tas2781 drivder dooes is to parse the firmware and > download them to the tas2781 or tas2563, then power on tas2781 or tas2563. > So, tas2781 driver can be resued as tas2563 driver. Only attention will be > paid to downloading corresponding firmware. > > Signed-off-by: Shenghao Ding > > --- > Change in v3: > - Add devicetree list and other list of necessary people and lists to CC > - Express Compatibility in the bindings Where? > - Add more comments on why move tas2563 to tas2781 driver > - Provide rationale in terms of bindings and hardware, not in terms of driver. > Or at least not only. > --- > .../devicetree/bindings/sound/ti,tas2781.yaml | 66 ++++++++++++++----- > 1 file changed, 51 insertions(+), 15 deletions(-) > > diff --git a/Documentation/devicetree/bindings/sound/ti,tas2781.yaml b/Documentation/devicetree/bindings/sound/ti,tas2781.yaml > index a69e6c223308..bbe8e5f2c013 100644 > --- a/Documentation/devicetree/bindings/sound/ti,tas2781.yaml > +++ b/Documentation/devicetree/bindings/sound/ti,tas2781.yaml > @@ -5,36 +5,72 @@ > $id: http://devicetree.org/schemas/sound/ti,tas2781.yaml# > $schema: http://devicetree.org/meta-schemas/core.yaml# > > -title: Texas Instruments TAS2781 SmartAMP > +title: Texas Instruments TAS2781/TAS2563 SmartAMP > > maintainers: > - Shenghao Ding > > 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: > - $ref: dai-common.yaml# > + - if: > + properties: > + compatible: > + contains: > + enum: > + - ti,tas2781 > + then: > + properties: > + reg: > + description: > + I2C address, in multiple AMP case, all the i2c address > + aggregate as one Audio Device to support multiple audio slots. > + maxItems: 8 > + minItems: 1 > + items: > + minimum: 0x38 > + maximum: 0x3f > + else: How this else is possible? Please show me any DTS which triggers this else case. > + properties: > + reg: > + description: > + I2C address, in multiple AMP case, all the i2c address > + aggregate as one Audio Device to support multiple audio slots. > + maxItems: 4 > + minItems: 1 > + items: > + minimum: 0x4c > + maximum: 0x4f > > properties: > compatible: > + description: | > + ti,tas2781: 24-V Class-D Amplifier with Real Time Integrated Speaker > + Protection and Audio Processing, 16/20/24/32bit stereo I2S or > + multichannel TDM. > + > + ti,tas2563: 6.1-W Boosted Class-D Audio Amplifier With Integrated > + DSP and IV Sense, 16/20/24/32bit stereo I2S or multichannel TDM. > enum: > - ti,tas2781 > + - ti,tas2563 Still nothing improved. Where is the fallback? > + # Tas781 driver can support both tas2563 and tas2781, because the > + # hardware part in the driver code, such as register setting and DSP > + # firmware, all these are stored in the binary firmware. What drivder > + # dooes is to parse the firmware and download it to the tas2781 or > + # tas2563, then control tas2781 or tas2563 to power on/off or switch > + # different dsp params. So, tas2781 driver can be resued as tas2563 > + # driver. Only attention will be paid to downloading corresponding > + # firmware. Don't write useless driver description and implement proper list of two compatibles using one as fallback for another. I already pointed you to example-schema which gives you nice example for this. It is third try not doing what I asked you. Probably we misunderstand each other, then please answer: 1. Please find example-schema.yaml and share whether this succeeded or not. 2. Open the example-schema.yaml in your editor. 3. Read the section about compatibles. You need oneOf and items, just like it is there. Now, please confirm that you did all these steps before you send v4 with more test. > > - reg: > - description: > - I2C address, in multiple tas2781s case, all the i2c address > - aggregate as one Audio Device to support multiple audio slots. > - maxItems: 8 > - minItems: 1 > - items: > - minimum: 0x38 > - maximum: 0x3f > + reg: true OK, you clearly just keep ignoring my comments. This is a friendly reminder during the review process. It seems my or other reviewer's previous comments were not fully addressed. Maybe the feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them. Thank you. Best regards, Krzysztof