From patchwork Thu Mar 9 10:55:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 66797 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp230478wrd; Thu, 9 Mar 2023 03:18:43 -0800 (PST) X-Google-Smtp-Source: AK7set/EvJP0bboXtPxsvBmbBOXscyy28+zEN+xWTIoFj7mWZ4Js1Cb0fhYTP58Wv5Ztvke2VH1F X-Received: by 2002:a17:902:8a82:b0:19e:874e:7275 with SMTP id p2-20020a1709028a8200b0019e874e7275mr17142248plo.23.1678360723575; Thu, 09 Mar 2023 03:18:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678360723; cv=none; d=google.com; s=arc-20160816; b=IqIA430/H0lSuSye1hqmerz/x9wNotAji2DIHlCetWF19K7SWu+IKQK2FjuDjrXHjK YBeFls1/Saz0KN4pUqscYyUI27JZd+EVuRQjpB8oIdv2XWcyN8vI6xFaEUeBgLRvGkjK gym/+Jh8KQ8r+73d6Ye3PtgYze1ydFOFwvADLLvBojZHbzCJbQ3CCE9dMSOg2mGY1iRJ VmX9fqWL1xjBzMU4gpBo0B8V4/FtN/wb/6J+Dy9lAd17D4vb7idZE4Rdz1ZfSCNLC5IE 1c/5l2FB6eOWOr2GH/7NY1NdCIcUrfu3o7Lo+faqE1a9vYNEudgpWqq77LLDXCpAOa2x PHQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=pD8CNt7zOQHo68XSBOssdMjeO5m9fd+uX7d1VRW5A20=; b=XLhhZsUbsXBR9HwBsOlgerqb6ynxJiErvygajCSoBsf/VrC4JrQQ7AvEntt+i8WETf unsu7j+Ui7S2+JuvDIXb/PNef0cpiDLD+PK2J04GKtGVBnlDo4uskwdow8htLrdHfwVx S59aqhbhIKeNv2XAA0w4I9ghIV1IrIRjqMfnRTPnb1ZWJW+7bZN1dpNKnpst/M64hUHT AFOictcwI7dpDhPLF1ccCKLyzKSk330EMTv4Q7DxvyglMw2tB5blOZGWmTaYvB3lCybo 7h6wpxZY0APwWqRcJG26XLQLUDQjYtShTfAwoDUlEr2tW3mmjkXSN1HJ7zyqzv1DMp0X 5Sbg== 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 k7-20020a6568c7000000b004fb647a765bsi16584048pgt.473.2023.03.09.03.18.29; Thu, 09 Mar 2023 03:18:43 -0800 (PST) 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 S230432AbjCILBN (ORCPT + 99 others); Thu, 9 Mar 2023 06:01:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230526AbjCIK7Z (ORCPT ); Thu, 9 Mar 2023 05:59:25 -0500 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E38FE9F3C; Thu, 9 Mar 2023 02:57:27 -0800 (PST) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1paDx4-0003ZW-39; Thu, 09 Mar 2023 11:56:51 +0100 Date: Thu, 9 Mar 2023 10:55:13 +0000 From: Daniel Golle To: devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Russell King , Heiner Kallweit , Lorenzo Bianconi , Mark Lee , John Crispin , Felix Fietkau , AngeloGioacchino Del Regno , Matthias Brugger , DENG Qingfang , Landen Chao , Sean Wang , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , Vladimir Oltean Cc: =?iso-8859-1?q?Bj=F8rn?= Mork , Frank Wunderlich , Alexander Couzens Subject: [PATCH net-next v13 02/16] dt-bindings: net: mediatek,net: add mt7981-eth binding Message-ID: <60ec18e3e31a9e639f1b66e354daa150e23b97e3.1678357225.git.daniel@makrotopia.org> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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?1759888774148379638?= X-GMAIL-MSGID: =?utf-8?q?1759888774148379638?= Introduce DT bindings for the MT7981 SoC to mediatek,net.yaml. Reviewed-by: Rob Herring Signed-off-by: Daniel Golle --- .../devicetree/bindings/net/mediatek,net.yaml | 53 +++++++++++++++++-- 1 file changed, 48 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Documentation/devicetree/bindings/net/mediatek,net.yaml index 7ef696204c5a..b7f6474dc5ab 100644 --- a/Documentation/devicetree/bindings/net/mediatek,net.yaml +++ b/Documentation/devicetree/bindings/net/mediatek,net.yaml @@ -21,6 +21,7 @@ properties: - mediatek,mt7623-eth - mediatek,mt7622-eth - mediatek,mt7629-eth + - mediatek,mt7981-eth - mediatek,mt7986-eth - ralink,rt5350-eth @@ -78,6 +79,11 @@ properties: description: List of phandles to wireless ethernet dispatch nodes. + mediatek,wed-pcie: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the mediatek wed-pcie controller. + dma-coherent: true mdio-bus: @@ -123,6 +129,8 @@ allOf: mediatek,wed: false + mediatek,wed-pcie: false + - if: properties: compatible: @@ -160,6 +168,8 @@ allOf: description: Phandle to the mediatek pcie-mirror controller. + mediatek,wed-pcie: false + - if: properties: compatible: @@ -206,6 +216,44 @@ allOf: mediatek,wed: false + mediatek,wed-pcie: false + + - if: + properties: + compatible: + contains: + const: mediatek,mt7981-eth + then: + properties: + interrupts: + minItems: 4 + + clocks: + minItems: 15 + maxItems: 15 + + clock-names: + items: + - const: fe + - const: gp2 + - const: gp1 + - const: wocpu0 + - const: sgmii_ck + - const: sgmii_tx250m + - const: sgmii_rx250m + - const: sgmii_cdr_ref + - const: sgmii_cdr_fb + - const: sgmii2_tx250m + - const: sgmii2_rx250m + - const: sgmii2_cdr_ref + - const: sgmii2_cdr_fb + - const: netsys0 + - const: netsys1 + + mediatek,sgmiisys: + minItems: 2 + maxItems: 2 + - if: properties: compatible: @@ -242,11 +290,6 @@ allOf: minItems: 2 maxItems: 2 - mediatek,wed-pcie: - $ref: /schemas/types.yaml#/definitions/phandle - description: - Phandle to the mediatek wed-pcie controller. - patternProperties: "^mac@[0-1]$": type: object