Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6089317ybe; Tue, 10 Sep 2019 13:21:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwj2VE3Z0PhQjs5Cj+oTyQSUk8n+ouazr2zYKDbRCHJk2T7w1psjhSddGm8nBPLvw6fYF9c X-Received: by 2002:a05:6402:1845:: with SMTP id v5mr27546073edy.130.1568146888556; Tue, 10 Sep 2019 13:21:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568146888; cv=none; d=google.com; s=arc-20160816; b=YOhZ9EwCpwmTro0eviA4fRqii79qb3HbEOAIdaiEklD7VdxiLRXrdIM8j65W+0tz8N vu4/Oww2/HsWjWm2xe3BIaKsrOaa7Xc1RkSyfxHqlzbIDgsQjwjYQIOWzIHEg9HtRuZD ZgDD+M6eNv3IY7qBNa9BaJQqMJNmb0tGGCxobPt2C9eY3Clxcf5r7KMkUR1D9BUM6S1n W9Nfdj1b+cO8mGWjUdB4J4ZFKqzaq+Ra3q6V0i7G1gfwwVNtALvRTcqeJukRyh5hJd2Y YbGV+AnF/1hXwpsVDEPxiOT0oLSoKaeUF70zgRZfh/bOCXtzlWW+sdsuZpNQSWDYt0BF bJcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3N//E0zcW7kRGKgSwYJTLOJfeK8dM1KlFJHe42qIo4U=; b=nbPtWdtYPFTCNHTnawT5GfygEBFVdVpB6f0Oa04pfziKLhmRAIKphx1v3qri/jsnZN jhQ/Q6DWWiBpiPTGBEnRCU6z7lIEYX3znc9q1Khx0pcPh1+N4bZXRSxzcRCAZdFHV/2P 3opoDhhdOzx50S3n8LDvCidgwLaJoi0wxsc+DGsz0Raa46CaOQIalA81ymT5B/lA53sn xjQUv6xntcsSe5NaYWi6sIx0LVZe93Ze0hrxa5yIakTP2mtiGV1dEheJhjrICYBXxb21 +JzEZOmlTLTj0CN4lfEmqxGosMiuQgTNA66muTEfL3NVQOgqot4vydPrLRImaTKIc6Rh QAKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=wiqoJdzG; 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=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id re7si9987345ejb.349.2019.09.10.13.21.03; Tue, 10 Sep 2019 13:21: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; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=wiqoJdzG; 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=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436923AbfIJQrE (ORCPT + 99 others); Tue, 10 Sep 2019 12:47:04 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:45254 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436758AbfIJQrE (ORCPT ); Tue, 10 Sep 2019 12:47:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3N//E0zcW7kRGKgSwYJTLOJfeK8dM1KlFJHe42qIo4U=; b=wiqoJdzGZHQ7dsTr38TSaB5P+ cta9fRgOiJ/ZTzQP/DDDoMC/vEtYnu6PAXEwTVwDa0gstcCWZJls1EwitVBVZLNv+hhssniiGNquj 70BDI3avTTV851UwbBZq7ch010410u0p2YJqBTSZ/PM6yzP0CTnoSCvGCI4qkeS0TsELT+DsINR1k MewdfyvFEfv0PUNRhZc7Hyv8GCVmPBE/lXRvAHHqmgFyRiyrpwZ5A2SF45JDW0eLdnH2GvJ4spaEn VejQayvONza3cFDRvB7aI3TEUfMtMCM9pJ1jXOKSwj3iBUY/knwaP8JL8RqnGoyUnGZLj6t5tsrEk JDPec4SgA==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:58608) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1i7jI5-0001Dm-W7; Tue, 10 Sep 2019 17:46:54 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1i7jI2-00038s-NO; Tue, 10 Sep 2019 17:46:50 +0100 Date: Tue, 10 Sep 2019 17:46:50 +0100 From: Russell King - ARM Linux admin To: tinywrkb Cc: Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , open list Subject: Re: [PATCH] ARM: dts: imx6dl: SolidRun: add phy node with 100Mb/s max-speed Message-ID: <20190910164650.GS13294@shell.armlinux.org.uk> References: <20190910155507.491230-1-tinywrkb@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190910155507.491230-1-tinywrkb@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 10, 2019 at 06:55:07PM +0300, tinywrkb wrote: > Cubox-i Solo/DualLite carrier board has 100Mb/s magnetics while the That statement is false, sorry. All boards support 1G. > Atheros AR8035 PHY on the MicroSoM v1.3 CPU module is a 1GbE PHY device. > > Since commit 5502b218e001 ("net: phy: use phy_resolve_aneg_linkmode in > genphy_read_status") ethernet is broken on Cubox-i Solo/DualLite devices. > > This adds a phy node to the MicroSoM DTS and a 100Mb/s max-speed limit > to the Cubox-i Solo/DualLite carrier DTS. > > Signed-off-by: tinywrkb > --- > This patch fixes ethernet on my Cubox-i2-300-D which is limited to 100Mb/s, > afaik due to the carrier board magnetics, and was since commit 5502b218e001 > ("net: phy: use phy_resolve_aneg_linkmode in genphy_read_status") > > The AR8035 PHY on the CPU module reports to the driver as 1GbE capable > via MII_BSMR's BMSR_ESTATEN status bit, the auto-negotiation sets the > speed at 1GbE while the carrier board can't support it. > Same behavior with the generic phy_device and the at803x drivers. > > While the PHY is on the CPU module board I added the max-speed limit to > the cubox-i carrier DTS as I suspect that if the Solo or DualLite v1.3 > MicroSoM will be connected to a 1GbE capable carrier board then it would > work correctly with 1GbE. > > I can confirm that this commit doesn't break networking on the my > Cubox-i4Pro Quad (i4P-300-D) with it's 1GbE capable carrier board, and > was tested separately with the generic phy_device and at803x drivers. > > arch/arm/boot/dts/imx6dl-cubox-i.dts | 4 ++++ > arch/arm/boot/dts/imx6qdl-sr-som.dtsi | 9 +++++++++ > 2 files changed, 13 insertions(+) > > diff --git a/arch/arm/boot/dts/imx6dl-cubox-i.dts b/arch/arm/boot/dts/imx6dl-cubox-i.dts > index 2b1b3e193f53..cfc82513c78c 100644 > --- a/arch/arm/boot/dts/imx6dl-cubox-i.dts > +++ b/arch/arm/boot/dts/imx6dl-cubox-i.dts > @@ -49,3 +49,7 @@ > model = "SolidRun Cubox-i Solo/DualLite"; > compatible = "solidrun,cubox-i/dl", "fsl,imx6dl"; > }; > + > +ðphy { > + max-speed = <100>; > +}; > diff --git a/arch/arm/boot/dts/imx6qdl-sr-som.dtsi b/arch/arm/boot/dts/imx6qdl-sr-som.dtsi > index 6d7f6b9035bc..969bc96c3f99 100644 > --- a/arch/arm/boot/dts/imx6qdl-sr-som.dtsi > +++ b/arch/arm/boot/dts/imx6qdl-sr-som.dtsi > @@ -57,6 +57,15 @@ > phy-reset-duration = <2>; > phy-reset-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; > status = "okay"; > + phy-handle = <ðphy>; > + mdio { > + #address-cells = <1>; > + #size-cells = <0>; > + ethphy: ethernet-phy@0 { > + compatible = "ethernet-phy-ieee802.3-c22"; > + reg = <0>; > + }; > + }; > }; > > &iomuxc { > -- > 2.23.0 > > -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up