From patchwork Fri Feb 10 23:36:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 55640 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1234848wrn; Fri, 10 Feb 2023 15:40:02 -0800 (PST) X-Google-Smtp-Source: AK7set8oSmkt41Va6nMlZnkOvxtn4LuLViY0Ru2Xwej5ycHQWX4E+4BzrDwAxX3TApxzB/p1CcJc X-Received: by 2002:a17:907:3341:b0:87d:f29:3a16 with SMTP id yr1-20020a170907334100b0087d0f293a16mr16158131ejb.34.1676072402134; Fri, 10 Feb 2023 15:40:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676072402; cv=none; d=google.com; s=arc-20160816; b=AnpS1jPfP7NAeO0DZJerWVkhLCKxlY46hG+xnZlnxO7NVo06BuJtGTYjSf1Y7Pan2n zK654aQs0zQpIAD+EKTugmdvetXGSSXu18QmVM5I2lMak11KxxxMdpRjhsEZzyGFeLlg BclnEeoE1kR056XQbx1Nts61j7zQKolaht8tlewOGqSvWF95HdCY2GGg9UKgcp0+Ptgz 5O9+SDjymZDdbsddSGgZ2vQ836ugiESFqrX7/Rgo8mQaZhqJhscKa1gbckXULb3BbYOc iITUB6Ys6MqWIMuY4g/rnYyfvPT7flKPCg0oJhz8Ewb+gABgI5fFhzWch/W+omz1v1fi E+Qw== 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=ZNM3sM5r5MRVWPIydGL7KHiiRPHVv6SAxKbdMMmpOA/OGGov/vzY1BIdWNwhCvkBz2 LZHi0ZPkUC7JmM5rgZz0n8HyRyIgLSd5uta2GcyoOLu1zi6yqFyhWQA1CxN+Ats7tpuN E6D7MRQB1BwmAeMi5GyorE/0qsilmC92jfuJw2CKQBXUrw7wVrm+iAPhA9YBL+Afa/G4 SJIv6xP1tCsQxqrKz7eV5DENFaJAY5pFjMENmce/bnrpZ8GsHIGUzVQqwPVtLJuesxIS 8lnFnLdM2HHoHTL/rsLdx8J+GoWb7OXTLAe9z7uHnEOb5+0g1nmJzRiwx0Ovm3FnvEns FpJQ== 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 az22-20020a170907905600b00879ec1afce0si6666630ejc.537.2023.02.10.15.39.39; Fri, 10 Feb 2023 15:40:02 -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 S229823AbjBJXif (ORCPT + 99 others); Fri, 10 Feb 2023 18:38:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbjBJXiW (ORCPT ); Fri, 10 Feb 2023 18:38:22 -0500 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2976B1CAE6; Fri, 10 Feb 2023 15:38: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 1pQcxv-0004AK-1J; Sat, 11 Feb 2023 00:38:03 +0100 Date: Fri, 10 Feb 2023 23:36:26 +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 v4 02/12] dt-bindings: net: mediatek,net: add mt7981-eth binding Message-ID: <43d5e9cbf0e75ea2c039ffc632aa5cc5c83a3c33.1676071507.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?1757489295440003686?= X-GMAIL-MSGID: =?utf-8?q?1757489295440003686?= 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