Message ID | 20230131140345.6193-2-quic_youghand@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2772610wrn; Tue, 31 Jan 2023 06:13:02 -0800 (PST) X-Google-Smtp-Source: AK7set8gEgsV/KZ9HO8fczt4kNbqfWrVWMhBcZy0MoCvBeiEFBu+6xYog89CiyojSYgUkQ5gd8GA X-Received: by 2002:a05:6a21:900c:b0:be:f077:9dc with SMTP id tq12-20020a056a21900c00b000bef07709dcmr1404220pzb.19.1675174382619; Tue, 31 Jan 2023 06:13:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675174382; cv=none; d=google.com; s=arc-20160816; b=WLAx7P/2Mj3IIMkwh6yAxNzZVpUTEJ99SuTYhuxK+1GaTplcK0p2mKIjckr8f66q1d xaRt3zuzek9eE+SwcmkR72Adu51/w9dQmzXU6+omPOWAq0cSnRGM3ODDF+tEnl5Ec9nu NRRBGJL+2Mqws9NJVKX4gFrKRte/mhuVTxP1yb2CgN0sHMXOt5lEvISJnn5OM/KuIWAD gJG9ShWhXG+ti5p1W4Ky+ljh6GyH0eHn9vxJXZ0jQ+Air6B3Ut9W2PpC8D3AMrSgjoiv LV/TbGVKla409ow55+v2WQwnvnHI7uusMBMMWETRN9qJV0wJPjMbJZqn3jQxiZ/6lMJN 4X+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Egmllpt2UyN9IAHOZOSTcs5pT7E8UwSPc2rT9k6nNbI=; b=z0SyI/XhWXb2EniWghRMJPXYPSlRwoyYY6xiuDYH1HEWsVVesaKh198U/Wc0zHWwaj 8XBIKENmCpo1klG6xhjIk1K+eAQ2NH8DuA2KItZmg4ULv74/whCUYeywyxofeY/gjKkZ RiioNrXMtF0SSzDpin3ImwutONCOsCyAMNCzYEahcgmbQX5GMRMxWXDJQ4hlM435cPNa TqhL+yChuKvrXTLBX0wu+3O5ySLxaadv35JuzeHyA4J4rd/lQiKkIe5AX5tSQ5Oxk8DX nbxcHlRNvRLddjfawib7GffmzypMwzuI67ck8o11XnEAoezUSigZgBYCBH+6CrE/eo03 dC1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=n03l1Vym; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i4-20020a17090332c400b001930a5bccfcsi4686888plr.610.2023.01.31.06.12.50; Tue, 31 Jan 2023 06:13:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@quicinc.com header.s=qcppdkim1 header.b=n03l1Vym; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231600AbjAaOE6 (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Tue, 31 Jan 2023 09:04:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231890AbjAaOEs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 31 Jan 2023 09:04:48 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8BB1CDD1; Tue, 31 Jan 2023 06:04:47 -0800 (PST) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30V3TB3D023273; Tue, 31 Jan 2023 14:04:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=Egmllpt2UyN9IAHOZOSTcs5pT7E8UwSPc2rT9k6nNbI=; b=n03l1VymAdkpKScHfbfU3hsjXE+2jWZ2IdOz7YxCfgEULTO6CtyyPSLBX6CeLYjAHutz BEjQJg2ZAPcCBMVJxg9tgDY+ZPXLhnO7v2L5nBMFtlqrlPlFkEnpgV4YbBDqAHcDLe1H +joj3gNn2VfB4W733HYlOEVV70xOyRU5FwP2ATGT/jaPceHHTO/By0vylmio8z0dEkpf sQGx2RFhyLMs3+e6wnKbREU0Awrit5/R5rqM4vuDNtTSOJ4jl2gGvq5GaUQhQHQ2R36d T8AYgFquzx0O1g5GWSILXTrIEnymII+JCZJYLtNZjDWV4Bqpn4QSu9yq1ZyUlsN+pfnz Nw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nefmftvs0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 31 Jan 2023 14:04:36 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30VE4ZVO028576 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 31 Jan 2023 14:04:35 GMT Received: from youghand-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 31 Jan 2023 06:04:31 -0800 From: Youghandhar Chintala <quic_youghand@quicinc.com> To: <kvalo@kernel.org>, <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org> CC: <ath11k@lists.infradead.org>, <linux-wireless@vger.kernel.org>, <netdev@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, Youghandhar Chintala <quic_youghand@quicinc.com> Subject: [PATCH v2 1/2] dt: bindings: add dt entry for XO calibration support Date: Tue, 31 Jan 2023 19:33:44 +0530 Message-ID: <20230131140345.6193-2-quic_youghand@quicinc.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20230131140345.6193-1-quic_youghand@quicinc.com> References: <20230131140345.6193-1-quic_youghand@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: O5TDsiFlv2MK4Mi4x9dankAqYx7aUTt3 X-Proofpoint-GUID: O5TDsiFlv2MK4Mi4x9dankAqYx7aUTt3 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-31_08,2023-01-31_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 adultscore=0 priorityscore=1501 mlxlogscore=999 suspectscore=0 bulkscore=0 mlxscore=0 impostorscore=0 phishscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301310125 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756547490619547496?= X-GMAIL-MSGID: =?utf-8?q?1756547653636655403?= |
Series |
dt: bindings: add dt entry for XO calibration support
|
|
Commit Message
Youghandhar Chintala
Jan. 31, 2023, 2:03 p.m. UTC
Add dt binding to get XO calibration data support for Wi-Fi RF clock.
Signed-off-by: Youghandhar Chintala <quic_youghand@quicinc.com>
---
.../devicetree/bindings/net/wireless/qcom,ath11k.yaml | 4 ++++
1 file changed, 4 insertions(+)
Comments
On 31/01/2023 15:03, Youghandhar Chintala wrote: > Add dt binding to get XO calibration data support for Wi-Fi RF clock. Use subject prefixes matching the subsystem (which you can get for example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory your patch is touching). Hint: dt-bindings: net: qcom,ath11k: > > Signed-off-by: Youghandhar Chintala <quic_youghand@quicinc.com> > --- > .../devicetree/bindings/net/wireless/qcom,ath11k.yaml | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml b/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml > index f7cf135aa37f..205ee949daba 100644 > --- a/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml > +++ b/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml > @@ -41,6 +41,10 @@ properties: > * reg > * reg-names > > + xo-cal-data: > + description: > + XO cal offset to be configured in XO trim register Missing type. I also do not understand what's this and why some register offset should be stored in DT. Please give us some justification why this is suitable for DT. Best regards, Krzysztof
On Tue, Jan 31, 2023 at 07:02:16PM +0100, Krzysztof Kozlowski wrote: > On 31/01/2023 15:03, Youghandhar Chintala wrote: > > Add dt binding to get XO calibration data support for Wi-Fi RF clock. > > Use subject prefixes matching the subsystem (which you can get for > example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory > your patch is touching). > Hint: dt-bindings: net: qcom,ath11k: > > > > > Signed-off-by: Youghandhar Chintala <quic_youghand@quicinc.com> > > --- > > .../devicetree/bindings/net/wireless/qcom,ath11k.yaml | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml b/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml > > index f7cf135aa37f..205ee949daba 100644 > > --- a/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml > > +++ b/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml > > @@ -41,6 +41,10 @@ properties: > > * reg > > * reg-names > > > > + xo-cal-data: > > + description: > > + XO cal offset to be configured in XO trim register > > Missing type. I also do not understand what's this and why some register > offset should be stored in DT. Please give us some justification why > this is suitable for DT. I think that's a voltage offset or something, but you are right, we shouldn't have to guess. It needs a vendor prefix, too. Rob
On 1/31/2023 11:32 PM, Krzysztof Kozlowski wrote: > On 31/01/2023 15:03, Youghandhar Chintala wrote: >> Add dt binding to get XO calibration data support for Wi-Fi RF clock. > Use subject prefixes matching the subsystem (which you can get for > example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory > your patch is touching). > Hint: dt-bindings: net: qcom,ath11k: > >> Signed-off-by: Youghandhar Chintala <quic_youghand@quicinc.com> >> --- >> .../devicetree/bindings/net/wireless/qcom,ath11k.yaml | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml b/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml >> index f7cf135aa37f..205ee949daba 100644 >> --- a/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml >> +++ b/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml >> @@ -41,6 +41,10 @@ properties: >> * reg >> * reg-names >> >> + xo-cal-data: >> + description: >> + XO cal offset to be configured in XO trim register > Missing type. I also do not understand what's this and why some register > offset should be stored in DT. Please give us some justification why > this is suitable for DT. > > Best regards, > Krzysztof > Hi Krzysztof, I will address you comments in next version of patch. Regards, Youghandhar
diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml b/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml index f7cf135aa37f..205ee949daba 100644 --- a/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml +++ b/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml @@ -41,6 +41,10 @@ properties: * reg * reg-names + xo-cal-data: + description: + XO cal offset to be configured in XO trim register + qcom,ath11k-calibration-variant: $ref: /schemas/types.yaml#/definitions/string description: