Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3371899rdh; Mon, 27 Nov 2023 12:27:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IFim8g+E1UQ7UzhJChRnbuR2py4jizFF2BkwuyeHoyFW/RYe4TiRzedQav0kYSi05Lsq2Uz X-Received: by 2002:a05:6358:9141:b0:16b:fa63:4f44 with SMTP id r1-20020a056358914100b0016bfa634f44mr12886535rwr.10.1701116864517; Mon, 27 Nov 2023 12:27:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701116864; cv=none; d=google.com; s=arc-20160816; b=ubJIpQW4PcKfiwwaoQ7PhyBQnlneECGpIUHh6hTTx6E3dqsT9cQMxIf5BDeCcpOj2C B3LFiL7HRopZ1iac7OV2GHOYg9dwiQXQf6+lYc+Cvn8CQETJP8BLMzggohtXQJVu3Udr AmMRAmlfUCvVcNBwcJfYVzDtN2nMBkoZD6hcBbI89QwZk+jIiHpdb/durn5XiZRBzn9d JLx3MfL38gFIJpimfwV8vALIDdw82neOtsHFKIbA/mTtdTm75jT90O4ld1mlBd1Z5/mb V+hrfpq4Mu0t5tTB3LZVeDVN+ssW1LjHLop6mBKR3+KQclVxDf5jMudBuDllfTBGqraj 2pLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=BS4ds+Iz1K6KP/meGH5OPISDKCzeEltOs+4j28wW7u8=; fh=ovgJRjuHgrQBR8NJmGbwHNxgPKoN3K7uRR5DtpG0bck=; b=H2n98rDtBpD7xHz2jxQmpgZn+mqKIt3EaOuJEKOlhMGUzjaTaQir+dhAr3kg0Lt2Kn 4Iz5uP0MKfdGJ/RZEvx4vrWQkSoUPvFEu+mP3fknqpudymTOFxDkbNSyy/pC4DFMZ1FS K3p8DZ4xgLHrKOqP2E9nNw1E0wGE2jAZRY0VsqbjPZetOlvydCoz2jWbfkpf7pyeiauN YfITakfOa08SJdHj4BWAjfsG8rSH46tElZ/pACeyUWpaM5/iISCSn5DhahLrqtapKFxY HrY0aPax75Ebo3Q+wdQ/wXILdVgVMrXgK4gVoJ/vKFurFl6/L1rDbFpkZZapvYTlG+n9 P+yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=CITmsuf4; spf=pass (google.com: domain of linux-wireless+bounces-128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-128-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h19-20020a67c193000000b00462eb037860si1659308vsj.389.2023.11.27.12.27.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 12:27:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=CITmsuf4; spf=pass (google.com: domain of linux-wireless+bounces-128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-128-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 41DF51C20DDD for ; Mon, 27 Nov 2023 20:27:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F015046449; Mon, 27 Nov 2023 20:27:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="CITmsuf4" X-Original-To: linux-wireless@vger.kernel.org Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2987E19A6; Mon, 27 Nov 2023 12:27:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1701116852; bh=wjGIuleQ8kD0z2aVCMJjHMNPVmJYR139BLY4d6XpI1Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=CITmsuf4OwScTPbofNMOSgAtZ0drI/A4I02RxAI8Q9XCGQdfw8Gjn+WBillie3caD E5iR5ev6U/j/hvZOmRcTns+y0IavwYPaRysGzBKB6OUZwCyRkp36FWeFNF1qhkWbRg GE9GZ06SNeLT41ez/Go5UlAPQVoL/XsYOlZYg24s= From: Luca Weiss To: Stephan Gerhold Cc: Loic Poulain , Krzysztof Kozlowski , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kalle Valo , Bryan O'Donoghue , Stephan Gerhold , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Subject: Re: [PATCH 1/4] dt-bindings: remoteproc: qcom: wcnss: Add WCN3680B compatible Date: Mon, 27 Nov 2023 21:27:30 +0100 Message-ID: <5919350.DvuYhMxLoT@z3ntu.xyz> In-Reply-To: References: <20231015-fp3-wcnss-v1-0-1b311335e931@z3ntu.xyz> <1868698.tdWV9SEqCh@z3ntu.xyz> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Montag, 27. November 2023 21:07:28 CET Stephan Gerhold wrote: > On Sat, Nov 25, 2023 at 01:25:22PM +0100, Luca Weiss wrote: > > On Montag, 16. Oktober 2023 16:44:28 CET Stephan Gerhold wrote: > > > On Mon, Oct 16, 2023 at 03:16:14PM +0200, Loic Poulain wrote: > > > > On Mon, 16 Oct 2023 at 07:35, Krzysztof Kozlowski > > > > > > > > wrote: > > > > > On 15/10/2023 22:03, Luca Weiss wrote: > > > > > > Add a compatible for the iris subnode in the WCNSS PIL. > > > > > > > > > > > > Signed-off-by: Luca Weiss > > > > > > --- > > > > > > > > > > > > Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml > > > > > > | 1 > > > > > > + > > > > > > 1 file changed, 1 insertion(+) > > > > > > > > > > > > diff --git > > > > > > a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml > > > > > > b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml > > > > > > index 45eb42bd3c2c..0e5e0b7a0610 100644 > > > > > > --- > > > > > > a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yam > > > > > > l > > > > > > +++ > > > > > > b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yam > > > > > > l > > > > > > > > > > > > @@ -111,6 +111,7 @@ properties: > > > > > > - qcom,wcn3660 > > > > > > - qcom,wcn3660b > > > > > > - qcom,wcn3680 > > > > > > > > > > > > + - qcom,wcn3680b > > > > > > > > > > Looks like this should be made as compatible with qcom,wcn3680 (so > > > > > with > > > > > fallback). > > > > > > > > Yes, agree, let's do a regular fallback as there is nothing 'b' > > > > specific in the driver: > > > > `compatible = "qcom,wcn3680b", "qcom,wcn3680";` > > > > > > > > And yes, we should also have done that for qcom,wcn3660b... > > > > > > I don't think this would have worked properly for qcom,wcn3660b: > > > - It's not compatible with "qcom,wcn3660", because they have different > > > > > > regulator voltage requirements. wcn3660(a?) needs vddpa with > > > 2.9-3.0V, but wcn3660b needs 3.3V. That's why wcn3660b uses the > > > wcn3680_data in qcom_wcnss.iris.c. Otherwise if you would run an > > > older kernel that knows "qcom,wcn3660" but not "qcom,wcn3660b" it > > > would apply the wrong voltage. > > > > > > - It's not compatible with "qcom,wcn3680" either because that is used > > > > > > as indication if 802.11ac is supported (wcn3660b doesn't). > > > > > > The main question here is: What does the current "qcom,wcn3680" > > > compatible actually represent? It's defined with vddpa = 3.3V in the > > > > > > driver, which would suggest that: > > > 1. It's actually meant to represent WCN3680B, which needs 3.3V vddpa > > > > > > like WCN3660B, or > > > > > > 2. WCN3680(A?) has different requirements than WCN3660(A?) and also > > > > > > needs 3.3V vddpa. But then what is the difference between > > > WCN3680(A?) and WCN3680B? Is there even a variant without ...B? > > > > > > There is public documentation for WCN3660B and WCN3680B but the non-B > > > variants are shrouded in mystery. > > > > Hi Stephan (and everyone), > > > > Do you have a suggestion how to move this patchset forward? Is the > > fallback > > compatible that was suggested okay for the wcn3680b situation? > > > > compatible = "qcom,wcn3680b", "qcom,wcn3680"; > > > > If so, I'll make v2 with that implemented. > > Personally, I would just go with what exists already and use the > existing "qcom,wcn3680" compatible as-is. No one has provided evidence > that there is actually something like a WCN3680(A), without a 'B' at the > end. Also, all existing users of the "qcom,wcn3680" compatible upstream > actually seem to refer to WCN3680B (I'm quite sure apq8039-t2 has > WCN3680B, MSM8974 isn't entirely clear but iirc you mentioned there was > some schematic of a MSM8974 device which says WCN3680B as well). > > It would be nice to have the compatible perfectly correct and complete, > but I see no point to extend it with additional information that we > can't properly verify. > > Or do you actually need a different compatible to customize something in > the driver? No it should be fine with qcom,wcn3680. I'll send v2 in the coming days then, thanks for your input! Regards Luca > > Thanks, > Stephan