From patchwork Mon May 15 13:23:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 13241463 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F08D6C77B75 for ; Mon, 15 May 2023 13:27:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=WD6dnXPPuilOap7EHserScF6xlAjI/UV49bgx07ZUXw=; b=CsqSgymo9iM5um gHg3HzWGe0TiOIr0ukCCXtGmcnTfiwvR2zK09tV4azKZDdATjFaXlaFHLKA+2iQprSSAeslK7j3Q3 8ikiwCSBjlHX4lnAUZbAllFu4N9Q39jY8MM70Co77+TexVvpzm202l6tcW52ltty65rrFBBjtgkSX qVCpG12iDytEKefiR+M1xYvuFjlkT9pCz2Ii970K8WbeWIsgo/sZ5q3Jf9nZzSBhixLuCWUIgUAz+ HzhnFzK3jxm1kZMhK746DRqaZhUDn5PvrB/uGBmn7uWsphoW6p9vOvJOxUIQ0lbLi9eEh86ufnNPo s5dqBr4fQvLkZnrS9Btw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pyYEH-002G4B-1H; Mon, 15 May 2023 13:27:09 +0000 Received: from pidgin.makrotopia.org ([185.142.180.65]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pyYEE-002G28-1S; Mon, 15 May 2023 13:27:07 +0000 Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1pyYDQ-0003Bx-34; Mon, 15 May 2023 13:26:18 +0000 Date: Mon, 15 May 2023 15:23:27 +0200 From: Daniel Golle To: Felix Fietkau , Lorenzo Bianconi , Ryder Lee , Shayne Chen , Sean Wang , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Stephen Boyd , Jonathan Cameron , Peter Chiu , Daniel Golle , Frank Wunderlich , Alexander Couzens , Sujuan Chen , Bo Jiao , Nicolas Cavallari , Howard Hsu , MeiChia Chiu , Johannes Berg , Wang Yufen , Lorenz Brun , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 0/2] wifi: mt76: mt7915: add support for MT7981 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230515_062706_581848_CB480E11 X-CRM114-Status: UNSURE ( 9.80 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support for the MediaTek MT7981 SoC which is similar to the MT7986 but with a newer IP cores and only 2x ARM Cortex-A53 instead of 4x. Unlike MT7986 the MT7981 can only connect a single wireless frontend, usually MT7976 is used for DBDC. To distinguish the MT7981 Wi-Fi MAC, add new device tree compatible 'mediatek,mt7981-wmac'. Changes since v1: * rename mt7986_* to mt798x_* where appropriate * WARN_ON(1) if neither is_mt7981() nor is_mt7986() returns true * add device tree bindings for mediatek,mt7981-wmac Alexander Couzens (1): wifi: mt76: mt7915: add support for MT7981 Daniel Golle (1): dt-bindings: net: wireless: mt76: add bindings for MT7981 .../bindings/net/wireless/mediatek,mt76.yaml | 1 + .../net/wireless/mediatek/mt76/mt76_connac.h | 10 ++ .../net/wireless/mediatek/mt76/mt7915/Kconfig | 6 +- .../wireless/mediatek/mt76/mt7915/Makefile | 2 +- .../wireless/mediatek/mt76/mt7915/coredump.c | 7 +- .../net/wireless/mediatek/mt76/mt7915/dma.c | 6 +- .../wireless/mediatek/mt76/mt7915/eeprom.c | 7 +- .../net/wireless/mediatek/mt76/mt7915/init.c | 6 +- .../net/wireless/mediatek/mt76/mt7915/mac.c | 2 +- .../net/wireless/mediatek/mt76/mt7915/mcu.c | 3 + .../net/wireless/mediatek/mt76/mt7915/mmio.c | 17 +- .../wireless/mediatek/mt76/mt7915/mt7915.h | 14 +- .../net/wireless/mediatek/mt76/mt7915/regs.h | 13 +- .../net/wireless/mediatek/mt76/mt7915/soc.c | 162 ++++++++++++------ 14 files changed, 180 insertions(+), 76 deletions(-) base-commit: 0d9b41daa5907756a31772d8af8ac5ff25cf17c1