Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1820578rdh; Sat, 25 Nov 2023 04:25:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHp3KTUFE9YQtTd328mDGRNSW0reaYOeKAxgdUoiJLq+gOMPQjuGJ5DkJtZ4spdI1ajp9d X-Received: by 2002:a05:622a:13d0:b0:41c:c045:2c86 with SMTP id p16-20020a05622a13d000b0041cc0452c86mr16451141qtk.31.1700915132758; Sat, 25 Nov 2023 04:25:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700915132; cv=none; d=google.com; s=arc-20160816; b=rom+D9YMtlb4f/IMEPmH8HvPVrlVdPMkhDTw9il16SlnEGxOMH5PqyRUEx6jS8BcoD NE0yQZxKwZYxfi4NJErsUP6Le7aU6e05/KxuKVNOlyuJaL+xrENhXrIUH6ON9uqy16r1 wqEzukgwA3WXZBz0n+Ft9ZJ7Nx1Lpbhlc7lBibbPahywtoOuoARwDZ92r+oxbf9u9Dav 168w5Qem6AIa+XHsSA26O6jqFZjklTDOpYD38eJnuF5L1kr+4DTrIrL+oyxty8hxkeAA xHHF5yIc41Qtqiu+PMi5UYBHwxu+zms62fcr3M6gTWHjL7/dZvu2jAY50TPVA2i59GK/ 6Llw== 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=kajzdrnI3meVW9puR7qHtR22NCWtdRpdvOoDYNC5ZGw=; fh=ZFYSFAuHJQtDbMYaXCsCZ4HPx43FRBZXxTaBaox+6BI=; b=NyCY/125W2Hvwc1Qp1CUHeHHXMBbHobLpzlTqJeZxd3LWPxiyYJ1/IgzOYtv9vFoEZ HbtlMHbjDdjJABn6ZvV4PW6bOf1gMCZ8qCucy89zwLd3F9TkV1nS7wNJDdGoJKVHLwVS lcgR/3A3HSLCzkLf+q4A33JyHNcCjMBe4K0o4z2hI0fooBUvn3iSwh37FmjV/ZhJhcNQ BbTsvIjkFLYhWCn4bnT3GIIn9bHEHzFujtQo29eOSVnmF2yP90Eo9pX9VMaMEc2ZNssa IGuy8eX5pbtyChTlmXklGq13YL0SOK56TrNA4mKofQmIRple+kD2wbx5vI3n+Fs7zVAt ZpFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b="b3JDi/QH"; spf=pass (google.com: domain of linux-wireless+bounces-70-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-70-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. [147.75.199.223]) by mx.google.com with ESMTPS id z8-20020a05622a028800b00403b3e135f6si5306001qtw.785.2023.11.25.04.25.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 04:25:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-70-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b="b3JDi/QH"; spf=pass (google.com: domain of linux-wireless+bounces-70-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-70-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 637941C209D5 for ; Sat, 25 Nov 2023 12:25:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 201A8FBF7; Sat, 25 Nov 2023 12:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="b3JDi/QH" 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 162CBBB; Sat, 25 Nov 2023 04:25:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1700915123; bh=/neb3ai8t+JZrai5HMokEXT4feRyamGmrHQtOs/DwgY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=b3JDi/QHwcg4Y2Gx9dp9m8udMhODcQr0cSVQQ4mfzARcHgUVwIyHP8dDL0uuVnNvC cnB8MFiKKDYpPQApdqCko/NBmsLOipd5yNgAZyywRw8lqGDRAXX/tnjycOTV2s7ynU A5xGSRLZKUahHpD7z2gQKIZUDYl0+MjSvCa31xyw= From: Luca Weiss To: Loic Poulain , Stephan Gerhold Cc: 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: Sat, 25 Nov 2023 13:25:22 +0100 Message-ID: <1868698.tdWV9SEqCh@z3ntu.xyz> In-Reply-To: References: <20231015-fp3-wcnss-v1-0-1b311335e931@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, 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.yaml > > > > +++ b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml > > > > > > > > @@ -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. Regards Luca > > Thanks, > Stephan