mbox series

[0/6] wifi: rtw89: 8922a: add chip_ops related to TX/RX, RF access and thermal

Message ID 20240124033637.12330-1-pkshih@realtek.com (mailing list archive)
Headers show
Series wifi: rtw89: 8922a: add chip_ops related to TX/RX, RF access and thermal | expand

Message

Ping-Ke Shih Jan. 24, 2024, 3:36 a.m. UTC
Add more chip_ops for 8922A. First is handlers of TX/RX descriptors to
fill/read descriptors. During switching channel, it needs to stop hardware
TX scheduler introduced by second patch. Patch 3/6 is to configure TX path,
which it can TX 1SS rate data via one or two paths, and normally 2-path TX
is adopted by default.

Then, add patch 4/6 to access RF registers via an indirect interface.
Normally, use thermal value to decide whether we trigger certain RF
calibration again, and it also helps to debug CFO because temperature can
affect the result too. The last patch is just to fill two ops that are NULL.

Ping-Ke Shih (6):
  wifi: rtw89: 8922a: hook handlers of TX/RX descriptors to chip_ops
  wifi: rtw89: 8922a: implement {stop,resume}_sch_tx and cfg_ppdu
  wifi: rtw89: 8922a: add chip_ops::cfg_txrx_path
  wifi: rtw89: 8922a: add RF read/write v2
  wifi: rtw89: 8922a: add chip_ops to get thermal value
  wifi: rtw89: 8922a: set chip_ops FEM and GPIO to NULL

 drivers/net/wireless/realtek/rtw89/mac.c      |   5 +-
 drivers/net/wireless/realtek/rtw89/mac.h      |  14 +-
 drivers/net/wireless/realtek/rtw89/mac_be.c   |  96 +++++
 drivers/net/wireless/realtek/rtw89/phy.c      | 125 +++++++
 drivers/net/wireless/realtek/rtw89/phy.h      |   4 +
 drivers/net/wireless/realtek/rtw89/reg.h      |  84 +++++
 drivers/net/wireless/realtek/rtw89/rtw8922a.c | 344 ++++++++++++++++++
 .../net/wireless/realtek/rtw89/rtw8922a_rfk.c |  33 ++
 .../net/wireless/realtek/rtw89/rtw8922a_rfk.h |  12 +
 9 files changed, 714 insertions(+), 3 deletions(-)
 create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8922a_rfk.c
 create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8922a_rfk.h