Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1339328rdb; Fri, 19 Jan 2024 16:39:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpNYdFS0X1fTUpaZq+IjuHPdWAbpLwXC14oOL0eNioAAJdxxfCbOWNLAlBpDGmQozm+ddx X-Received: by 2002:a05:6a21:3399:b0:19a:fe9c:e870 with SMTP id yy25-20020a056a21339900b0019afe9ce870mr1020570pzb.12.1705711154491; Fri, 19 Jan 2024 16:39:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705711154; cv=pass; d=google.com; s=arc-20160816; b=Ov3JQ/ATYMZeIoNagxVS2uMDwJ6tzQVXaxSUgPaCl4vqNDr4TFf2Y4qbmVV6JfRQ2S hjrvErs87voza1fm0VsaaU+pnsQAI+8LPD5Lt2yFerNC6ZO/+ZiwS2bX+zanHAe/l0O3 OcMPCOCAMl43CvWqLNg96DIVVnQ2HfDMh5ugAPIKCqtV3nU5TGcH8ngKn3Q1tKZtvayc d4xkyhzVF2ZUx2LkdfcT4hb8p/FGv9CPKQxMYRUou9J4P19slfYDr515wQtMQVsag4lA fPYmoOIAeY8baX5crGy4DPHiH+ZfGX81Lkx6mhrJFBAljyIsPkiMj/dyc8YWXl/8K6Sf ELRg== ARC-Message-Signature: i=2; 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=fyET7avjg71a+OGT3JYvt35ZrMayi06c3Il5aWgBPDo=; fh=/r/x0QoRfbSwAsE/aR2TpjkkUWoXXV+YQraRc6pQAxA=; b=qz4I0HJ5eqNop36Kg8KCF6Q67zbcWjAmjJoV7sA1RYhKDqcr8FmMhTuIkcOy3NzN7Z GlBH7KXVhZjZedHuua10fLzHBy1Ppo/8WTrXA8G0Pu2v11FXead4dH6VyNnR8GtQNzNW 5mbX05Pdu4r6wgiDmDmE/Po5LfbWBQdZAzs4jnZqxLfLjaQ/T+WHWpEfbYSX7zSXWQrI +0YnytHcFcwiRMST0KsX6zN2i5b4iKCL4Qn0NpHjAYBaA44Rx0a+IE910blHp7A3Xhji Dpq3rlcdVvyvo6kQ7MET/1Ksp7C7OlnzTx5cICx9F9cjmPVJFul27N9P5phnA8KtwKw7 pTyA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-2281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2281-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 f5-20020a056a0022c500b006d9b2675e34si6417184pfj.323.2024.01.19.16.39.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 16:39:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2281-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; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-2281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2281-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 5D3D0B21EA2 for ; Sat, 20 Jan 2024 00:39:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4CBF439C; Sat, 20 Jan 2024 00:39:06 +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 31E70392 for ; Sat, 20 Jan 2024 00:39:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705711146; cv=none; b=GRISZeMFBMYtaHh4OOEhwUhJEmfhG9QCTT9R5GI5erhJ820+cIMPkVdZvinxCo3e6jkduAkJvBhEVJuDI4R5mDmAMNCRdW/51T0opZLIJ5uEaI4vxnFur/f0oT/9jll/f5A+bX74etpCTi7DBHs8MW+XVPq2zRm4j2oO8ZGAA4M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705711146; c=relaxed/simple; bh=RbFXuALUsVS8k5elYKNiRk6j9BdcIYTOdLw1gWXHHyw=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=FcIO9VvT0y7SpFwOjVDObV8jioRPVhHT49tebY97/NTgrdpJe6DGLRfKn9GD3mrwIwbB1vDQtd1+Nvy/vuabv3sXOFAZCbBY9h//AC2tQIaFsTRGF5P7ouL5ofcmPGsUkkrrL15YwZJv0rhFLVgTOxAZLtYSKCA7fqd8KU+G8mU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=none smtp.client-ip=211.75.126.72 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 40K0ctRI32596449, 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 40K0ctRI32596449 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 20 Jan 2024 08:38:56 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.32; Sat, 20 Jan 2024 08:38:56 +0800 Received: from [127.0.1.1] (172.16.16.202) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Sat, 20 Jan 2024 08:38:55 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH v3 0/6] wifi: rtw89: 8922a: implement more chip_ops for 8922A Date: Sat, 20 Jan 2024 08:38:25 +0800 Message-ID: <20240120003831.7014-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 RTEXMBS04.realtek.com.tw (172.21.6.97) 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 Introduce MLO/DBCC mode variable that is used to configure PHY mode for various application. The later implementation of chip_ops will reference the mode to set registers. Though we have not really enabled MLO. Other patches are chips_ops to enable BB/RF, set TX power and BT coexistence helpers. Also, define chip specified registers that are used by common logic flow. v3: - rebase to top of wireless-next tree to resolve conflicts of patch 5/6 - no logic changes. v2: - modify patches 3/6 and 5/6 because we found some problems during verification. Chung-Hsuan Hung (1): wifi: rtw89: 8922a: add BTG functions to assist BT coexistence to control TX/RX Ping-Ke Shih (5): wifi: rtw89: add mlo_dbcc_mode for WiFi 7 chips wifi: rtw89: 8922a: add chip_ops::{enable,disable}_bb_rf wifi: rtw89: 8922a: add chip_ops related to BB init wifi: rtw89: 8922a: add register definitions of H2C, C2H, page, RRSR and EDCCA wifi: rtw89: 8922a: add TX power related ops drivers/net/wireless/realtek/rtw89/core.c | 3 + drivers/net/wireless/realtek/rtw89/core.h | 42 ++ drivers/net/wireless/realtek/rtw89/phy.c | 1 + drivers/net/wireless/realtek/rtw89/phy.h | 10 + drivers/net/wireless/realtek/rtw89/reg.h | 199 +++++++- drivers/net/wireless/realtek/rtw89/rtw8851b.c | 1 + drivers/net/wireless/realtek/rtw89/rtw8852a.c | 1 + drivers/net/wireless/realtek/rtw89/rtw8852b.c | 1 + drivers/net/wireless/realtek/rtw89/rtw8852c.c | 1 + drivers/net/wireless/realtek/rtw89/rtw8922a.c | 482 ++++++++++++++++++ 10 files changed, 740 insertions(+), 1 deletion(-) -- 2.25.1