From patchwork Tue Feb 7 14:19:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 53922 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2388:b0:96:219d:e725 with SMTP id i8csp4037724dyf; Tue, 7 Feb 2023 06:24:32 -0800 (PST) X-Google-Smtp-Source: AK7set8Yw9nWXE9B/QFfs7GPObS9A0NCFDhC/ZCuVcO68GCR00DIU0Gy0sONVSTDSKjoSfo0U8E6 X-Received: by 2002:a50:f690:0:b0:4aa:bb71:423d with SMTP id d16-20020a50f690000000b004aabb71423dmr3663947edn.1.1675779872099; Tue, 07 Feb 2023 06:24:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675779872; cv=none; d=google.com; s=arc-20160816; b=SN52a6/iMhojJUNor4xcsZERSFGj6krOHS19FbMga8BONLFgIPLkkWvd2DZyGY6+6A 8EaESuasgRyFWq1N4aP65pfsj/2LhGILauiLK3Y6SHnVWAjK7mokWepz4zzaJ5lCr8Lo GVmYLFdMX8XvrYFuUezbM/oIN/XJZCfyHhWWGkluk5IxEe/1FdwSLVp1cj0L9SH/ckFe Q6Uww3/AHP4w7DceYkvCcaHLNLLWcguvE5+Qv3z0YQBKVlWrDo+kXsh1rfxVEl/DLPOZ 7rFbKYkWfdbdgV1xI/Cly9DmfUkS34Hhn4SBgVA3yvCJ+sN5b6Z4/nscCwXjmP52aKxm 3WAA== 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=5i5ER7QWE9RI2ddPyacLtXrYxpdWqXtliM54iJomJwE=; b=w9y9NP7+IFhm181P5R+Ye1U/TPy3jI15RvKbwvmgTc28t/gzbBIEVIv/c5r757IQwF 6mxwe9g0DamZ53BMjFfXdDhDoZFx7fD7Sc6lhYAeB+eMoVD4SwVKI2hxNB3a1dhrYWK6 JTtNcikKSEWAc/eEIOeqd423ZgONWz3O5PycieG9S2URrUls4BFJ9N1q/97e6oMwyF36 pQPbUmJ/ZpB7AYyDMUS4Kf255lSo4hwFa0gaA7aOlMdLfQIdcJkpFrB2i5CSUdSbBp2Q OtVmta3067DognvyL8Dq4VId1rpqEwc7rBET4MatliVaLq/Y6a8K2bidU9LyEL4Tkb+J oYUQ== 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 el10-20020a056402360a00b004a0912fda8esi13911522edb.194.2023.02.07.06.24.08; Tue, 07 Feb 2023 06:24:32 -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 S232418AbjBGOVL (ORCPT + 99 others); Tue, 7 Feb 2023 09:21:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232347AbjBGOVJ (ORCPT ); Tue, 7 Feb 2023 09:21:09 -0500 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFE5B3BD8B; Tue, 7 Feb 2023 06:20: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 1pPOq3-00027e-1t; Tue, 07 Feb 2023 15:20:51 +0100 Date: Tue, 7 Feb 2023 14:19:15 +0000 From: Daniel Golle To: 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 v2 02/11] 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?1757182554888755074?= X-GMAIL-MSGID: =?utf-8?q?1757182554888755074?= Introduce DT bindings for the MT7981 SoC to mediatek,net.yaml. Signed-off-by: Daniel Golle --- .../devicetree/bindings/net/mediatek,net.yaml | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Documentation/devicetree/bindings/net/mediatek,net.yaml index 7ef696204c5a..d17e2eb46118 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 @@ -206,6 +207,47 @@ allOf: mediatek,wed: 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 + + mediatek,wed-pcie: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the mediatek wed-pcie controller. + - if: properties: compatible: