From patchwork Wed Mar 1 19:53:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 63055 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3836925wrd; Wed, 1 Mar 2023 11:58:23 -0800 (PST) X-Google-Smtp-Source: AK7set/nETp3ALcMGVWG1YhvXD4C/1/0zuARarE5F+LhA+cBdnGIqacGY7wIUeO4DRHUFWQh2vhJ X-Received: by 2002:a05:6a20:42a3:b0:c7:6088:9bcf with SMTP id o35-20020a056a2042a300b000c760889bcfmr8071154pzj.31.1677700703671; Wed, 01 Mar 2023 11:58:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677700703; cv=none; d=google.com; s=arc-20160816; b=rz9uxpmRltnXbQQPpQIgHBvzo733Mzv3uBqQ86v3DA0yuY1E+Apvpf6kz2XC2+7lKp SlNT461eg87zIgGVATUz3GSxtbBVpp6Kq7F7iCmiNc6nsEM9daj8u52yIr4nFi+jFGYq TCvBu4boUZFb9Y6TeEK0V+KtyALNYmF77Le7egAU4rqHaKvaNbcEXPduyzanGFms3Zid bjj8D6duhEs0D7MAWlT4UdMJTd2VB2id/IQLdxqd0BKD7XPVYOm23pZ++uvVy0BxZRvz 5s15XD0sYf6e2Vyk67/porsRdzrPglRZv8VsG4O+O6fUn8x2qPNFynBTZ0dwZSM8Ncpx hntw== 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=sbpGwh/mMJ1PPg8clUW4kOyB6z79MkOMQT9wcbPNGak=; b=e2CJn9sLNmIF3hm9pnPQNgObJ4q6rrU0HPlZR1H7YuKKWpyztaTLvju6rfs9izTaKG YwmeFlD2JFTpQ+MVtEbwY0danZww6NSPoQj+gfNZVI8VuRAve8Zjh3uy2bhmHvt+Gnh/ KO+hCIoRKIiR3RuX1Oxx4ZZwA0U97WDoJjT8bLAWXIguCcc7J0qBzWOAk85vOt22EmcG lxuoYlpu0YGQMH9bRhytuuIFBatZTD2z4wbeYecAG3Pi74rUfMhmVWZRaRcGTDriIQKJ EO/9vXjWTfqTphcEALM8QJhLUo6g8ahdcY7FrUH2ypbzU3+NROsIKJOZOr8m1mmqGkTv 4Hpw== 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 29-20020a63125d000000b00502d5ee5d98si8883746pgs.86.2023.03.01.11.58.03; Wed, 01 Mar 2023 11:58:23 -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 S229793AbjCATyG (ORCPT + 99 others); Wed, 1 Mar 2023 14:54:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229652AbjCATyE (ORCPT ); Wed, 1 Mar 2023 14:54:04 -0500 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07BFF48E1B; Wed, 1 Mar 2023 11:53:53 -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 1pXSWN-0007Gg-2m; Wed, 01 Mar 2023 20:53:52 +0100 Date: Wed, 1 Mar 2023 19:53:44 +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 Cc: Jianhui Zhao , =?iso-8859-1?q?Bj=F8rn?= Mork Subject: [RFC PATCH v11 02/12] dt-bindings: net: mediatek,net: add mt7981-eth binding Message-ID: <6a2c16f7523752c1784bf6b6539ff146fe7ba45f.1677699407.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?1759196692767560996?= X-GMAIL-MSGID: =?utf-8?q?1759196692767560996?= 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 7ef696204c5a7..b7f6474dc5abd 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