From patchwork Tue Jul 18 21:30:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 122266 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2031365vqt; Tue, 18 Jul 2023 14:56:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlH9XS97qhINuw96R0FVE8/8IN/nwFgq/Q4uaH7WjGvt6P1BpCSTEtFDjMASeOQOCVDR3D7l X-Received: by 2002:a17:907:7819:b0:988:9d0f:db52 with SMTP id la25-20020a170907781900b009889d0fdb52mr943177ejc.35.1689717366729; Tue, 18 Jul 2023 14:56:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689717366; cv=none; d=google.com; s=arc-20160816; b=Pc8GOYtcpTsm5Cp8HsRBgSmDTLgWoXdKoyBhRm+47tjvgQ43T7deVg1F1Pc3Is7Wj3 siBFfu74oVZZRoQaBzg6nHDGOpwn0NoDKsovChImVxpry/LQAl0SvbBfBALFJLJwt39N r3EMhscowWJkAtcAR8lEmYoygRRzce3isSKnkvEpeNKd64CNwbOzPRrsHC6FiQkDFatX vYiBPNp6Y6VVR1HZU2NmR490q6eckVqIh6/94MZbiuho50jA2Gs+Z1KU0ih+PpYXr+RH 8JzJ8I4k+l0cFzE7WrTSzYl8va6p7JHmsUshcq+pQh9fVbj9mufYEetutxcU+WOUNfrv 53jQ== 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=goQBq6ugKS/BUWjMWs6Q49ZicZEa3mbuoDf4l0njwaU=; fh=F0gY55nZ4L6PcW8D8BMGTwyt3w84gFs+SQN0OrfEjNI=; b=fNF6v4NUKDrBYOu/i4hAnijcIWgI2vLMPdOu/p0kBZi0IKR8j5qNAae4065/Qr3tgm JZ1AZxrRm1+6gI27QiZFlYHkup0erOx+i1GQCRlbg2K8th0sPhkfDQcUjimDO+dPxmdZ Fz9vAeBYyUtbZgU+yBdA1T7J9ncfvYs6VQDlS1Sw0jyyJwIpIniToUuDTFXHYbftepyt zD32UrPUlxlP9I3dz3WJH+ZFQk8wE0YP9vla1Hrt9QCshKEEKwozKalCjmKwtz9/PQVk e75tFbxmZ4XRbKjDzGMajw5USjTu1exze+6IueG5gD2OdMs0jH052KCH4vNwNkqBrM4Y x/IQ== 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 lh2-20020a170906f8c200b00993b3881eccsi1656629ejb.691.2023.07.18.14.55.42; Tue, 18 Jul 2023 14:56: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 S229852AbjGRVad (ORCPT + 99 others); Tue, 18 Jul 2023 17:30:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjGRVa3 (ORCPT ); Tue, 18 Jul 2023 17:30:29 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3312C0; Tue, 18 Jul 2023 14:30:28 -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 1qLsGw-0001Jr-1c; Tue, 18 Jul 2023 21:30:18 +0000 Date: Tue, 18 Jul 2023 22:30:10 +0100 From: Daniel Golle To: "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 , Florian Fainelli , Greg Ungerer , =?iso-8859-1?q?Bj=F8rn?= Mork , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH net-next v3 1/9] dt-bindings: net: mediatek,net: add missing mediatek,mt7621-eth Message-ID: <38831ee59390aae8e65b1bfa7641ed542d9981b3.1689714291.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, 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: 1771797077120647855 X-GMAIL-MSGID: 1771797077120647855 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: