Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1015225pxb; Wed, 6 Apr 2022 06:46:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynblybZsqtwOetSqDAt727wkeAgFbPAD2XigA9eBiarsFi3QpYXMvMHEpSDXER6hBJsVgt X-Received: by 2002:a05:6a00:1496:b0:4fb:34a7:dcce with SMTP id v22-20020a056a00149600b004fb34a7dccemr8971374pfu.70.1649252794084; Wed, 06 Apr 2022 06:46:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649252794; cv=none; d=google.com; s=arc-20160816; b=v3QhNKGu2Y7FuENV8Dz1s+yu0Jp32zilY+wtO838xRPbEfl7bk8Q9/ZunX9MkY+shA WQFqmCDVu4XhNmHVPrGo6xgDMVDO0DqG1UJvekwp5sz+5Qlle34UF6MOAvJQROk508LN IWhPlp5lgkbo6tF8urpNGnxs+Jgge9HDbyXpWY7yzbeTvltfMJIl3JZdMrJjPhSemOVz Ya6Ame2kc7XXEMHRnpki45lb7IgyrnaiuyD3S7VQCX8fq/4cY5ArNE0SDCQIZNobFcVm 0e3RQq54PeYpZOSr/u2/d2CfyphdXW6W16cSI6kWDF2yB7IiFkIH6PLkr3pWpstXGBEA KAqw== 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=0ZFTEBC50mhc9NZ1AdGDIcklV5epX+TBR7wn/4sHSsA=; b=tRvhfcX662QyJjvc1dqVncffKoBmNDUeerXdVj2Qw337en3hTE71cWRnBg+QSWRGmr V25UUBpZaAdv6eqyf+O9Eszkaqhzu1kX26ksnmKXx7u1tLhztSANIWTSGTt+WXtr6AC9 o3vW7b6oRT1IM653HjCbXdlVLvP1xoQz1BJC/HL5xdHoSLLICGOGVb5NODG/7GkgxAtE 827fsYLrcm68jNi0G9yLVyr9gRcBDugLpm3pQyjPemEk/MknrGFS3GPKhnTsm1TZhcRJ 8xfE3ADEp4vfFUZ7/VFsSijRgoooEykr+b9BdFT7qk1YOqDOPuxNp+S/Y/shyU/+bO2M SA5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=nCz0Pcqe; 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 w2-20020a636202000000b00398d8b1871bsi15144526pgb.44.2022.04.06.06.46.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:46:34 -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=nCz0Pcqe; 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 C657A4D7A04; Wed, 6 Apr 2022 05:37:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1454989AbiDFCPm (ORCPT + 99 others); Tue, 5 Apr 2022 22:15:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351645AbiDEUP3 (ORCPT ); Tue, 5 Apr 2022 16:15:29 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0607AF9FB0; Tue, 5 Apr 2022 12:58:18 -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=0ZFTEBC50mhc9NZ1AdGDIcklV5epX+TBR7wn/4sHSsA=; b=nCz0PcqeDtwxrNP6xu+aPkukmo WkXu6B3ykehXx8wDlYxkTJRrvrEwA7/YDoO+fgDdjKGEhvE9ky5PzFxifDcSpHZmfk/CIJzmNzzzX bvIyLGhUNDbBw+hFz13GGpIUyY6gSHCOi3YLa/QXliE3aHtPxq8s0flQJ+fxqH2nsv3c=; 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 1nbpJS-00035V-6F; Tue, 05 Apr 2022 21:58:02 +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 05/14] dt-bindings: arm: mediatek: document the pcie mirror node on MT7622 Date: Tue, 5 Apr 2022 21:57:46 +0200 Message-Id: <20220405195755.10817-6-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 This patch adds the pcie mirror document bindings for MT7622 SoC. The feature is used for intercepting PCIe MMIO access for the WED core Add related info in mediatek-net bindings. Signed-off-by: Lorenzo Bianconi Signed-off-by: Felix Fietkau --- .../mediatek/mediatek,mt7622-pcie-mirror.yaml | 42 +++++++++++++++++++ .../devicetree/bindings/net/mediatek-net.txt | 2 + 2 files changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-pcie-mirror.yaml diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-pcie-mirror.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-pcie-mirror.yaml new file mode 100644 index 000000000000..9fbeb626ab23 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-pcie-mirror.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/arm/mediatek/mediatek,mt7622-pcie-mirror.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: MediaTek PCIE Mirror Controller for MT7622 + +maintainers: + - Lorenzo Bianconi + - Felix Fietkau + +description: + The mediatek PCIE mirror provides a configuration interface for PCIE + controller on MT7622 soc. + +properties: + compatible: + items: + - enum: + - mediatek,mt7622-pcie-mirror + - const: syscon + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + pcie_mirror: pcie-mirror@10000400 { + compatible = "mediatek,mt7622-pcie-mirror", "syscon"; + reg = <0 0x10000400 0 0x10>; + }; + }; diff --git a/Documentation/devicetree/bindings/net/mediatek-net.txt b/Documentation/devicetree/bindings/net/mediatek-net.txt index 1c8dc44bbb52..f18d70189375 100644 --- a/Documentation/devicetree/bindings/net/mediatek-net.txt +++ b/Documentation/devicetree/bindings/net/mediatek-net.txt @@ -48,6 +48,8 @@ Optional properties: various clocks and reset to the system. - mediatek,wed: a list of phandles to wireless ethernet dispatch nodes for MT7622 SoC. +- mediatek,pcie-mirror: phandle to the mediatek pcie-mirror controller for + MT7622 SoC. * Ethernet MAC node -- 2.35.1