From patchwork Thu Feb 9 23:27:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 55128 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp636517wrn; Thu, 9 Feb 2023 15:35:15 -0800 (PST) X-Google-Smtp-Source: AK7set+y4rH4nf38G4nfKKk41kBUHfRiUqLvpY9WU/B+cArOIOKGPvYqSLnAit22Omth5Rh+oE2W X-Received: by 2002:a05:6a20:549c:b0:bc:244a:c43e with SMTP id i28-20020a056a20549c00b000bc244ac43emr14864702pzk.55.1675985715086; Thu, 09 Feb 2023 15:35:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675985715; cv=none; d=google.com; s=arc-20160816; b=vSMyIR6vCLBvtzEkz2U29TJx0pzd+dZIqmQ7ZqRyD1Sw/U4xhRw0gkKGi7sLlp4LRg Oirakh4JBXnjj8ApEso0mexL5ak19H5CATW9s/P9qTTvYuqLPyH36vk1ZYtW4F74oSrm tUyoB6XYOQJMCbmlDxQO9vu9iNR3oLNhKro9IiKWE9wT3U4xzbVkiYkmQKJl93n5j+DZ YQAnmx46jWq6zHXHUIqw8zOUM32P5m5FPKZ0yBqTpsEv6Bsdtfqaa/LKWt+ctnoToXv2 6utTqWWIxS4a/9Pny9IEnFLVMDBBzk59nHWz+cJpg1av+HE6s13oPuGJSRHVPUoF0w0Q 5idA== 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=eUaTMbe1nrFKniHy0sN329rDJHvn37QP+N78wZRU+gI=; b=KE0x6xYbf88Dtzo3PqwtPImDrI1zGnb3edfAMExmSpg1urBECvVew91LFPOizwF0qB 6GT0yed+0qqw9SrZPIm5UDttIaoCaDc8Xj/xO7/thvjZdZC0093lFQzEQBlyMfq+/uJF +Dl/HDJiwexQard0jN1c0IkpzGLlhBwV6D3F3QZ1dPhsskRIHahi2YrIKwqMYKMjbdpk z9gpFD793B750gN6Uix+tRxIQkJWDhrSLko8iHoNVQl2vu1pBTfrcif+S2HzxKC/qU0h zgciNvapuOKushaSb0vDp6CGl1y9f9oxkQLMg/KeNuPmYt57OJQSYX7nTILLgNqQNFx1 qI2Q== 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 h2-20020a635302000000b004e182a64f33si2027209pgb.533.2023.02.09.15.35.02; Thu, 09 Feb 2023 15:35:15 -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 S230477AbjBIX3t (ORCPT + 99 others); Thu, 9 Feb 2023 18:29:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230309AbjBIX3q (ORCPT ); Thu, 9 Feb 2023 18:29:46 -0500 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01EED76B3; Thu, 9 Feb 2023 15:29:45 -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 1pQGMJ-0002DS-2G; Fri, 10 Feb 2023 00:29:43 +0100 Date: Thu, 9 Feb 2023 23:27:31 +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 v3 02/12] dt-bindings: net: mediatek,net: add mt7981-eth binding Message-ID: <83a7d040126f213b4c45072044a7e069218650d9.1675984550.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?1757398396823161011?= X-GMAIL-MSGID: =?utf-8?q?1757398396823161011?= Introduce DT bindings for the MT7981 SoC to mediatek,net.yaml. Signed-off-by: Daniel Golle --- .../devicetree/bindings/net/mediatek,net.yaml | 43 ++++++++++++++++++- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Documentation/devicetree/bindings/net/mediatek,net.yaml index 7ef696204c5a..76a46a7b8228 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 @@ -210,7 +211,7 @@ allOf: properties: compatible: contains: - const: mediatek,mt7986-eth + const: mediatek,mt7981-eth then: properties: interrupts: @@ -225,8 +226,8 @@ allOf: - const: fe - const: gp2 - const: gp1 - - const: wocpu1 - const: wocpu0 + - const: sgmii_ck - const: sgmii_tx250m - const: sgmii_rx250m - const: sgmii_cdr_ref @@ -247,6 +248,44 @@ allOf: description: Phandle to the mediatek wed-pcie controller. + - if: + properties: + compatible: + contains: + const: mediatek,mt7986-eth + then: + properties: + interrupts: + minItems: 4 + + clocks: + minItems: 15 + maxItems: 15 + + clock-names: + items: + - const: fe + - const: gp2 + - const: gp1 + - const: wocpu1 + - const: wocpu0 + - 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 + + mediatek,wed-pcie: true + patternProperties: "^mac@[0-1]$": type: object