Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp739480pxb; Tue, 5 Apr 2022 21:10:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKLl7WbGEFXuvHkVWgTGqpjKQ8kgpgiVnnOv1LxWxO0knBsBeWXQLCc35iErUBe48DE7AJ X-Received: by 2002:a63:d64b:0:b0:382:6aff:3e43 with SMTP id d11-20020a63d64b000000b003826aff3e43mr5550830pgj.438.1649218219309; Tue, 05 Apr 2022 21:10:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649218219; cv=none; d=google.com; s=arc-20160816; b=0s3+UTNYx9Q9pun8FkOgqPxd8xJgbvPMjEfVw6ASC3MEbWmyhf8vLMe4p2FMwVsE8Z R4k8+DA42CtY8pl115jixGaC455JnJyrmNCNBk4nr3BO6THZtBtWm2zZPxFG86Cqk8dt grfFWuhEt1jvgCV2xvJgs1fKJmeCkbEZViz6ft7TrvTZYoCV2+mn3d2yJVSN1Dgodipl 7taxvHJ125eonqzbfJ3HRvFimvzF+bBvo9+y5dr50CVnGjY4fB18/wg6wRkbz6AQp7e4 hr3QHPFTwu56EjJWFs/BsfrHUfXC/vzpbdr27EWTrMDBb8xAXnepC2dAIysAp10++7b/ aYsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vadRoo1uc9Ub78c/vNZLo72L6W95hKGh7r6LKMhoGis=; b=n+LCMltbSuPyWjLzf/Ky/HL63xhqgL6/csSx/BgLcWbuU60+e3U9ECjpOVlKSSGRRk 1glqqETxI256br9Kz1krve7uiCVlQrPhYD6Ht1LA+JqZCe7THUE7P/NMcdNDfWjwEKFw XKHnfAG4nEfOsnlzoPIMA9ieLesKu/Ep36wN+Xin6lNr8NlhcwujDlibpBXe1n/iK+9n Eg05tfybQULEFUzPwcbD1vXOLQvJtTL5mpYiBlIj6e0urBF7HWTX4aV0gXnkv8hoXwJm /QN1gn0Z7mFETQXFP3bW8JYGZJPR4bJSHAW356VrZ9LKWrpB2iK5uOkG2nBXzB0x0MFQ IaRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QV5g18gK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x5-20020a170902ec8500b00156b58145ccsi6629025plg.177.2022.04.05.21.10.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 21:10:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QV5g18gK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EFE7729AD10; Tue, 5 Apr 2022 21:03:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383023AbiDEVjR (ORCPT + 99 others); Tue, 5 Apr 2022 17:39:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349477AbiDEJtz (ORCPT ); Tue, 5 Apr 2022 05:49:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C99EC10B6; Tue, 5 Apr 2022 02:47:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8A961B81B14; Tue, 5 Apr 2022 09:47:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D91D9C385A1; Tue, 5 Apr 2022 09:47:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152027; bh=oYKkbZrm7pxnfDKheAyX3y1/Hm+QiAx86q2QPbVeBdo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QV5g18gKkeW3IxWjsFhy2eLXmP+fzKJYgjLpYzPnBvVpevPQVxnVoZgEGXIo6jwPw uyd3l61nZSmHjMi46Q2x2y5E/0OZPdorq8W+yaEwnsLgV1sxt5ctc3E7NgG2pCNqIj eyfTqYtTAapWARbAgAeowKauH7haz/drs/Dz0AuY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sergio Paracuellos , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Sasha Levin Subject: [PATCH 5.15 629/913] staging: mt7621-dts: fix pinctrl properties for ethernet Date: Tue, 5 Apr 2022 09:28:11 +0200 Message-Id: <20220405070358.692961623@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Arınç ÜNAL [ Upstream commit 0a93c0d75809582893e82039143591b9265b520e ] Add pinctrl properties with rgmii1 & mdio pins under ethernet node which was wrongfully put under an external phy node. GMAC1 will start working with this fix. Link: https://lore.kernel.org/netdev/02ecce91-7aad-4392-c9d7-f45ca1b31e0b@arinc9.com/T/ Move GB-PC2 specific phy_external node to its own device tree. Reviewed-by: Sergio Paracuellos Signed-off-by: Arınç ÜNAL Link: https://lore.kernel.org/r/20220125153903.1469-5-arinc.unal@arinc9.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/staging/mt7621-dts/gbpc2.dts | 16 +++++++++++----- drivers/staging/mt7621-dts/mt7621.dtsi | 13 +++---------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/drivers/staging/mt7621-dts/gbpc2.dts b/drivers/staging/mt7621-dts/gbpc2.dts index 52760e7351f6..f9b69091bfc0 100644 --- a/drivers/staging/mt7621-dts/gbpc2.dts +++ b/drivers/staging/mt7621-dts/gbpc2.dts @@ -12,10 +12,16 @@ function = "gpio"; }; -&gmac1 { - status = "ok"; -}; +ðernet { + gmac1: mac@1 { + status = "ok"; + phy-handle = <&phy_external>; + }; -&phy_external { - status = "ok"; + mdio-bus { + phy_external: ethernet-phy@5 { + reg = <5>; + phy-mode = "rgmii-rxid"; + }; + }; }; diff --git a/drivers/staging/mt7621-dts/mt7621.dtsi b/drivers/staging/mt7621-dts/mt7621.dtsi index eca384cdec39..99b0eef1f3e2 100644 --- a/drivers/staging/mt7621-dts/mt7621.dtsi +++ b/drivers/staging/mt7621-dts/mt7621.dtsi @@ -391,6 +391,9 @@ mediatek,ethsys = <&sysc>; + pinctrl-names = "default"; + pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; + gmac0: mac@0 { compatible = "mediatek,eth-mac"; reg = <0>; @@ -408,22 +411,12 @@ reg = <1>; status = "off"; phy-mode = "rgmii-rxid"; - phy-handle = <&phy_external>; }; mdio-bus { #address-cells = <1>; #size-cells = <0>; - phy_external: ethernet-phy@5 { - status = "off"; - reg = <5>; - phy-mode = "rgmii-rxid"; - - pinctrl-names = "default"; - pinctrl-0 = <&rgmii2_pins>; - }; - switch0: switch0@0 { compatible = "mediatek,mt7621"; #address-cells = <1>; -- 2.34.1