All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Add xo calibration support for wifi rf clock
@ 2019-04-01  9:19 ` Govind Singh
  0 siblings, 0 replies; 16+ messages in thread
From: Govind Singh @ 2019-04-01  9:19 UTC (permalink / raw)
  To: ath10k, robh; +Cc: linux-wireless, devicetree, Govind Singh

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


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2019-09-21  6:47 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-01  9:19 [PATCH v3 0/2] Add xo calibration support for wifi rf clock Govind Singh
2019-04-01  9:19 ` Govind Singh
2019-04-01  9:19 ` Govind Singh
2019-04-01  9:19 ` [PATCH v3 1/2] dt: bindings: add dt entry for XO calibration support Govind Singh
2019-04-01  9:19   ` Govind Singh
2019-04-01  9:19   ` Govind Singh
2019-04-06  6:06   ` Rob Herring
2019-04-06  6:06     ` Rob Herring
2019-04-06  6:06     ` Rob Herring
2019-09-21  6:47   ` Kalle Valo
2019-09-21  6:47     ` Kalle Valo
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
2019-04-01  9:19   ` Govind Singh
2019-04-01  9:19   ` Govind Singh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.