From patchwork Wed Dec 30 04:42:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ping-Ke Shih X-Patchwork-Id: 355472 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7C6AC433E6 for ; Wed, 30 Dec 2020 04:43:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9A5B9207B6 for ; Wed, 30 Dec 2020 04:43:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726244AbgL3Eni (ORCPT ); Tue, 29 Dec 2020 23:43:38 -0500 Received: from rtits2.realtek.com ([211.75.126.72]:44467 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726138AbgL3Eni (ORCPT ); Tue, 29 Dec 2020 23:43:38 -0500 Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.73 with qID 0BU4gpD43028172, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexmbs04.realtek.com.tw[172.21.6.97]) by rtits2.realtek.com.tw (8.15.2/2.70/5.88) with ESMTPS id 0BU4gpD43028172 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 30 Dec 2020 12:42:51 +0800 Received: from localhost (172.21.69.213) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Wed, 30 Dec 2020 12:42:51 +0800 From: Ping-Ke Shih To: CC: Subject: [PATCH 00/18] rtw89: add Realtek 802.11ax driver Date: Wed, 30 Dec 2020 12:42:05 +0800 Message-ID: <20201230044223.14085-1-pkshih@realtek.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Originating-IP: [172.21.69.213] X-ClientProxiedBy: RTEXMBS01.realtek.com.tw (172.21.6.94) To RTEXMBS04.realtek.com.tw (172.21.6.97) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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 Ping-Ke Shih Po Hao Huang Tzu-En Huang Vincent Fann Yan-Hsuan Chuang Zong-Zhe Yang Ping-Ke Shih (18): 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 rtw89: add ser to recover error reported by firmware 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 | 23 + drivers/net/wireless/realtek/rtw89/cam.c | 671 + drivers/net/wireless/realtek/rtw89/cam.h | 162 + drivers/net/wireless/realtek/rtw89/coex.c | 386 + drivers/net/wireless/realtek/rtw89/coex.h | 100 + drivers/net/wireless/realtek/rtw89/core.c | 1736 ++ drivers/net/wireless/realtek/rtw89/core.h | 1911 ++ drivers/net/wireless/realtek/rtw89/debug.c | 1928 ++ drivers/net/wireless/realtek/rtw89/debug.h | 73 + drivers/net/wireless/realtek/rtw89/efuse.c | 190 + drivers/net/wireless/realtek/rtw89/efuse.h | 11 + drivers/net/wireless/realtek/rtw89/fw.c | 990 + drivers/net/wireless/realtek/rtw89/fw.h | 1054 + drivers/net/wireless/realtek/rtw89/mac.c | 3259 ++ drivers/net/wireless/realtek/rtw89/mac.h | 761 + drivers/net/wireless/realtek/rtw89/mac80211.c | 523 + drivers/net/wireless/realtek/rtw89/pci.c | 2580 ++ drivers/net/wireless/realtek/rtw89/pci.h | 560 + drivers/net/wireless/realtek/rtw89/phy.c | 2470 ++ drivers/net/wireless/realtek/rtw89/phy.h | 276 + drivers/net/wireless/realtek/rtw89/reg.h | 1843 ++ drivers/net/wireless/realtek/rtw89/regd.c | 352 + drivers/net/wireless/realtek/rtw89/rtw8852a.c | 1342 + drivers/net/wireless/realtek/rtw89/rtw8852a.h | 76 + .../net/wireless/realtek/rtw89/rtw8852a_rfk.c | 3562 +++ .../net/wireless/realtek/rtw89/rtw8852a_rfk.h | 18 + .../realtek/rtw89/rtw8852a_rfk_table.c | 1562 + .../realtek/rtw89/rtw8852a_rfk_table.h | 127 + .../wireless/realtek/rtw89/rtw8852a_table.c | 24998 ++++++++++++++++ .../wireless/realtek/rtw89/rtw8852a_table.h | 26 + drivers/net/wireless/realtek/rtw89/ser.c | 430 + drivers/net/wireless/realtek/rtw89/ser.h | 12 + drivers/net/wireless/realtek/rtw89/txrx.h | 385 + 36 files changed, 54449 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/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/ser.c create mode 100644 drivers/net/wireless/realtek/rtw89/ser.h create mode 100644 drivers/net/wireless/realtek/rtw89/txrx.h