Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3945443ybp; Mon, 7 Oct 2019 00:09:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1GpGcpi5yYXKhIcCXSbidDlgYQv4kijmM+8ysdwv1eVKn0t2xlZKw4/bH3r23ukrkwxSm X-Received: by 2002:a17:906:82d3:: with SMTP id a19mr21899873ejy.151.1570432168562; Mon, 07 Oct 2019 00:09:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570432168; cv=none; d=google.com; s=arc-20160816; b=g/k4Ne51ID96mNQvDf3o8dHdh+2jFrQeO1co8TNwpLnZl475jM5SyHFYEbjbYEskR/ M729Bxpk2v2doUqITa7HsO2pTT/D6mJjrTQhCa8sUUl3szlmbzQvSJvIkN1SOFqchPkP k7xf+LCoJcxW80A7Q9p08JX5iwGAdXIJ913bYXEytYJFHcTG+HUICFM8vkO0dwlspN3E fMswj9m7KyEUfTOs0RPlIjnXE/r0vRXPEabgl/he5pyuQBocPiSwNs3Ra0Dhuvrt1bmy m70ggPUHq3+qE7idodj4BFDS56R8rB6NVmS3ICpaIEDRV44N6uX2uExJVOmfH1sev+Le vnmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=G2TeAtUytuP6HyR+pqYa7+0ivcH7f2I5uaDb1fGYebk=; b=Z4SXd9DPACtDgcIwB+tv8aifojX4utqEB867vaYwyucDtrsvV/jRiujlKAa+OUPm4E 4Xpnet0Vh/++jk6GfztURHbpeHhA6V5eT4MLn9TpwL3ic9zijr1czasWStY8DtcJ8rZm EUbbOBzhUzmfmzOZumpLxNxdJanEFr31KG7B0FEz5YR9dIh7/V/PkIJ6UMWtE++4T12W 54wd0VCio5otC8dv/7Bv+p1j+57FUsnrWeIOu0vIBvmQc0MMhd81v3mLrTph3In1VY26 klP9d5vOkw/zssOvjjVtI+l4X73cQxIYeYPPj+RM5+5jFkYcp8lZMe9taGHvM3rkaGIr 1Rhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id be24si7591001edb.120.2019.10.07.00.09.04; Mon, 07 Oct 2019 00:09:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727360AbfJGHIy (ORCPT + 99 others); Mon, 7 Oct 2019 03:08:54 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:53039 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727028AbfJGHIx (ORCPT ); Mon, 7 Oct 2019 03:08:53 -0400 X-UUID: 4f78dc3b78fb4c0c8a6dbf0fafcf538e-20191007 X-UUID: 4f78dc3b78fb4c0c8a6dbf0fafcf538e-20191007 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1850811406; Mon, 07 Oct 2019 15:08:47 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 7 Oct 2019 15:08:44 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 7 Oct 2019 15:08:44 +0800 From: MarkLee To: "David S. Miller" , Sean Wang , John Crispin , Nelson Chang , Matthias Brugger , Andrew Lunn CC: Rob Herring , Mark Rutland , Rene van Dorst , , , , , , MarkLee Subject: [PATCH net,v2 2/2] arm: dts: mediatek: Fix mt7629 dts to reflect the latest dt-binding Date: Mon, 7 Oct 2019 15:08:44 +0800 Message-ID: <20191007070844.14212-3-Mark-MC.Lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20191007070844.14212-1-Mark-MC.Lee@mediatek.com> References: <20191007070844.14212-1-Mark-MC.Lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Removes mediatek,physpeed property from dtsi that is useless in PHYLINK * Use the fixed-link property speed = <2500> to set the phy in 2.5Gbit. * Set gmac1 to gmii mode that connect to a internal gphy Signed-off-by: MarkLee -- v1->v2: * SGMII port only support BASE-X at 2.5Gbit. --- arch/arm/boot/dts/mt7629-rfb.dts | 13 ++++++++++++- arch/arm/boot/dts/mt7629.dtsi | 2 -- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/mt7629-rfb.dts b/arch/arm/boot/dts/mt7629-rfb.dts index 3621b7d2b22a..9980c10c6e29 100644 --- a/arch/arm/boot/dts/mt7629-rfb.dts +++ b/arch/arm/boot/dts/mt7629-rfb.dts @@ -66,9 +66,21 @@ pinctrl-1 = <&ephy_leds_pins>; status = "okay"; + gmac0: mac@0 { + compatible = "mediatek,eth-mac"; + reg = <0>; + phy-mode = "2500base-x"; + fixed-link { + speed = <2500>; + full-duplex; + pause; + }; + }; + gmac1: mac@1 { compatible = "mediatek,eth-mac"; reg = <1>; + phy-mode = "gmii"; phy-handle = <&phy0>; }; @@ -78,7 +90,6 @@ phy0: ethernet-phy@0 { reg = <0>; - phy-mode = "gmii"; }; }; }; diff --git a/arch/arm/boot/dts/mt7629.dtsi b/arch/arm/boot/dts/mt7629.dtsi index 9608bc2ccb3f..867b88103b9d 100644 --- a/arch/arm/boot/dts/mt7629.dtsi +++ b/arch/arm/boot/dts/mt7629.dtsi @@ -468,14 +468,12 @@ compatible = "mediatek,mt7629-sgmiisys", "syscon"; reg = <0x1b128000 0x3000>; #clock-cells = <1>; - mediatek,physpeed = "2500"; }; sgmiisys1: syscon@1b130000 { compatible = "mediatek,mt7629-sgmiisys", "syscon"; reg = <0x1b130000 0x3000>; #clock-cells = <1>; - mediatek,physpeed = "2500"; }; }; }; -- 2.17.1