Message ID | 20231015-fp3-wcnss-v1-1-1b311335e931@z3ntu.xyz |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp3081427vqb; Sun, 15 Oct 2023 13:04:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFE68fGdot86ufbBrNlBxYiTB4TDG8BTX4NFR+2fpRdWcr18bZ2thhPD7iY9itSxncJhK1R X-Received: by 2002:a05:6a21:a5a0:b0:15d:a247:d20c with SMTP id gd32-20020a056a21a5a000b0015da247d20cmr43211016pzc.6.1697400285604; Sun, 15 Oct 2023 13:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697400285; cv=none; d=google.com; s=arc-20160816; b=liYu4AhoGqganDX8XO2gb6IVYE+lC5X5sfZGawGitMa310/IN4A+11CIQcXITRiLYI ZwKoJRIyFa0cb1bJwY9514pW+J/TZGYakl+/KdUyFrJQ0PWuk4R8lwiKXI5UCNeDzhhU 5zgjU9eElRnyru00gFRNy+zmDYr2XYms80AZ7vnk82+WGeeosPvgPL+eMJD1xht3YM6U SKrlno4LpTIIIsD9eGynd+JxdkTwVE5dw7eVU+jfjPBQdbCgFBaRqKvK/hWuIQ+zrvrp dhfFXyZ5AReC42BP3pf9DtapRfjQuxOTEGcASF03UvWo2Fnoy5fBi1tKlDKDfA5RlV0T Dpvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=xGCnGtF735+lRNmvpsrnwQcXurAuO7aewd70+4kzK/w=; fh=bnVlws2G5v6X2y1GNW0WSdGsCq/qDeexOOT5gNpb8Hc=; b=hF+Kq/6qxsCv3RqFSDXAN1kg7wYmIe1E21E9LBtJzusX4mIPXQKMhgZgZo+sWvmGgc R526ciz2bxJswml6VhI8yJRwpB9tfa0Y8Nx0NkE2Gx3gIfDMUzTpLq9QwTCvkjTFoSpt 2l//SIa2oO5B3BGvoq3MnGqqVtV+EapZl0oazdE3Shf8CyTbLDnI0KuaijwSNd/LCRC+ hcqaARJhtrWVkzja/nDJgLSN4ikVxDmNWGKrFuZGbBJUkW5ujbfmVuNJLCBowaC67smN uI5dbhP1N1kYwaVYyowpYAsUhGh14W9LuiClmfgoCo+kPd1LdYR1yne74lJQOEaL1T8W Akbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=wCMCKUVt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id t10-20020a63b70a000000b00565fb7714a5si1992889pgf.800.2023.10.15.13.04.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 13:04:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=wCMCKUVt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 9A9CF8060CA5; Sun, 15 Oct 2023 13:04:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231133AbjJOUEN (ORCPT <rfc822;hjfbswb@gmail.com> + 19 others); Sun, 15 Oct 2023 16:04:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230417AbjJOUEH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 15 Oct 2023 16:04:07 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B89ED9; Sun, 15 Oct 2023 13:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1697400213; bh=UBcuPPvCkMF5VJX2cM/TeeQFIz6MAcbcTnhTFVt0/f0=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=wCMCKUVtrDwe6X5Bg0nId5QFXMCRKYAZBulQ++9fqc4RZbqaXcXAEJ3pHToYx8aED LCfIvxiV8jkgwvHzkyJAeGWDnDXrVnjh6vP3nrmocf6uFs6O+l8MUms6eq3qQDJBlS wfmuo14ZjcLcv1Iy5UfrQEeHCmg0RKMgnmXepZyg= From: Luca Weiss <luca@z3ntu.xyz> Date: Sun, 15 Oct 2023 22:03:06 +0200 Subject: [PATCH 1/4] dt-bindings: remoteproc: qcom: wcnss: Add WCN3680B compatible MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231015-fp3-wcnss-v1-1-1b311335e931@z3ntu.xyz> References: <20231015-fp3-wcnss-v1-0-1b311335e931@z3ntu.xyz> In-Reply-To: <20231015-fp3-wcnss-v1-0-1b311335e931@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Mathieu Poirier <mathieu.poirier@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Loic Poulain <loic.poulain@linaro.org>, Kalle Valo <kvalo@kernel.org>, Bryan O'Donoghue <bryan.odonoghue@linaro.org>, Stephan Gerhold <stephan.gerhold@kernkonzept.com> Cc: 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, Luca Weiss <luca@z3ntu.xyz> X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=746; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=UBcuPPvCkMF5VJX2cM/TeeQFIz6MAcbcTnhTFVt0/f0=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBlLEWQWYz3VnCBzuywdfmhz0FJE7b161pJE9+zl YZAeemp6A+JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZSxFkAAKCRBy2EO4nU3X VgUoD/957O200UjOLzDFN3HHOTl5/M5HtqlfCK+sAZl73OpKRDMj0Jcp8oMLl0OnrElRbTtpkJW croer+9sw6euIA03ntodsFpkA/HSSMSWV8fsYdsa5hs9Vl1M5KT1E8eskSJriUOML2thUt1uvBY PbB8K5X5pxSssglgqmFNhrYPaJzQz+rWYCiY1k5PQwHYj1SHfSGaPrT+nGYEK7TtyzZtA7vGOwE Os+46TJqIcBEDRjmgNDPR505ZSMESvjZB6tNhgN6bK9bJpb94Ef2uU+8fTXvWaB2ha+NSGQjEZ/ 3O0jTCXwVfd5RitkoJPIPr8JsHmaZnmb4PzhuUa49t72dAuAVmaFKiG81Uvo75et+Q9Vi7UEWrD rpTdYS9lwzQIE7rFG6Hd4xJwe488aEEw1PusLwpksOBnxg31L3PRSw3ARAoObqG8751HWPdwCFB NAqpeCXIxCFEcYnzNDSA5NaMhSCMkEaUjPN7SaItoLNIy9FuCkqDsDGAPAe9+VJF1G53hpHk7ib 44eplItLHmqFYdpY7mkAUQjD1XW2Q3JPf0UtrwxiuKNj6slkNvhTBRLp7KZR2BGcFgiEi/eEdyV ki9H78THtYsJd2h9ziLiE+n0GyDHhK0GGhQjhLftDK+Ri1ruKO7l3K2K7jPLc+9VVANiw+uBku0 dv2y6ikI1jaqFTQ== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 howler.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 (howler.vger.email [0.0.0.0]); Sun, 15 Oct 2023 13:04:43 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779853201562099837 X-GMAIL-MSGID: 1779853201562099837 |
Series |
Add WCN3680B WiFi/Bluetooth and enable it on Fairphone 3
|
|
Commit Message
Luca Weiss
Oct. 15, 2023, 8:03 p.m. UTC
Add a compatible for the iris subnode in the WCNSS PIL.
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
---
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml | 1 +
1 file changed, 1 insertion(+)
Comments
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 <luca@z3ntu.xyz> > --- > 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). Best regards, Krzysztof
On Mon, 16 Oct 2023 at 07:35, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 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 <luca@z3ntu.xyz> > > --- > > 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... Regards, Loic
On Mon, Oct 16, 2023 at 03:16:14PM +0200, Loic Poulain wrote: > On Mon, 16 Oct 2023 at 07:35, Krzysztof Kozlowski > <krzysztof.kozlowski@linaro.org> 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 <luca@z3ntu.xyz> > > > --- > > > 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. Thanks, Stephan
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 > > > > <krzysztof.kozlowski@linaro.org> 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 <luca@z3ntu.xyz> > > > > --- > > > > > > > > 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
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 > > > > > > <krzysztof.kozlowski@linaro.org> 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 <luca@z3ntu.xyz> > > > > > --- > > > > > > > > > > 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. > 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? Thanks, Stephan
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 > > > > > > > > <krzysztof.kozlowski@linaro.org> 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 <luca@z3ntu.xyz> > > > > > > --- > > > > > > > > > > > > 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
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 clocks: minItems: 1