Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp8139099rdb; Thu, 4 Jan 2024 22:43:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGcZZmaQoqQPKF5qDT8w39ESM8wvym36mSz72QHqfxCYOU9YoyDJRLaegBpuaeyKjdPv1lg X-Received: by 2002:a17:902:680d:b0:1d4:e6f2:abc2 with SMTP id h13-20020a170902680d00b001d4e6f2abc2mr481732plk.72.1704436988804; Thu, 04 Jan 2024 22:43:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704436988; cv=none; d=google.com; s=arc-20160816; b=zT3X6/YPV2Y5jY1CpvQiUE/90LijNpHKJdEiCGQcjtuEO0caFdsNBBCHNCVeRWUmyl pFoTQRfWD/2S9CMqNav8MxmiYBUDzAiroY4lnoDsk+r66wgSwjC1iDLQOYFXmpKaSuIp SkgID7ulnJ8TPjXHtm24oJdsfmXiC+tbf/TQcuHYuZ4PKsAwuSzbi9bfDtpdQ5suTM1+ nnWLP5fyeKz6cnl+0kKDiCQiIVXWZ/QGvJ2dFeK2XdEHV6by8a6hjNsw1Hj71VRioyec bw0FvHTboUK8aWioHMHnlHatZTTOSJG6uAmRtK9XOwxYfo8tp7bjQtGdqDogSMAOh7er onsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=wWho4lWa4Fj9NtgVKETzcyskm3I+lz2do4X5lV4DJZo=; fh=4TwZRPLNtLn/VqA3P2pgPgY9r+920GaYRrLXbPJjOsY=; b=lSyqEYei6YjeQ887XQt+uzAvr3gjQWU9SwRDhc3mqsDFYw2klB4XzPGgDl9TUrPgOs GAGsuTtdd7BZ1LEHVsRWeKy03mddAK35mXD/j7SjAr1btEaECLu+fOZpzDlGiYEoiUpZ WO6npjBaCg3/VQsMej9BEJ5E3cpdRUJMJC22fjHDmmLG95TZC4AuEK4UWAIhOdlwLqHj HY7pbH+AMbah6cveH571bbuN3oE3eTQh0GMQ4QfvrJPCB2FO3+4JWwLCZEkq87Nr/cGY OzrcxFuzpAdlffBTJRddRoIFbRS7jm6w3G0sl9WSRhgHPEbLB4H/4HmPqKPFl9469bim lJLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-1510-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1510-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z7-20020a170903018700b001b7d2b55d8asi717409plg.626.2024.01.04.22.43.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 22:43:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1510-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-1510-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1510-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E0B73B22234 for ; Fri, 5 Jan 2024 06:43:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46DA41DDDC; Fri, 5 Jan 2024 06:43:01 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C2E51DDD9 for ; Fri, 5 Jan 2024 06:42:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 4056geER32200572, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 4056geER32200572 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 5 Jan 2024 14:42:40 +0800 Received: from RTEXDAG02.realtek.com.tw (172.21.6.101) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Fri, 5 Jan 2024 14:42:41 +0800 Received: from [127.0.1.1] (172.21.69.94) by RTEXDAG02.realtek.com.tw (172.21.6.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 5 Jan 2024 14:42:40 +0800 From: Ping-Ke Shih To: CC: , , Subject: [PATCH 0/8] wifi: rtw89: update/add PHY settings for WiFi 7 chips Date: Fri, 5 Jan 2024 14:42:20 +0800 Message-ID: <20240105064228.36580-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXDAG02.realtek.com.tw (172.21.6.101) X-KSE-ServerInfo: RTEXDAG02.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback Add many PHY stuffs to support coming WiFi 7 chips: Add to parse parameters of RX gain from firmware file, and then set these values to registers according to specified channel. Update registers and logic to share DIG flow with WiFi 7. Set TX power registers called BB wrapper because these registers are used by BB but resides in MAC register domain. WiFi 7 chips have additional settings of channel info to get desired reports. A set of NCTL pre-settings ops is introduced to configure conditional settings before loading parameters from firmware file. Parameters could contain a special value (0xbabecafe) as a dummy, so exclude it accordingly. Cheng-Chieh Hsieh (1): wifi: rtw89: 8922a: update the register used in DIG and the DIG flow Chung-Hsuan Hung (2): wifi: rtw89: phy: add parser to support RX gain dynamic setting flow wifi: rtw89: 8922a: set RX gain along with set_channel operation Ping-Ke Shih (5): wifi: rtw89: phy: move bb_gain_info used by WiFi 6 chips to union wifi: rtw89: phy: ignore special data from BB parameter file wifi: rtw89: 8922a: add NCTL pre-settings for WiFi 7 chips wifi: rtw89: phy: add BB wrapper of TX power for WiFi 7 chips wifi: rtw89: phy: set channel_info for WiFi 7 chips drivers/net/wireless/realtek/rtw89/core.h | 69 +++- drivers/net/wireless/realtek/rtw89/phy.c | 45 ++- drivers/net/wireless/realtek/rtw89/phy.h | 62 ++++ drivers/net/wireless/realtek/rtw89/phy_be.c | 312 ++++++++++++++++++ drivers/net/wireless/realtek/rtw89/reg.h | 79 +++++ drivers/net/wireless/realtek/rtw89/rtw8851b.c | 4 +- drivers/net/wireless/realtek/rtw89/rtw8852b.c | 4 +- drivers/net/wireless/realtek/rtw89/rtw8852c.c | 2 +- drivers/net/wireless/realtek/rtw89/rtw8922a.c | 209 ++++++++++++ 9 files changed, 767 insertions(+), 19 deletions(-) -- 2.25.1