Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp784033pxb; Tue, 5 Apr 2022 23:10:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNiYPwdUmp/S3lXaroF8zT0a18W20T6Q/GsMXqMiWyHNIuLq527Iz0QBMG9OoyRcncImXj X-Received: by 2002:a17:902:c411:b0:156:af97:1a4c with SMTP id k17-20020a170902c41100b00156af971a4cmr7169892plk.48.1649225458048; Tue, 05 Apr 2022 23:10:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649225458; cv=none; d=google.com; s=arc-20160816; b=r4gTdekFTxnn380O7MAiaQsx4b63mVydbnvs79O1XAczv31ZOwoaBDHuaByXcxbp6F PpGaBB3KswHnhTaO/fuJBs1CdbbglkHmi1+rOOeUZdbhBWWE3KcjRT30QzapbA5GsIE3 XikK4J+n9nFUjw5tKHQeqlwCZXxlLW0ShdyR7qS7FB9W/NRVaMg45v4O8QC7PllgvHWK qnvXcWjTlPpO+tjz6RuJwnE/JAQn2w8yEayST8o3UN3R9gbzeSENjDBtUaOhV2qXsqwy XgsETtMV3Id8vfb4GQpMEMpKAgiOWO/FJJCzDuMLshmgc0j3RrSYnlrs/5GWd3jrYFq0 RasQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YY6foXzBPkeKgwXFtBBUDugou4a7a9Ouq6nJmtz/VTE=; b=GqcM7LTEsPjH7l21dgTySnWD9Qj2654AmyEm8mjv0ghqqbrzDSup+boxQ6cq11+mn2 0Ng3PXZbQKZJwAlV/fH+RyeQhgFjk18xbThNV9FJTZhPOZHFC6jeERBxAWYnRF+obN4S dN69+35QGqp/4BsfbWT/NrpnaM3zVKtqJmU8bLMHbbjOg2hxvM92+oyG3H8doD0Df94q f85/fqBr7EFt1bOShZpTVpB3u4q5aulJRyV3KNOH70kuHs36UCbA3KsOLZAZYLav/25I VZmapwqhK278wjl5yMGk1k3yk9885TGas2vYfDfX2CrmELPRKu9JUH5EmeVwMl29hm42 h0rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=HJX9KH3+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d192-20020a6368c9000000b0038233be8161si14247315pgc.645.2022.04.05.23.10.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 23:10:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=HJX9KH3+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8BAFF4B63C4; Tue, 5 Apr 2022 22:57:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444524AbiDFCOx (ORCPT + 99 others); Tue, 5 Apr 2022 22:14:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350686AbiDEUP0 (ORCPT ); Tue, 5 Apr 2022 16:15:26 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B20FF9FA0; Tue, 5 Apr 2022 12:58:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=YY6foXzBPkeKgwXFtBBUDugou4a7a9Ouq6nJmtz/VTE=; b=HJX9KH3+gWEKbHXeU2u6OfEqLE sIY/1dU9ZKoUO9DdUg9FaLMEjlven46KBL0eQMSxoY0sszKgi3vvdiWWiG0pB6RQjYtkUKHsVWkOY 2nngF51Dr+gE15aqMVzo66OKUnJh4nuksWQz9SwZGodmGvy6AQyYhGNRWstQfMHC8gAc=; Received: from p200300daa70ef200456864e8b8d10029.dip0.t-ipconnect.de ([2003:da:a70e:f200:4568:64e8:b8d1:29] helo=Maecks.lan) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1nbpJR-00035V-B8; Tue, 05 Apr 2022 21:58:01 +0200 From: Felix Fietkau To: netdev@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Matthias Brugger , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Lorenzo Bianconi Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 04/14] dt-bindings: arm: mediatek: document WED binding for MT7622 Date: Tue, 5 Apr 2022 21:57:45 +0200 Message-Id: <20220405195755.10817-5-nbd@nbd.name> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405195755.10817-1-nbd@nbd.name> References: <20220405195755.10817-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Lorenzo Bianconi Document the binding for the Wireless Ethernet Dispatch core on the MT7622 SoC, which is used for Ethernet->WLAN offloading Add related info in mediatek-net bindings. Signed-off-by: Lorenzo Bianconi Signed-off-by: Felix Fietkau --- .../arm/mediatek/mediatek,mt7622-wed.yaml | 50 +++++++++++++++++++ .../devicetree/bindings/net/mediatek-net.txt | 2 + 2 files changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-wed.yaml diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-wed.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-wed.yaml new file mode 100644 index 000000000000..787d6673f952 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-wed.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/arm/mediatek/mediatek,mt7622-wed.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: MediaTek Wireless Ethernet Dispatch Controller for MT7622 + +maintainers: + - Lorenzo Bianconi + - Felix Fietkau + +description: + The mediatek wireless ethernet dispatch controller can be configured to + intercept and handle access to the WLAN DMA queues and PCIe interrupts + and implement hardware flow offloading from ethernet to WLAN. + +properties: + compatible: + items: + - enum: + - mediatek,mt7622-wed + - const: syscon + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + #include + soc { + #address-cells = <2>; + #size-cells = <2>; + wed0: wed@1020a000 { + compatible = "mediatek,mt7622-wed","syscon"; + reg = <0 0x1020a000 0 0x1000>; + interrupts = ; + }; + }; diff --git a/Documentation/devicetree/bindings/net/mediatek-net.txt b/Documentation/devicetree/bindings/net/mediatek-net.txt index 13cb12ee4ed6..1c8dc44bbb52 100644 --- a/Documentation/devicetree/bindings/net/mediatek-net.txt +++ b/Documentation/devicetree/bindings/net/mediatek-net.txt @@ -46,6 +46,8 @@ Optional properties: - mediatek,cci-control: phandle to the cache coherent interconnect node - mediatek,hifsys: phandle to the mediatek hifsys controller used to provide various clocks and reset to the system. +- mediatek,wed: a list of phandles to wireless ethernet dispatch nodes for + MT7622 SoC. * Ethernet MAC node -- 2.35.1