Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp243713rdb; Thu, 16 Nov 2023 18:41:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IGkhvnL/7lF26kbQaYIkFnIUdvL2vF/PsSs3e0LFcG2ZXO9qc7X2RonnoFFfI1VbZ+84b4Q X-Received: by 2002:a17:90a:5ae3:b0:280:cd5f:bf8e with SMTP id n90-20020a17090a5ae300b00280cd5fbf8emr17876816pji.18.1700188894990; Thu, 16 Nov 2023 18:41:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700188894; cv=none; d=google.com; s=arc-20160816; b=yCOQXWsdhKSvJiFi8jp6YtyLp9iG7UleD6hcsGS3kpz3yfQh9s+Pnd609BWfOlx9Nb MThaPaZbnKizGBl950xIpx6Ayp/S8fgETo1L1xXQ0qUXXyk9GPES7MpvsY/NAHVWpaO9 Gj758rBg8DZih4KwaTIR1haMiz+lDcJvFIWy56gKDfnKLjwP7w14VcDl/U34trXfXyWk uCR3G+K5b+9k4mlRXn+tQ5kY4EKQ+FPrIt9CMxDtd2oShCcLUQcBJvEY0wxz9/HztfRt 2h5e27X95BLlI+pJ1GjeoyFCIK7cIt2iN1cGOd79sd094vlVCd3LXYUXbX/pykG6oGuu cbug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=uAX/HprlxOss/m9xtwWzA66d8DtXeuYlxVti9W/D4Mg=; fh=119R0DZRwIns1LRpqAK2A6izyPVjL4TEe6VydCwW0T8=; b=HrYybjbY1Ks9yz6cD7jjxzBuPJp4EStOf9lI3ieFwsxjNizDuRDFgOjlaDeUjsXxnl bb/81mVS6UQ2oFysB7VodVnWnAeGb6/3QHtisOtxuNyb6J/2i8aMlbA+JmqCZ3iJZHjY wZaxwu3B38au6ewSE0gxru4DagAktldnnB/dq5B+uAIICywBtImDiF1XsnLv8GJJAWzW PbEoptgefT8fLZBUgGVgLamNqhgMjs+HNQ18ARJsJ+7xr/5aUo9eUKPghWu69mL2WF1f uMls3eOkJGiC6w0bpM/qRBxCNhr+0xgzzHsGDMMJl3b4paAsDARjLxk4osjFBVXu09JS oSNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id lr16-20020a17090b4b9000b0027b258f284esi3349685pjb.26.2023.11.16.18.41.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 18:41:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8BF2D81BDA49; Thu, 16 Nov 2023 18:41:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229805AbjKQCla (ORCPT + 53 others); Thu, 16 Nov 2023 21:41:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjKQCl3 (ORCPT ); Thu, 16 Nov 2023 21:41:29 -0500 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE8ED1A8 for ; Thu, 16 Nov 2023 18:41:25 -0800 (PST) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3AH2fHJb92818701, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 3AH2fHJb92818701 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Nov 2023 10:41:17 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Fri, 17 Nov 2023 10:41:17 +0800 Received: from [127.0.1.1] (172.21.69.94) 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.2375.7; Fri, 17 Nov 2023 10:41:14 +0800 From: Ping-Ke Shih To: CC: Subject: [PATCH 0/6] wifi: rtw89: 8922a: add 8922A basic info and efuse stuff Date: Fri, 17 Nov 2023 10:40:23 +0800 Message-ID: <20231117024029.113845-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.21.69.94] X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 16 Nov 2023 18:41:29 -0800 (PST) We are going to add 8922A, and first step is to add basic info, and then we will add more attributes one by one. Firstly, we add efuse stuff that stores calibration values, capabilities, PHY parameters and etc. Since efuse format is changed from existing WiFi 6 chips, we introduce new reader and parser by patch 3/6 mainly. The detail of efuse format is also shown in commit message of that patch. Patch 4/6~6/6 are to read necessary data into driver from efuse physical/logical maps, so driver doesn't need to keep the large map persistently. Ping-Ke Shih (6): wifi: rtw89: 8922a: add 8922A basic chip info wifi: rtw89: mac: use mac_gen pointer to access about efuse wifi: rtw89: mac: add to access efuse for WiFi 7 chips wifi: rtw89: 8852c: read RX gain offset from efuse for 6GHz channels wifi: rtw89: 8922a: read efuse content via efuse map struct from logic map wifi: rtw89: 8922a: read efuse content from physical map drivers/net/wireless/realtek/rtw89/core.c | 5 +- drivers/net/wireless/realtek/rtw89/core.h | 28 +- drivers/net/wireless/realtek/rtw89/efuse.c | 11 +- drivers/net/wireless/realtek/rtw89/efuse.h | 17 +- drivers/net/wireless/realtek/rtw89/efuse_be.c | 420 ++++++++++++++++++ drivers/net/wireless/realtek/rtw89/mac.c | 16 +- drivers/net/wireless/realtek/rtw89/mac.h | 3 + drivers/net/wireless/realtek/rtw89/mac_be.c | 4 + drivers/net/wireless/realtek/rtw89/phy.h | 16 + drivers/net/wireless/realtek/rtw89/reg.h | 81 ++++ drivers/net/wireless/realtek/rtw89/rtw8851b.c | 4 +- drivers/net/wireless/realtek/rtw89/rtw8852a.c | 4 +- drivers/net/wireless/realtek/rtw89/rtw8852b.c | 4 +- drivers/net/wireless/realtek/rtw89/rtw8852c.c | 28 +- drivers/net/wireless/realtek/rtw89/rtw8852c.h | 20 +- drivers/net/wireless/realtek/rtw89/rtw8922a.c | 363 +++++++++++++++ drivers/net/wireless/realtek/rtw89/rtw8922a.h | 73 +++ .../net/wireless/realtek/rtw89/rtw8922ae.c | 2 + 18 files changed, 1082 insertions(+), 17 deletions(-) create mode 100644 drivers/net/wireless/realtek/rtw89/efuse_be.c create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8922a.c create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8922a.h -- 2.25.1