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: 9357 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6927850vqo; Mon, 15 May 2023 06:38:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4o0aT1PylfGVztlSxrxIDUpTzlOfjiwceC9PB85azo5N1rS9QylgE5x+yrnsOzxbxch0y3 X-Received: by 2002:a17:903:41ca:b0:1ac:3fe0:d6ad with SMTP id u10-20020a17090341ca00b001ac3fe0d6admr41217537ple.65.1684157912091; Mon, 15 May 2023 06:38:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684157912; cv=none; d=google.com; s=arc-20160816; b=EruFf3EBC69BtA61ty/dzgO1Web6WIRzHVIUZDLCQpj7IBzryUnKpDri7EzmmH3I8m qa1qkzG4XDB9o5RVbZBe6j3G0Ku9xVDCKDYm5qj1xga3OZAY5GlHFzLNLRxR1ny1h8Gf dLqi6C4f8sau4Nt4ylOc1QylsN19bIJysv8TohBT+hv0KfEPBnz2++6NOG7EJHdE3jbn 3XTkvi32yQqagOxSvJoAuIy7rRnhEjAMN2T5NCe9+Xi3qw1Qw56Wj0hjC/1jds2gpelq fMzqw/bGgojhldKWKWeP5+VTQ3ti3rxSUCnnFfoKwXGF4p4vclajOgco7Xpe8cSFGnMp aVow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date; bh=0AAVFnUhWh2styzdCIE1FEsSg40WAYGfK3WJ+kEBMnc=; b=C+yTmsdHrCbHGMtI7PeQIEgCQk27N4EnTK2dnMK1W5iIZa9VdK6atomy+9PB9Q+gIL 7uQ7M5mvVpDhXqLn2bEwRvU/Y2gFXIS9+MYCQdUL/Slh3vOc57xFH3Qamjn8G9vX+HUT ai91wiAcURFQQYekmxSYt1LCMqqyjTkD+Tni1XYMw5UB0J7rAogdHH52L1Ta0jnXh7dY tkgaSAszQcNAhw2wd/v05tVSXMcYCg4/3l/xnGOtXy8QlgLxRArbfHndSt72TLvV4ahO XM1RNt+YTa0Ocg0r1sYq+D0rMxHzuabYRtEw80PZhDiDuPWOVPUrEghcipZ4Hvf9C+uG KSvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l2-20020a170902ec0200b001ac896ff65dsi14990982pld.480.2023.05.15.06.38.17; Mon, 15 May 2023 06:38:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229695AbjEON1E (ORCPT + 99 others); Mon, 15 May 2023 09:27:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242106AbjEON1B (ORCPT ); Mon, 15 May 2023 09:27:01 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C0BA1B7; Mon, 15 May 2023 06:26:58 -0700 (PDT) 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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765967567077268019?= X-GMAIL-MSGID: =?utf-8?q?1765967567077268019?= 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