Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8347165ybn; Tue, 1 Oct 2019 06:57:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzq+zQJLo/JOm7D9SFmop0CEjg26RkQhWQ+fHVZ4ZkQTTwLEsDiPnRJqN1dqY+eV9r5DbMB X-Received: by 2002:aa7:c616:: with SMTP id h22mr25376120edq.96.1569938228054; Tue, 01 Oct 2019 06:57:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569938228; cv=none; d=google.com; s=arc-20160816; b=yk7II6a3rPDUrKrOsCGtSlUWO7MfwYx56yb71VdsXnlPCSNN1zlcKrfFZxFB3mNOBs iblLLLkOXaQ2w96aF1SySKTFbtpL7mJOKepA1wPuHCNHrYD5obmS9HDNEf7p+lrrXJLV dY0JMVjmgKENnREjbotB1KnzdgkgjcWOs7dv9VnkUTlU8HV4N3zwqU62TDFY908mGLLn FFVTNqYveXJTSLNw4u0ARXDh9KcNrXYGTcuGNlKA/bbvGZLJZbvzPaA5dsb5pqdBmqgH oJN0BVdCg6Dt7L0Wt3Tnf4Z3ZlSZEX+rJa4tPRrE1hFa8MJYGbi4XcF5vKCdw6GdRG9K KaTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-disposition:mime-version:user-agent:in-reply-to:references :subject:cc:to:from:message-id:date:dkim-signature:dkim-filter; bh=VuIg/nbWnzaooWQXgf0jLELVIM9W+Vd2ZvGPUadAMPM=; b=VIA5CwJundNxKz0JoaLgYEERNNiiYJ2jZ2Wh5Z7fhJMJbsyZyHzJ+ra9gfVkWNplOK +33QU/uF1v3N/l+9ERhYqukLUMdSeJxA8ThMfaiTQ0Jrz0tGOJp1Sz0due37YRwaGj7f gy1y4fNpLF2Ahl4bjtBQ1QaDpjJOhQ4nsW+AC6M7HqJIKe+tVJBKhzId2bXZAD7K+VZz DeQo9r43gN12DqyeSTWrLu3886i4Iv4+zYCu91lYT0siAUS5yuFdWhQEYN5oHtFcZ9Tt PP+dN5JRMLh02xwrzwhdk1FY4OxFoegFzxyvvwWbE8E1leVwkmDIO3QbEWlqXd6RH4mp 5QWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vdorst.com header.s=default header.b=MiBJ1OfY; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=vdorst.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bq16si8833288ejb.221.2019.10.01.06.56.43; Tue, 01 Oct 2019 06:57:08 -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; dkim=pass header.i=@vdorst.com header.s=default header.b=MiBJ1OfY; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=vdorst.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388866AbfJAN4L (ORCPT + 99 others); Tue, 1 Oct 2019 09:56:11 -0400 Received: from mx.0dd.nl ([5.2.79.48]:60708 "EHLO mx.0dd.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726710AbfJAN4K (ORCPT ); Tue, 1 Oct 2019 09:56:10 -0400 Received: from mail.vdorst.com (mail.vdorst.com [IPv6:fd01::250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.0dd.nl (Postfix) with ESMTPS id 12E3B5FBC5; Tue, 1 Oct 2019 15:56:09 +0200 (CEST) Authentication-Results: mx.0dd.nl; dkim=pass (2048-bit key; secure) header.d=vdorst.com header.i=@vdorst.com header.b="MiBJ1OfY"; dkim-atps=neutral Received: from www (www.vdorst.com [192.168.2.222]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.vdorst.com (Postfix) with ESMTPSA id C2B87358FB; Tue, 1 Oct 2019 15:56:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.vdorst.com C2B87358FB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vdorst.com; s=default; t=1569938168; bh=VuIg/nbWnzaooWQXgf0jLELVIM9W+Vd2ZvGPUadAMPM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MiBJ1OfYk48VHA6HrblhjA6Hb3aditWR5YfLHeFqJ81AE7DkXN8+UQKKcKcjYHAnm zigKND8kk+B83zm98YLtU5LWqT4toLQK/YrVYyM7o68njxwvBb46NbJMYFOIqHq2+a Id6P3ktrp23DiZwgLPnly/D/Y9Pq3lkXKmZ0Kjt2ayaTiMeFG6Epdi+WPri9j+DM6l cqyuF8nMF2is2g6LcHid4qI6I2nO4LCM90z5YpJKeMVOYsT7dQ/kinbeRU913TllAE TLo82X/M/GHIiwM5mkxMGqC2Aa8nsH0+7scM3UL2CwVYi8VU/O1IzdFqkUia3Oiel0 +fn3sWWHhQbUA== Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by www.vdorst.com (Horde Framework) with HTTPS; Tue, 01 Oct 2019 13:56:08 +0000 Date: Tue, 01 Oct 2019 13:56:08 +0000 Message-ID: <20191001135608.Horde.OSYef8s44rR0XHw22Bf55r8@www.vdorst.com> From: =?utf-8?b?UmVuw6k=?= van Dorst To: MarkLee Cc: "David S. Miller" , Sean Wang , John Crispin , Felix Fietkau , Nelson Chang , Matthias Brugger , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net 2/2] arm: dts: mediatek: Fix mt7629 dts to reflect the latest dt-binding References: <20191001123150.23135-1-Mark-MC.Lee@mediatek.com> <20191001123150.23135-3-Mark-MC.Lee@mediatek.com> In-Reply-To: <20191001123150.23135-3-Mark-MC.Lee@mediatek.com> User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi MarkLee, Quoting MarkLee : > * Removes mediatek,physpeed property from dtsi that is useless in PHYLINK > * Set gmac0 to fixed-link sgmii 2.5Gbit mode > * Set gmac1 to gmii mode that connect to a internal gphy > > Signed-off-by: MarkLee > --- > 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..6bf1f7d8ddb5 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 = "sgmii"; > + 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 Does MT7629 soc has the same SGMII IP block as on the MT7622? If that is the case then phy-mode should set to "2500base-x". See discussion about the MT7622 [1] and dts of mt7622-bananapi-bpi-r64.dts[2][3] Note the code only set the phy in overclock mode if phymode = 2500base-x and the link is a fixed-link, see [4]. Alsp the current code doesn't support sgmii so well. Sgmii at 2.5Gbit is not supported at all. Greats, René [1]: https://lore.kernel.org/netdev/20190822144433.GT13294@shell.armlinux.org.uk/ [2]: https://lore.kernel.org/netdev/20190825174341.20750-4-opensource@vdorst.com/ [3]: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git/tree/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts#n122 [4]: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git/tree/drivers/net/ethernet/mediatek/mtk_sgmii.c#n72