Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp330478pxb; Fri, 14 Jan 2022 06:39:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtzIBg794M01iZ+ibO+tqhqK6RlahmBkH42d3mXivSO+dFg3x/1Cds1caIZ7isMipjhPhD X-Received: by 2002:a17:906:8a75:: with SMTP id hy21mr7327972ejc.713.1642171163075; Fri, 14 Jan 2022 06:39:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642171163; cv=none; d=google.com; s=arc-20160816; b=Shjjjou867yqaHWk2VUoM0KAMycF1EZSiSu/1ilCK2BKzCLhWorvAe77/h6JQ3RbME +K/1OR7lolfseVXH5e8bLxwh1f/41KswfTWCpb2hN4vayBN8lNHWWWftVSQgog5C+rof FTMz+r1nPPcycw9bTvJ67UObWD3EOr5tl7Y/T+G0RWOP5f9OYa6GN0Jx2TW9WKlTLbKy 3F1B9ABOphgqmZePfZ9bdGhipgu8BF+LQLMT9a2IN7USc4Cs4mY3bFfPcuHgUXiVcLLt JCsjxfy+Os89Z++OuZeqoSAfdNaq7bO+hAAnGxGwSWcMtoeyghto6B+DxtQ7cfWsn0mv 73xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=aL8dfEYEtb1Ze9lZoK+2ymfGe0E7H9aC/FK+pg7SNbU=; b=lhZpc+Qc7s3zvTOaEPVL+YriWM3brkeLwOCtezf4TwN5k/LH7C21kA7KKYpWsPcCH1 89TE57zVxSO+BVUkEPg/OOxcoUNFHzT/waUhqrdmHVFduThCaDHA11VH7tj/EUijLHUJ +VooInRCSBm6uaooWj7Iu202odNcy5sXpsY9MTUUsRNB7tm+xi2r4C/k4hrxdUysQi3Y gOeEVyB4BIhliWJOuFiv4RKlBcNpWSV2Mx5tqvG4LyrTY1glkRmZzmGVSHPSqMSdKi0y oMUdng8KResO3NaQ3YYhf06r4q3rSYvP7BNiRI5ahC44FqUJmeIg/kVQMUcId8tretJT PRiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si3421205edw.210.2022.01.14.06.39.05; Fri, 14 Jan 2022 06:39:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238914AbiANCxl (ORCPT + 71 others); Thu, 13 Jan 2022 21:53:41 -0500 Received: from mailgw01.mediatek.com ([60.244.123.138]:36542 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S236093AbiANCxk (ORCPT ); Thu, 13 Jan 2022 21:53:40 -0500 X-UUID: 0ff2ef2d125445589e47bb04f4a6477d-20220114 X-UUID: 0ff2ef2d125445589e47bb04f4a6477d-20220114 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 2006902256; Fri, 14 Jan 2022 10:53:36 +0800 Received: from MTKMBS34N1.mediatek.inc (172.27.4.172) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 14 Jan 2022 10:53:34 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS34N1.mediatek.inc (172.27.4.172) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 14 Jan 2022 10:53:27 +0800 Received: from mcddlt001.gcn.mediatek.inc (10.19.240.15) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 14 Jan 2022 10:53:26 +0800 From: Bo Jiao To: Felix Fietkau CC: linux-wireless , Ryder Lee , Xing Song , Sujuan Chen , Shayne Chen , "Evelyn Tsai" , linux-mediatek , Peter Chiu , Subject: [PATCH v3 1/4] dt-bindings: net: wireless: mt76: document bindings for MT7986 Date: Fri, 14 Jan 2022 10:53:20 +0800 Message-ID: X-Mailer: git-send-email 2.17.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Peter Chiu Add an entry for MT7986 SoC. Signed-off-by: Peter Chiu Cc: devicetree@vger.kernel.org --- v3: - fix yamllint warnings and errors - add 'minItems: 1' to keep 1 reg entry being valid --- .../bindings/net/wireless/mediatek,mt76.yaml | 31 +++++++++++++++++-- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml b/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml index 1489d3c..d630a7e 100644 --- a/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml +++ b/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml @@ -18,7 +18,7 @@ description: | wireless device. The node is expected to be specified as a child node of the PCI controller to which the wireless chip is connected. Alternatively, it can specify the wireless part of the MT7628/MT7688 - or MT7622 SoC. + or MT7622/MT7986 SoC. allOf: - $ref: ieee80211.yaml# @@ -29,9 +29,11 @@ properties: - mediatek,mt76 - mediatek,mt7628-wmac - mediatek,mt7622-wmac + - mediatek,mt7986-wmac reg: - maxItems: 1 + minItems: 1 + maxItems: 3 interrupts: maxItems: 1 @@ -39,6 +41,17 @@ properties: power-domains: maxItems: 1 + memory-region: + maxItems: 1 + + resets: + maxItems: 1 + description: + Specify the consys reset for mt7986. + + reset-name: + const: consys + mediatek,infracfg: $ref: /schemas/types.yaml#/definitions/phandle description: @@ -165,7 +178,7 @@ required: - compatible - reg -additionalProperties: false +unevaluatedProperties: false examples: - | @@ -231,3 +244,15 @@ examples: power-domains = <&scpsys 3>; }; + + - | + wifi@18000000 { + compatible = "mediatek,mt7986-wmac"; + resets = <&watchdog 23>; + reset-names = "consys"; + reg = <0x18000000 0x1000000>, + <0x10003000 0x1000>, + <0x11d10000 0x1000>; + interrupts = ; + memory-region = <&wmcpu_emi>; + }; -- 2.18.0