Received: from sender4-op-o14.zoho.com (sender4-op-o14.zoho.com [136.143.188.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E77622CA9 for ; Tue, 25 Jan 2022 15:39:38 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1643125170; cv=none; d=zohomail.com; s=zohoarc; b=lpgT6r5RjDUP/LgrS89EoHJhSasNBN1zuJ70YV2h0IqDq99sdGtlhd+K2s+VRGHc8cGx0hpybvOBLIety4Rh6ekegx5BGzQJpptTnUKTneG/lnWlER/UnvVvrViipLuRwUu7P+QWoPcVu6uLJl/dSEagbRSn3bBSRcHk8J4hRvg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1643125170; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=ZhnlCxJ2TJ+7QWS9FfAX+8gUhVrsvjec8+gxBjmiwwc=; b=mq1EjMpCXhFycfBt7pLLtU5Wqklc26TSw+sAlCANbhjJFAzK1B3puyrKE/BgdbsKhKa4bdoo87AZdmCn8PEA+k7EDj55kJGDK2x7tW+C6kgy0W05l+dhEPKn+EZEewrhFtOaOvoCF49tfkkUbEgSpgl8NsSDVIvrwgfgii0rvsY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1643125170; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=ZhnlCxJ2TJ+7QWS9FfAX+8gUhVrsvjec8+gxBjmiwwc=; b=gazk//RmktLPNBJPHnSPZ/dB72q6OBJB54fpfrcd7eEjJWam18s/ZtHfndpjxebJ A60JH/2GNbjElZbc+gKxYF4Q3PeeyJvT7n5A6hEGWL0SXii70S04z4Hds3pVkjJGl/Y /By65cMk19BsDSGQaEDjh3QSNV8fAf4jorpt+5Pc= Received: from arinc9-PC.localdomain (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 1643125168598950.6849966026564; Tue, 25 Jan 2022 07:39:28 -0800 (PST) From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= To: Greg KH , Sergio Paracuellos , NeilBrown , DENG Qingfang , Andrew Lunn , Luiz Angelo Daros de Luca , erkin.bozoglu@xeront.com Cc: linux-staging@lists.linux.dev, =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= Subject: [PATCH v3 4/4] staging: mt7621-dts: fix pinctrl properties for ethernet Date: Tue, 25 Jan 2022 18:39:03 +0300 Message-Id: <20220125153903.1469-5-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220125153903.1469-1-arinc.unal@arinc9.com> References: <20220125153903.1469-1-arinc.unal@arinc9.com> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External 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. Signed-off-by: Arınç ÜNAL Reviewed-by: Sergio Paracuellos --- 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 6fe603c7711d..03d6bb6735ac 100644 --- a/drivers/staging/mt7621-dts/gbpc2.dts +++ b/drivers/staging/mt7621-dts/gbpc2.dts @@ -13,10 +13,16 @@ &default_gpio { 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 489754f6ed77..38ab6447756a 100644 --- a/drivers/staging/mt7621-dts/mt7621.dtsi +++ b/drivers/staging/mt7621-dts/mt7621.dtsi @@ -325,6 +325,9 @@ ethernet: ethernet@1e100000 { mediatek,ethsys = <&sysc>; + pinctrl-names = "default"; + pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; + gmac0: mac@0 { compatible = "mediatek,eth-mac"; reg = <0>; @@ -342,22 +345,12 @@ gmac1: mac@1 { 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"; reg = <0>; -- 2.25.1