From patchwork Sun Mar 19 12:56:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 71770 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp711176wrt; Sun, 19 Mar 2023 06:00:02 -0700 (PDT) X-Google-Smtp-Source: AK7set9hYMmcyYedEuMYGSCfQRVg/6yfbGli9opAHDF3U/Mlq8q8G6VQVaheMqWadmi1DIcVvjiO X-Received: by 2002:a17:902:e883:b0:19a:75b8:f50c with SMTP id w3-20020a170902e88300b0019a75b8f50cmr17728595plg.31.1679230802377; Sun, 19 Mar 2023 06:00:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679230802; cv=none; d=google.com; s=arc-20160816; b=zvmkiFGiep6N7eaTHmuLFPp7upvWSxL9f/VTakKQuptx8KaYSGt6zdFzwrF1S05mm1 dIxyWnXlClaWZJpndg+DFoRN3bTGhF7COvFDmzuhwLAK4o8TClQvCER+vYgVZutwd17y 8xlYZOlvnhXpmQkuzrxAfPeuojzOV1Y3qONlTWw/Nh80TsXoaxtkN+tqoT1wxLvJS4VB B7YijhWYDcnzLwT1OUSuLThQwp/OQNO8T1m36yryvNWjYl8LxKLVKQ2RTnXqiA2HA+lq rYzkzayxMLqKaT0qTNnWWgacfOAvKf5faYDQSDo686AfTURQ2/NlasBOEFV3L6V1arwg 8tFg== 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=EuZ22aO5VqvbQbiriwibsDn0e/wp9hVnjyh52aXWNDo1VBY9oHqLCOtXQFZGCujBKA pnpudyXKX1nc1zsOEwBjObe71QfIm7DIYZMilyIs0rL8gtVFDiy++nOW6K95OzN25ChB jeMaWTzZCukKlgW+w8CvFkIyFoleW+apHA/IPe3aw/VsPAarOJenolANtXhnNH1rRf4J N0KAlUy9hIQBv70W8Txs5WmO9FpoUKPLR+yJBf2Ad+UOwDC8SjTfzxixl28nNErz968D jo3a8ZQaeGjqrLG406wp2MXwYhRRHc9biZr0V/jhsXN52t8jdOoHRJRQlRldL0hw2aeV JIJw== 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 a6-20020a170902900600b001a194bda2desi7234770plp.487.2023.03.19.05.59.49; Sun, 19 Mar 2023 06:00:02 -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 S229695AbjCSM6m (ORCPT + 99 others); Sun, 19 Mar 2023 08:58:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230309AbjCSM6c (ORCPT ); Sun, 19 Mar 2023 08:58:32 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFCA21E9E5; Sun, 19 Mar 2023 05:58:20 -0700 (PDT) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1pdsc6-0001GX-2i; Sun, 19 Mar 2023 13:58:18 +0100 Date: Sun, 19 Mar 2023 12:56:40 +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 v14 2/9] dt-bindings: net: mediatek,net: add mt7981-eth binding Message-ID: <0b5681c2e3588360edac43b21608f3b283ebfe0c.1679230025.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?1760801117570663512?= X-GMAIL-MSGID: =?utf-8?q?1760801117570663512?= 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