From patchwork Thu Jul 13 02:17:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 119473 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1542529vqm; Wed, 12 Jul 2023 19:21:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlEGEdCuKWq3TpfAKUVWB88yHKTjRyLf0vT1QRfLZKPWtPgMYog3k263jsf2KwzJHabdlzoc X-Received: by 2002:a05:6a00:134a:b0:682:4de1:adcc with SMTP id k10-20020a056a00134a00b006824de1adccmr351754pfu.12.1689214864151; Wed, 12 Jul 2023 19:21:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689214864; cv=none; d=google.com; s=arc-20160816; b=uyce6VJNQ8977vTfVK41FoGM6uusdForoyrd0IEPLiJ387XHpINrVvCpo8de8Q4fp1 2efen86KW1B8Iu8Onki+m5FZ1wLFI81HtMEBHH9YgOp3DuTZp6/JCDmvYxDYYpWk02MR IjBH37uANbGeM+83YXnbGqPohKJLJu6tqiS0t3Sdv7cOZ1W5pGJhdSVaBYqJcmKvkxBL oMKwq7uEjr0eHre6nZpQz6GhxSYZn1D1NrMu5gKdls6v67jhGzfKxdU78wwRzcLHBw4A uXi89Lp8SWCta/6zjy5avF1wrBtEHn8P5WVv/peBXWGDPl+BryhwY7VDZnlRFaoFDycS atqQ== 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:to:from:date; bh=3uP38N4edhYc6jbyZJhb19nVnp21geTftrXEV8gLQfM=; fh=9pKblXLHR4b0iqJeNGezDe9eB2gLZXksRAVo2lkFWAw=; b=KrCScQQtyjcGRHNvcr/Ge0dJ7iNyqUji0OXUVag0MFPgD4Bb7m2EUUxxfb/WwyfQdD SesMeJPzTPkE+s8+UU7QrR/bssoTyTDMuckJtXQ6mp/wq2CSyXvYN2bjmYCwxgMAIGBi iyPhAQyPw9VIvbhyNpWSSNl68m50yuV+Ewh+UGE8sZ2v+x5MH11L06geYz+QOF6AiWuJ QrHSPcWmyqtjQWBCmSBsJeNC2LHCARRWkJi1pPGC3MRG1uu3iNz0fz7TqeCBry10EeNc R9fFIL5uRaIchOpHrwaupTFIuDCgIirGtIqnOPBo7sBQqdnB61yWCKUuFFzlYI35Mx8I CfEQ== 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 k19-20020aa788d3000000b0065024e5049bsi4368308pff.334.2023.07.12.19.20.51; Wed, 12 Jul 2023 19:21:04 -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 S233553AbjGMCRw (ORCPT + 99 others); Wed, 12 Jul 2023 22:17:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233527AbjGMCRq (ORCPT ); Wed, 12 Jul 2023 22:17:46 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C380211C; Wed, 12 Jul 2023 19:17:39 -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 1qJlth-0005VH-1B; Thu, 13 Jul 2023 02:17:37 +0000 Date: Thu, 13 Jul 2023 03:17:24 +0100 From: Daniel Golle To: netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , Lorenzo Bianconi , Matthias Brugger , AngeloGioacchino Del Regno , Russell King , =?iso-8859-1?q?Bj=F8rn?= Mork , Florian Fainelli , Greg Ungerer Subject: [PATCH v2 net-next 1/9] dt-bindings: net: mediatek,net: add missing mediatek,mt7621-eth 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, RCVD_IN_DNSWL_BLOCKED,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: INBOX X-GMAIL-THRID: 1771270165540489866 X-GMAIL-MSGID: 1771270165540489866 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 Reviewed-by: Krzysztof Kozlowski --- .../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: