From: Govind Singh <govinds@codeaurora.org>
To: ath10k@lists.infradead.org, robh@kernel.org
Cc: devicetree@vger.kernel.org, Govind Singh <govinds@codeaurora.org>,
linux-wireless@vger.kernel.org
Subject: [PATCH v3 0/2] Add xo calibration support for wifi rf clock
Date: Mon, 1 Apr 2019 14:49:24 +0530 [thread overview]
Message-ID: <20190401091926.19119-1-govinds@codeaurora.org> (raw)
PMIC XO is the clock source for wifi rf clock in integrated wifi
chipset ex: WCN3990. Due to board layout errors XO frequency drifts
can cause wifi rf clock inaccuracy.
XO calibration test tree in Factory Test Mode is used to find the
best frequency offset(for example +/-2KHz )by programming XO trim
register. This ensure system clock stays within required 20 ppm
WLAN rf clock.
Retrieve the xo trim offset via system firmware (e.g., device tree),
especially in the case where the device doesn't have a useful EEPROM
on which to store the calibrated XO offset (e.g., for integrated Wifi).
Calibrated XO offset is sent to fw, which compensate the clock drift
by programing the XO trim register.
Testing:
Tested on QCS404 platform(WCN3990 HW)
Tested FW: WLAN.HL.3.1-00959-QCAHLSWMTPLZ-1
change since v2:
Added "qcom," prefix in xo cal prop.
change since v1:
Added return check for case where xo cal dt is not populated.
Govind Singh (2):
dt: bindings: add dt entry for XO calibration support
ath10k: Add xo calibration support for wifi rf clock
.../devicetree/bindings/net/wireless/qcom,ath10k.txt | 1 +
drivers/net/wireless/ath/ath10k/qmi.c | 12 ++++++++++++
drivers/net/wireless/ath/ath10k/snoc.c | 11 +++++++++++
drivers/net/wireless/ath/ath10k/snoc.h | 2 ++
4 files changed, 26 insertions(+)
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
next reply other threads:[~2019-04-01 9:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-01 9:19 Govind Singh [this message]
[not found] ` <20190401091926.19119-1-govinds-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2019-04-01 9:19 ` [PATCH v3 1/2] dt: bindings: add dt entry for XO calibration support Govind Singh
[not found] ` <20190401091926.19119-2-govinds-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2019-04-06 6:06 ` Rob Herring
2019-09-21 6:47 ` Kalle Valo
2019-09-21 6:47 ` Kalle Valo
2019-04-01 9:19 ` [PATCH v3 2/2] ath10k: Add xo calibration support for wifi rf clock Govind Singh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190401091926.19119-1-govinds@codeaurora.org \
--to=govinds@codeaurora.org \
--cc=ath10k@lists.infradead.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).