Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4188898ybp; Mon, 14 Oct 2019 00:16:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5srERb9UUwn5rdyWInmzZbfGQG2D2HeuY6CfZn4g2yZ0Qoe4dTadcf29fV4mXVXyV0vIo X-Received: by 2002:a17:906:448e:: with SMTP id y14mr27651900ejo.136.1571037383726; Mon, 14 Oct 2019 00:16:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571037383; cv=none; d=google.com; s=arc-20160816; b=V/SWo5rExl34BW9PHxJdUqjTpwE8Wis3DEoLuJqCDP/NuKeyjLLdWUA3Bpb7vmMDLn z8Yv2eU15LE0J7t7mHTRrEByBxC9x7vCgW0zfOl5S4PtJcql7dEsIO9q2y1K5tU52dsL s4/SWke5n/6klN14QgZWFT6Az5ji3mTa5vogLxWZl2zJ59scC6WNImRJpMl+wUwtM0Aa QxIUbgxtQlMy7YouF4iEfQopSGIN0885PNkOhlgVK0WQukfxRTs6IYuVe2Yiw0QkiFpk chx08yyLfKKTtR+IzBuykZ7CZKP6RKhzK+POsdS2oCCYZd+8W6/XwZEJSkN2nLeRQVBR nB7w== 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=NXnQRe2pjuTeuuPMunBt5lE/GIHQ55T2xbvs8zEzaXY=; b=G3PuDsfJrEurplRCnbfMGvjeYjHCYOWFSKVaKJw05aPbSdizbXu6Qr/gIilnOGYNiC lbimqmSb0kp5wDAB+bO+iSJEFw81AICMyQ2IwPWfVBhdMiLIHfj7ZBcAyQ1QELiCzCZt N4tZBrMbHJs6t4t9ueiH9BnxI6GN60Cu28WJ12B/MOjeyaqe5RJ/C9IXT5PVoCPvWCu7 zmiS5udDWx3cA+HIqYNNmCIpzVRAq57++FWsu+e8zfrb3ZVxRkTFQEoVzoNuERr4P4rX pETFpHw9VjTHKiODFlBJwTZxlnC8XqOCv5Dp6HL5TCMfLUmKX7Xth+cIqdtdio9TVl6w gU3Q== 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 h48si11523110ede.31.2019.10.14.00.16.00; Mon, 14 Oct 2019 00:16:23 -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 S1730338AbfJNHPa (ORCPT + 99 others); Mon, 14 Oct 2019 03:15:30 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:61513 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730265AbfJNHP3 (ORCPT ); Mon, 14 Oct 2019 03:15:29 -0400 X-UUID: a34fba46a10641c8b6329ad044c76f52-20191014 X-UUID: a34fba46a10641c8b6329ad044c76f52-20191014 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1988080015; Mon, 14 Oct 2019 15:15:20 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 14 Oct 2019 15:15:17 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 14 Oct 2019 15:15:18 +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 , , , , , , Jakub Kicinski , MarkLee Subject: [PATCH net,v3 2/2] arm: dts: mediatek: Update mt7629 dts to reflect the latest dt-binding Date: Mon, 14 Oct 2019 15:15:18 +0800 Message-ID: <20191014071518.11923-3-Mark-MC.Lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20191014071518.11923-1-Mark-MC.Lee@mediatek.com> References: <20191014071518.11923-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 -- v2->v3: * no change 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