Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4093099iog; Tue, 21 Jun 2022 11:51:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uClnk9Gg/eBTB27LJS1M3G9FufYm5527OH2xSDeKG2dXfwPbwo2y5afS0T/zrIrOm+rAFV X-Received: by 2002:a17:903:41d2:b0:16a:2cca:4869 with SMTP id u18-20020a17090341d200b0016a2cca4869mr8733469ple.13.1655837511164; Tue, 21 Jun 2022 11:51:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655837511; cv=none; d=google.com; s=arc-20160816; b=Kok+xOLgTigUzq3K6HrCeU4wZD8uS1jxCxmK6rFM1jfGDCY+ov5xwk3LDugaPAijYB /tUdHMv753kfTO34V8o1w2g7tRRqZMeZh/BgGFm9rmPtGMMxkCr3OZF3/WEIML7q86tU SCrLBb/aBoXRyo3/ihgLN3uc+nQO7EtNpwxHESKV3RlspNsHDyV6xvMS61lmvSz7GoDn JRdirhJKmQXoTtKJWcgzroWHjZ49nnpSDFhVbmt3wICR3DDTLHsNPBSfic5w0b4w3QTL npb9FrPb4ykFlS13gWdPT6Wgk46tKI+me2o0JbIRrKPgKvEX3t+RASq3mlCiZOsEvu6e ADbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=TUwsjMEcTcJGTkqP1tI4ks5+DOl4Jo9qz8wBuhs7k1Q=; b=WFwlAs4LvxOIfw6azmil3IAmFEXuArYt8/MUkLbQmQDgbre48PkHIlxZk6Cj/BB+sk jNWsff887g3ih8hINQHKlr8mBi/KtS8xY7QxZfTGaoLM3wOmFlsYC6rXxejrpmmlOI3/ Uxk2ZpJCSasUgwix4SYT9Ncb72yOVUzJrg11ft585E6oJdRTR47wGRGeIJ7YG0A3iAUz mLWZ/klhuT5jbCSNM/lhz7rcLbPzB4iwNm+gdWL7ugWUGilsu7noJAIhShN1Zgfo/ZNO laJLfgqRl04ZE1u1kNvmvPHBYZ+mQ1fhKQ/H4gwKaWGCFQR4Uf5vI0KOi1eYBi5gXcFo 7/qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q+KB8KiH; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c63-20020a621c42000000b0051bb1890459si9499631pfc.28.2022.06.21.11.51.39; Tue, 21 Jun 2022 11:51:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q+KB8KiH; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245545AbiFUSr5 (ORCPT + 65 others); Tue, 21 Jun 2022 14:47:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbiFUSr4 (ORCPT ); Tue, 21 Jun 2022 14:47:56 -0400 Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A54866264; Tue, 21 Jun 2022 11:47:55 -0700 (PDT) Received: by mail-qv1-xf2c.google.com with SMTP id q4so9637594qvq.8; Tue, 21 Jun 2022 11:47:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TUwsjMEcTcJGTkqP1tI4ks5+DOl4Jo9qz8wBuhs7k1Q=; b=Q+KB8KiHfVZN/IcFhqa6GwDdZVAb/1h5YJpQ4fznMd3FxHLy83GhnTWQ1iWjVerrRQ oIc+S7GlOeG2zMH3AUxQ69u3ZO08rrQGR787XFx7RR3Kw6Fo4484d5rGtoIv49PFSELW 1JJjmO7hszywj4GDpeX//vV2vEkF1mORa19P7KWmna8rzhPDm0vsvm7M1xcuqWOUaRPH 9FxUKMbFmncFHYT+GhagELHCylo+sxgXgrjada7iWE++btcWJCRGrLWNNmNst2Bg7PgT wTCRoHT2XZe5KHRdycaNfciWRGTrb9+NQWDCAymUVmMrzmW3sSyuMrAgMjJWtZOxxPj3 v9BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TUwsjMEcTcJGTkqP1tI4ks5+DOl4Jo9qz8wBuhs7k1Q=; b=lZu9PVACC6j+QoNvYfcUqgNlPSEDtjuUniLKFwdenQkha5/Tyajsef2y0k2Fk7t2mu v24rD9f0AqtxDWBMura+MoHmdSaAv24wz4rfU4Lvz4VYivZepNmuEu7HXRSaZnJVRfva cBHao7ysae25GlhxnJSWIT9VQmxgdd+RmUsdombqDG/Nw8goqUKF4/1pDfyGbZvBRGZ8 dmLmHfNCDmnM8sHQWeoOw+SF3gG/LuLMzBAKVk+et0B5QuaCYjmA5s82BhWM8A92ZmzI AGjsLDmebVRASCT19p1EbWxQzvWGLo1TeAWC1ydVtJq0QAYnDrllizowhN1UMJ6AOqfT rUcg== X-Gm-Message-State: AJIora98QxLiL3t2F2Gn7GYXAqOLi5/xWUnOjtbpeMWOEz6hxiopRSOd q4k8+8jRZOA1YLKaNgPdoCKGcpUheUyRzrsxxhU= X-Received: by 2002:ac8:5d8c:0:b0:306:6efd:7fe1 with SMTP id d12-20020ac85d8c000000b003066efd7fe1mr24286817qtx.318.1655837274765; Tue, 21 Jun 2022 11:47:54 -0700 (PDT) MIME-Version: 1.0 References: <20220621135339.1269409-1-robimarko@gmail.com> In-Reply-To: From: Robert Marko Date: Tue, 21 Jun 2022 20:47:44 +0200 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: net: wireless: ath11k: add new DT entry for board ID To: Krzysztof Kozlowski Cc: Kalle Valo , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, Rob Herring , krzysztof.kozlowski+dt@linaro.org, ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Devicetree List , open list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, 21 Jun 2022 at 17:58, Krzysztof Kozlowski wrote: > > On 21/06/2022 15:53, Robert Marko wrote: > > bus + qmi-chip-id + qmi-board-id and optionally the variant are currently > > used for identifying the correct board data file. > > > > This however is sometimes not enough as all of the IPQ8074 boards that I > > have access to dont have the qmi-board-id properly fused and simply return > > the default value of 0xFF. > > > > So, to provide the correct qmi-board-id add a new DT property that allows > > the qmi-board-id to be overridden from DTS in cases where its not set. > > This is what vendors have been doing in the stock firmwares that were > > shipped on boards I have. > > > > Signed-off-by: Robert Marko > > Thank you for your patch. There is something to discuss/improve. > > > --- > > .../devicetree/bindings/net/wireless/qcom,ath11k.yaml | 8 ++++++++ > > 1 file changed, 8 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml b/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml > > index a677b056f112..fe6aafdab9d4 100644 > > --- a/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml > > +++ b/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml > > @@ -41,6 +41,14 @@ properties: > > * reg > > * reg-names > > > > + qcom,ath11k-board-id: > > The "board" a bit confuses me because in the context of entire system it > means the entire hardware running Qualcomm SoC. This is sometimes > encoded as qcom,board-id property. Hi Krzysztof, I agree that the name is a bit confusing, it's not the same as qcom,board-id AFAIK and QCA as well as vendors are using a similar property in the wifi node to override the default qmi-board-id to the correct one as its rarely properly fused. I assume it would be better-called qcom,ath11k-qmi-board-id as you dont even have to be using a Qualcomm SoC as the same is used by PCI ath11k cards as well. Regards, Robert > > Is your property exactly the same? > > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + description: > > + Board ID to override the one returned by the firmware or the default > > + 0xff if it was not set by the vendor at all. > > + It is used along the ath11k-calibration-variant to mach the correct > > + calibration data from board-2.bin. > > + > > qcom,ath11k-calibration-variant: > > $ref: /schemas/types.yaml#/definitions/string > > description: > > > Best regards, > Krzysztof