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

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 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


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 20+ messages in thread
* [PATCH v2 0/2] dt: bindings: add dt entry for XO calibration support
@ 2023-01-31 14:03 Youghandhar Chintala
  2023-01-31 14:03   ` Youghandhar Chintala
  0 siblings, 1 reply; 20+ messages in thread
From: Youghandhar Chintala @ 2023-01-31 14:03 UTC (permalink / raw)
  To: kvalo, davem, edumazet, kuba, pabeni, robh+dt,
	krzysztof.kozlowski+dt
  Cc: ath11k, linux-wireless, netdev, devicetree, linux-kernel,
	Youghandhar Chintala

Add dt binding to get XO calibration data support for Wi-Fi RF clock.

Signed-off-by: Youghandhar Chintala <quic_youghand@quicinc.com>

Changes from v1:
 - Sending the series to right list

Youghandhar Chintala (2):
  dt: bindings: add dt entry for XO calibration support
  wifi: ath11k: PMIC XO cal data support

 .../bindings/net/wireless/qcom,ath11k.yaml    |  4 ++++
 drivers/net/wireless/ath/ath11k/ahb.c         |  8 +++++++
 drivers/net/wireless/ath/ath11k/core.h        |  3 +++
 drivers/net/wireless/ath/ath11k/qmi.c         | 24 +++++++++++++++++++
 drivers/net/wireless/ath/ath11k/qmi.h         |  4 +++-
 5 files changed, 42 insertions(+), 1 deletion(-)

-- 
2.38.0


-- 
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

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

end of thread, other threads:[~2023-02-07  6:41 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-20  4:45 [PATCH v2 0/2] Add xo calibration support for wifi rf clock Govind Singh
2019-03-20  4:45 ` Govind Singh
2019-03-20  4:45 ` [PATCH v2 1/2] dt: bindings: add dt entry for XO calibration support Govind Singh
2019-03-20  4:45   ` Govind Singh
2019-03-25 17:16   ` Brian Norris
2019-03-25 17:16     ` Brian Norris
2019-03-20  4:45 ` [PATCH v2 2/2] ath10k: Add xo calibration support for wifi rf clock Govind Singh
2019-03-20  4:45   ` Govind Singh
2019-03-20  8:37 ` [PATCH v2 0/2] " Sven Eckelmann
2019-03-20  8:37   ` Sven Eckelmann
2019-03-20 11:46   ` Govind Singh
2019-03-20 11:46     ` Govind Singh
  -- strict thread matches above, loose matches on Subject: below --
2023-01-31 14:03 [PATCH v2 0/2] dt: bindings: add dt entry for XO calibration support Youghandhar Chintala
2023-01-31 14:03 ` [PATCH v2 1/2] " Youghandhar Chintala
2023-01-31 14:03   ` Youghandhar Chintala
2023-01-31 18:02   ` Krzysztof Kozlowski
2023-01-31 18:02     ` Krzysztof Kozlowski
2023-02-01 17:20     ` Rob Herring
2023-02-01 17:20       ` Rob Herring
2023-02-07  6:40     ` Youghandhar Chintala (Temp)
2023-02-07  6:40       ` Youghandhar Chintala (Temp)

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.