This driver named rtw89, which is the next generation of rtw88, supports Realtek 8852AE 802.11ax 2x2 chip whose new features are OFDMA, DBCC, Spatial reuse, TWT and BSS coloring; now some of them aren't implemented though. The chip architecture is entirely different from the chips supported by rtw88 like RTL8822CE 802.11ac chip. First of all, register address ranges are totally redefined, so it's impossible to reuse register definition. To communicate with firmware, new H2C/C2H format is proposed. In order to have better utilization, TX DMA flow is changed to two stages DMA. To provide rich RX status information, additional RX PPDU packets are added. Since there are so many differences mentioned above, we decide to propose a new driver. It has many authors, they are listed in alphabetic order: Chin-Yen Lee <timlee@xxxxxxxxxxx> Ping-Ke Shih <pkshih@xxxxxxxxxxx> Po Hao Huang <phhuang@xxxxxxxxxxx> Tzu-En Huang <tehuang@xxxxxxxxxxx> Vincent Fann <vincent_fann@xxxxxxxxxxx> Yan-Hsuan Chuang <tony0620emma@xxxxxxxxx> Zong-Zhe Yang <kevin_yang@xxxxxxxxxxx> Tested-by: Brian Norris <briannorris@xxxxxxxxxxxx> Signed-off-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx> v7: - use consistent license of Kconfig - remove #ifdef and dummy functions from coex.c - C2H handler of coex uses meaningful naming insetad, and use le32_to_cpu() to convert the value. - add icmp packet notify to coex - use function call instead of a work to notify coex about traffic changed - fix dereference security CAM NULL pointer while disconnecting occasionally - fill tx descriptor once a 32 bits word (Suggested by Arnd. Thanks!) - use static pci PS, so remove pci link_ps - make many mac tables constant - add early_h2c debugfs entry to notify firmware early - support new RA report format - configure retry_lowest_rate by band - avoid to use of whil(1) to parse power sequence - notify rfk before/after scanning to reset status - firmware: rtw89: 8852a: update fw to v0.13.30.0 https://github.com/pkshih/linux-firmware.git pick the commit 6595133a7cde82be932067afde834dcd036167f8 v6: - improve BT coexistence performance - improve power save mode - improve OFDMA performance - remove some unused code - fix can't obtain IPv6 address - support device ID 10ec:a85a - refine PCI interrupt flow - firmware: rtw89: 8852a: update fw to v0.13.28.0 https://github.com/pkshih/linux-firmware.git pick the commit 344db6dca0610341599cd3e5f8b51fcb6ae06fb5 v5: - add OFDMA feature - improve BT coexistence performance - improve power save mode - support SAR - fine tune performance - firmware: rtw89: 8852a: update fw to v0.13.24.0 https://github.com/pkshih/linux-firmware.git pick the commit a5b79c4790da3eb3690e23554225ef8db464f2c6 v4: - add basic BT coexistence features - add power save mode, so an new patch (two files) is added - fine tune performance - add debugfs for debugging coex, bb, ... v3: - fix "networking block comments" reported by checkpatch - Add MODULE_DEVICE_TABLE() generated by Thomas Backlund <tmb@xxxxxxxxxx> - Add missed BB settings - error handle of RX BD and DESC length - reduce debug level of C2H ACKs - fix rekey failure due to wrong operator v2: - fix compiler warnings made by W=1 Reported-by: kernel test robot <lkp@xxxxxxxxx> - sort header file alphabetically - fix "networking block comments" reported by checkpatch Ping-Ke Shih (24): rtw89: add CAM files rtw89: add BT coexistence files rtw89: add core and trx files rtw89: add debug files rtw89: add efuse files rtw89: add files to download and communicate with firmware rtw89: add MAC files rtw89: implement mac80211 ops rtw89: add pci files rtw89: add phy files rtw89: define register names rtw89: add regulatory support rtw89: 8852a: add 8852a specific files rtw89: 8852a: add 8852a RFK files rtw89: 8852a: add 8852a RFK tables rtw89: 8852a: add 8852a tables (1 of 5) rtw89: 8852a: add 8852a tables (2 of 5) rtw89: 8852a: add 8852a tables (3 of 5) rtw89: 8852a: add 8852a tables (4 of 5) rtw89: 8852a: add 8852a tables (5 of 5) rtw89: add ser to recover error reported by firmware rtw89: add PS files rtw89: add SAR files rtw89: add Kconfig and Makefile drivers/net/wireless/realtek/Kconfig | 1 + drivers/net/wireless/realtek/Makefile | 1 + drivers/net/wireless/realtek/rtw89/Kconfig | 50 + drivers/net/wireless/realtek/rtw89/Makefile | 25 + drivers/net/wireless/realtek/rtw89/cam.c | 695 + drivers/net/wireless/realtek/rtw89/cam.h | 165 + drivers/net/wireless/realtek/rtw89/coex.c | 5716 ++ drivers/net/wireless/realtek/rtw89/coex.h | 181 + drivers/net/wireless/realtek/rtw89/core.c | 2502 + drivers/net/wireless/realtek/rtw89/core.h | 3384 ++ drivers/net/wireless/realtek/rtw89/debug.c | 2489 + drivers/net/wireless/realtek/rtw89/debug.h | 77 + drivers/net/wireless/realtek/rtw89/efuse.c | 188 + drivers/net/wireless/realtek/rtw89/efuse.h | 13 + drivers/net/wireless/realtek/rtw89/fw.c | 1641 + drivers/net/wireless/realtek/rtw89/fw.h | 1378 + drivers/net/wireless/realtek/rtw89/mac.c | 3838 ++ drivers/net/wireless/realtek/rtw89/mac.h | 860 + drivers/net/wireless/realtek/rtw89/mac80211.c | 676 + drivers/net/wireless/realtek/rtw89/pci.c | 3060 + drivers/net/wireless/realtek/rtw89/pci.h | 635 + drivers/net/wireless/realtek/rtw89/phy.c | 2868 + drivers/net/wireless/realtek/rtw89/phy.h | 311 + drivers/net/wireless/realtek/rtw89/ps.c | 150 + drivers/net/wireless/realtek/rtw89/ps.h | 16 + drivers/net/wireless/realtek/rtw89/reg.h | 2159 + drivers/net/wireless/realtek/rtw89/regd.c | 353 + drivers/net/wireless/realtek/rtw89/rtw8852a.c | 2036 + drivers/net/wireless/realtek/rtw89/rtw8852a.h | 109 + .../net/wireless/realtek/rtw89/rtw8852a_rfk.c | 3911 ++ .../net/wireless/realtek/rtw89/rtw8852a_rfk.h | 24 + .../realtek/rtw89/rtw8852a_rfk_table.c | 1607 + .../realtek/rtw89/rtw8852a_rfk_table.h | 133 + .../wireless/realtek/rtw89/rtw8852a_table.c | 48725 ++++++++++++++++ .../wireless/realtek/rtw89/rtw8852a_table.h | 28 + drivers/net/wireless/realtek/rtw89/sar.c | 190 + drivers/net/wireless/realtek/rtw89/sar.h | 26 + drivers/net/wireless/realtek/rtw89/ser.c | 491 + drivers/net/wireless/realtek/rtw89/ser.h | 15 + drivers/net/wireless/realtek/rtw89/txrx.h | 358 + drivers/net/wireless/realtek/rtw89/util.h | 17 + 41 files changed, 91102 insertions(+) create mode 100644 drivers/net/wireless/realtek/rtw89/Kconfig create mode 100644 drivers/net/wireless/realtek/rtw89/Makefile create mode 100644 drivers/net/wireless/realtek/rtw89/cam.c create mode 100644 drivers/net/wireless/realtek/rtw89/cam.h create mode 100644 drivers/net/wireless/realtek/rtw89/coex.c create mode 100644 drivers/net/wireless/realtek/rtw89/coex.h create mode 100644 drivers/net/wireless/realtek/rtw89/core.c create mode 100644 drivers/net/wireless/realtek/rtw89/core.h create mode 100644 drivers/net/wireless/realtek/rtw89/debug.c create mode 100644 drivers/net/wireless/realtek/rtw89/debug.h create mode 100644 drivers/net/wireless/realtek/rtw89/efuse.c create mode 100644 drivers/net/wireless/realtek/rtw89/efuse.h create mode 100644 drivers/net/wireless/realtek/rtw89/fw.c create mode 100644 drivers/net/wireless/realtek/rtw89/fw.h create mode 100644 drivers/net/wireless/realtek/rtw89/mac.c create mode 100644 drivers/net/wireless/realtek/rtw89/mac.h create mode 100644 drivers/net/wireless/realtek/rtw89/mac80211.c create mode 100644 drivers/net/wireless/realtek/rtw89/pci.c create mode 100644 drivers/net/wireless/realtek/rtw89/pci.h create mode 100644 drivers/net/wireless/realtek/rtw89/phy.c create mode 100644 drivers/net/wireless/realtek/rtw89/phy.h create mode 100644 drivers/net/wireless/realtek/rtw89/ps.c create mode 100644 drivers/net/wireless/realtek/rtw89/ps.h create mode 100644 drivers/net/wireless/realtek/rtw89/reg.h create mode 100644 drivers/net/wireless/realtek/rtw89/regd.c create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8852a.c create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8852a.h create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8852a_rfk.c create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8852a_rfk.h create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8852a_rfk_table.c create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8852a_rfk_table.h create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8852a_table.c create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8852a_table.h create mode 100644 drivers/net/wireless/realtek/rtw89/sar.c create mode 100644 drivers/net/wireless/realtek/rtw89/sar.h create mode 100644 drivers/net/wireless/realtek/rtw89/ser.c create mode 100644 drivers/net/wireless/realtek/rtw89/ser.h create mode 100644 drivers/net/wireless/realtek/rtw89/txrx.h create mode 100644 drivers/net/wireless/realtek/rtw89/util.h -- 2.25.1