From patchwork Mon Feb 13 21:34:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 56575 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2590657wrn; Mon, 13 Feb 2023 13:41:57 -0800 (PST) X-Google-Smtp-Source: AK7set8zmFVOuRjgcimUMexdZumB2XYO61h3ul9qAaP9vMEXCjDBysjEWurmon/PH85tbfsY9D8m X-Received: by 2002:a17:906:3711:b0:8b1:7fa:51da with SMTP id d17-20020a170906371100b008b107fa51damr470448ejc.52.1676324517500; Mon, 13 Feb 2023 13:41:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676324517; cv=none; d=google.com; s=arc-20160816; b=Yuuv2RND5BOkYAaTqTcRV8xz0n/iMWhLWONfikF+MnUs67p/lGitsc4cgdEO/9y7BU CxZ579RipX5rYx+SgAKgkt8j7tktCLi+xcgYZK5Kw0jDeo3tgOalJekT+djoECLtqTiX R0NOJ5t1w+4j5Mh/VnOpF4A+hcU9JDdXZlMnrz3Z8758OFkucdTzsyd526TiivMGZxnx 5CZ2B/o/2tG6q1K09ELn8JiHVt1jykl8Htp8uFipXTIw212BR+toUwi4GDLxNUDC6hoG AKQnIoiRtusW3pxW/Y4Psg34qVlzIZ6jkCmoOuytcCGvvfkK2L31+fkYnV4VRTQTm61i jUEg== 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=i9FFJu+/8JoxUZ/Qizzg3m+LN+qNHaJ6GPFsHzBNXP0=; b=QvOBRgel5fYx4AN0UsfgqXvKQjbCtAZkRbWNquorJfeqcU87HsCdAlZJx8MRQjUw+U g+8zdWvHQNeC9v1enM8z8ONA1/RzJj+5CXXY9jh2hqDi3d+He7IhgwNbuyBTMz0tDnXv RfJ7j0bA2PYGOGLjjg29U/V/tPCR1CG7/2cm/bOKOCQtez82LJHIEoerzR1DYNEEBIdQ 7tCxI4QBC+z/oCJ5tlZ+oP0T35mj462t0YSUBF/SV7ItUU+rxm/PHLeWgN/ptLgDH8Rw mHMi7wSPO0QxgUOX9dF81QRgenHdUR9LbBn3HzYrJyOKdt6KVpAgVAQaBRKfY5LhxGoX zfwg== 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 bp14-20020a170907918e00b0088378cebacesi14568028ejb.933.2023.02.13.13.41.34; Mon, 13 Feb 2023 13:41:57 -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 S230516AbjBMVgV (ORCPT + 99 others); Mon, 13 Feb 2023 16:36:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230472AbjBMVgL (ORCPT ); Mon, 13 Feb 2023 16:36:11 -0500 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E43912200C; Mon, 13 Feb 2023 13:36:05 -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 1pRgUV-0006fY-1r; Mon, 13 Feb 2023 22:36:03 +0100 Date: Mon, 13 Feb 2023 21:34:25 +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: [PATCH v6 02/12] dt-bindings: net: mediatek,net: add mt7981-eth binding Message-ID: 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?1757753657158704328?= X-GMAIL-MSGID: =?utf-8?q?1757753657158704328?= Introduce DT bindings for the MT7981 SoC to mediatek,net.yaml. Signed-off-by: Daniel Golle Reviewed-by: Rob Herring --- .../devicetree/bindings/net/mediatek,net.yaml | 52 +++++++++++++++++-- 1 file changed, 47 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Documentation/devicetree/bindings/net/mediatek,net.yaml index 7ef696204c5a..925ab2982d54 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-pci: false + - if: properties: compatible: @@ -206,6 +214,45 @@ allOf: mediatek,wed: false + mediatek,wed-pci: 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 +289,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