From patchwork Sun Jun 11 00:16:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 106026 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1797976vqr; Sat, 10 Jun 2023 17:36:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Tm0RVK4KDKnSik8wirUx9qrzy2QSBt17ccrdlKwbYHYlfiR/zV62d9HDtcMT1tqBLtwdp X-Received: by 2002:aa7:c557:0:b0:516:9f9a:a3a with SMTP id s23-20020aa7c557000000b005169f9a0a3amr2634003edr.1.1686443766535; Sat, 10 Jun 2023 17:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686443766; cv=none; d=google.com; s=arc-20160816; b=FJVei4aNZWinPQvwwtS/NBLElswevyKYQma6SXqZwvFEAvKv7wq9EpTuGiX4VYAfXz XG7CVrpsLJ6f0XBueL7NyWfChvmNF55jQCLp+XiY5MjjvL+sSQCVzRIbxynpX+KUXsNN RjNAiLMMQKl6kudzvo8t5cNPfazdY6wmpBeMCOJsuNSN11KgWRRZONsEAoi6B+C+Ph85 BebGsuQnM0dS/dX3IonHx7T5rThtesux2aV63HrZ9pyTW/SvddnYJJHWAyQ9hrSiIvLD wnzDRv11TcdyBiamIPE6+m0thcFZNffJNY0GR69j4jGs50IsrvJnh0pomY3OhFqP54tk smcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date; bh=3uP38N4edhYc6jbyZJhb19nVnp21geTftrXEV8gLQfM=; b=T7+ZWTV8+xfZnM/+KugknbY2VqKvh6TCE/nHmKXr5KjN3czZ5PmgKPIxglmkXvFAqd sbf2cf5s3/k86iHyR43QklHHMJlPzDcfduYNaqzQXPXGzPEd6tm9FnNvCeT4DaKjITde ft62fMgtRLl9077Nc6yNhq0riC9YzKOINJtyoU+VCJLwfQQfZxL1xDLr/rTiMp2ny12s RCFlPkW8rA32hH+UfQBmiipTn7wVk6rCRfdHOjgiRABG+X8RIaWwV0mxfbT5zLufRiMI EEMGFF8pb5oUXzqTQy0Y281lHFJ862hd6gLP874TxCimazo456rd5S11cmieKe79KDUS i4Ew== 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 c13-20020aa7df0d000000b005149a7a743dsi4280136edy.105.2023.06.10.17.35.40; Sat, 10 Jun 2023 17:36:06 -0700 (PDT) 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 S232931AbjFKAR1 (ORCPT + 99 others); Sat, 10 Jun 2023 20:17:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjFKAR0 (ORCPT ); Sat, 10 Jun 2023 20:17:26 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AAF11FEB; Sat, 10 Jun 2023 17:17:25 -0700 (PDT) Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1q88ll-00058L-2C; Sun, 11 Jun 2023 00:17:21 +0000 Date: Sun, 11 Jun 2023 01:16:37 +0100 From: Daniel Golle To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= , Lorenzo Bianconi , Felix Fietkau , Greg Ungerer , =?iso-8859-1?q?Bj=F8rn?= Mork , Florian Fainelli , Sean Wang Subject: [PATCH] dt-bindings: net: mediatek,net: add missing mediatek,mt7621-eth Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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?1768364459057345235?= X-GMAIL-MSGID: =?utf-8?q?1768364459057345235?= Document the Ethernet controller found in the MediaTek MT7621 MIPS SoC family which is supported by the mtk_eth_soc driver. Fixes: 889bcbdeee57 ("net: ethernet: mediatek: support MT7621 SoC ethernet hardware") Signed-off-by: Daniel Golle --- .../devicetree/bindings/net/mediatek,net.yaml | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Documentation/devicetree/bindings/net/mediatek,net.yaml index acb2b2ac4fe1e..38aa3d97ee234 100644 --- a/Documentation/devicetree/bindings/net/mediatek,net.yaml +++ b/Documentation/devicetree/bindings/net/mediatek,net.yaml @@ -19,6 +19,7 @@ properties: enum: - mediatek,mt2701-eth - mediatek,mt7623-eth + - mediatek,mt7621-eth - mediatek,mt7622-eth - mediatek,mt7629-eth - mediatek,mt7981-eth @@ -32,7 +33,7 @@ properties: clock-names: true interrupts: - minItems: 3 + minItems: 1 maxItems: 4 power-domains: @@ -131,6 +132,30 @@ allOf: mediatek,wed-pcie: false + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt7621-eth + then: + properties: + interrupts: + maxItems: 1 + + clocks: + minItems: 2 + maxItems: 2 + + clock-names: + items: + - const: ethif + - const: fe + + mediatek,wed: false + + mediatek,wed-pcie: false + - if: properties: compatible: