From patchwork Fri Jul 21 21:31:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 124122 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp482592vqg; Fri, 21 Jul 2023 14:49:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlGG5dC0WaOQo9e6gKNpqtYYW+zIkKXDUfNic0Rro6Fcx/+aYmdONIv7Kx2LX7QJHSzZKdUu X-Received: by 2002:a17:90a:d193:b0:267:f00f:67a5 with SMTP id fu19-20020a17090ad19300b00267f00f67a5mr757277pjb.15.1689976145266; Fri, 21 Jul 2023 14:49:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689976145; cv=none; d=google.com; s=arc-20160816; b=NKxCbRcZ37zwWb07EU0UjGlLJT5zSaASrRiwA8TInFi4vKDHOXn9YYp1w5pwbjfFC+ FAfmFwiZcszO/gPzkogfiqO12sN1Pm9EFbIzvoBR0KiP1Dk/sWWLSLJNC4OOazyBkvQD WC1mNCS9In1iMeCZBCToKgsXQx7Xp5SVvdoW69HiXXGZ+/KngdtsJ872rNKY1zfwB6iq WgiOdfUWTcBJDrn+kbNbIWRsQrYp5A/3ABvFs8AX3MjcMS47TVTvvazonT9wlaQ58RDn SeKjyuYkY2n6SvcWuL/4+ZY+c5Dd9TIwihMA7tac0kKb7TqUsAR8k8n9rdrONJVOjRIK Z+yg== 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=kSbt13auWz6/f7g9BzzANFH9WDsh0lXoSikr6/LoHRg=; b=wU4aMv1QekBvLSV4XeS5Xh2ef/hQdTKq+9dkd9lLyS0bNsqG4UbZu9qj9JtjoGSQf4 eNSw+Rlv2WmBxMT7zD67glAKZGRH2zGJOmpNU88aBLv/1DuYNf3avbFHH+DZMjwRB3aa nIC4NM9bwd8pyqB3YL0TM4J9zPdF6RU9bNAPqkLojwcRilkRpd8Xv4nT7zByA2ZbRiYn Q826yxx48IQcRebqtICZs3QXsm2Jjnv966OvU1GwWDEgNehozEPfztoNMdT3tcsTizMq 9yygAxYL0iXBiiTKlqhNoECJu8DjpRtwMdOlhnSArBTaK4cHF3kNrBRvRN1ENnnt5jEe iIIw== 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 9-20020a630209000000b0054fe295d487si3903304pgc.434.2023.07.21.14.48.51; Fri, 21 Jul 2023 14:49:05 -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 S229877AbjGUVcI (ORCPT + 99 others); Fri, 21 Jul 2023 17:32:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjGUVcH (ORCPT ); Fri, 21 Jul 2023 17:32:07 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1F8B30D4; Fri, 21 Jul 2023 14:32:06 -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 1qMxj7-0004Z0-2c; Fri, 21 Jul 2023 21:31:53 +0000 Date: Fri, 21 Jul 2023 22:31:45 +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 , =?iso-8859-1?q?Bj=F8rn?= Mork , Greg Ungerer , Florian Fainelli , 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 v4 1/9] dt-bindings: net: mediatek,net: add missing mediatek,mt7621-eth Message-ID: <2e73f994d29d0e889231df1886ec4ff431c32e7a.1689974536.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,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: 1772068426624298313 X-GMAIL-MSGID: 1772068426624298313 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: