Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6019381ybe; Tue, 10 Sep 2019 12:14:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1zV8RsdR1nvUWKUH0SEWenIgykQB+1OYG1fPFr0OTWQm7WD8tEyb19YPh4cis88VjA276 X-Received: by 2002:a17:906:b88f:: with SMTP id hb15mr26215084ejb.292.1568142869925; Tue, 10 Sep 2019 12:14:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568142869; cv=none; d=google.com; s=arc-20160816; b=dX0j8AsBnd2SMLgO4dMlEW4of1VXy5P36LQ3Gb0NAOj3VIlghnD2otuCXi1roRHytW SetTQNzLMcVR3Axbq+EDsDMBid4B0AUglgNVGcWncsXUM6Qf/cr4kiGF+BZ80hZ8Isqm WyW6IY7bv9VtR9wFSBH/qDiZ2Q1PxxLlF+GNG/3+NSnWB5LPZ7PivkhFL1SJJ/X8AOBh tAk4PmPhEXooygnwOUTYgGq0TqHnRxBtza2QV81jUlr32T9CIMD/FMsA+TBJA29Mt7Tz jByNmMbRSwkT2ez7oFYFKYEIHB+gu9T4J4kvZ4oLvugwXoGa9FCGGfdH8gEegyp3UWRt Nmzg== 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; bh=xXIwkcpSLWGDntnoiJX0jBOwoNFriuAoq+iGmV2dNgE=; b=zuVVttV55tMxWLdYJsrRQDvRe8xv8T3CQOimqHFF97wuTvuy9lbFxaCPHTYR5SrXrc 4m8bVQBXzZ/4mEiXPl14+v2iVY0Qz1xtxnLgNV3/fd7G/1eRxKkUll3bfWZas2U5L8gD B/+QB5rrhd1//AmVV/jA/mFFlsHUgAyNKSt+yFUI4EqmzhJBCIfZokxmXfJD1LGiya2Q nVFPeqgFDsWp4UKyr+fQ01eVEniyAWfkGha+Psg5NC4uLOY6zmqSW+M72toMpHtE+k+V n1AjqDA9aR0usuKDvKjPcA5zcdb6hoT9jmLzy6rvd1+hm0cC2c5t5jwCVSTz54wxYvZP UdvA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k19si8791748eds.71.2019.09.10.12.14.00; Tue, 10 Sep 2019 12:14:29 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394150AbfIJQRx (ORCPT + 99 others); Tue, 10 Sep 2019 12:17:53 -0400 Received: from guitar.tcltek.co.il ([192.115.133.116]:36970 "EHLO mx.tkos.co.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394139AbfIJQRx (ORCPT ); Tue, 10 Sep 2019 12:17:53 -0400 Received: from sapphire.tkos.co.il (unknown [192.168.100.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.tkos.co.il (Postfix) with ESMTPS id 619F14402AC; Tue, 10 Sep 2019 19:17:49 +0300 (IDT) Date: Tue, 10 Sep 2019 19:17:48 +0300 From: Baruch Siach To: tinywrkb Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio Estevam , Sascha Hauer , Russell King , open list , Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Shawn Guo , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: dts: imx6dl: SolidRun: add phy node with 100Mb/s max-speed Message-ID: <20190910161748.dbvudrkx6i2avoha@sapphire.tkos.co.il> 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: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi tinywrkb, On Tue, Sep 10, 2019 at 06:55:07PM +0300, tinywrkb wrote: > Cubox-i Solo/DualLite carrier board has 100Mb/s magnetics while the > Atheros AR8035 PHY on the MicroSoM v1.3 CPU module is a 1GbE PHY device. According to the hardware designer, Rabeeh Khoury, there is not such limitation in the Cubox-i carrier magnetics. > Since commit 5502b218e001 ("net: phy: use phy_resolve_aneg_linkmode in > genphy_read_status") ethernet is broken on Cubox-i Solo/DualLite devices. Does revert of 5502b218e001 fixes your issue? > 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 You must use your real name in sign-off. > --- > 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>; > +}; Where is the ethphy lable defined? Have you build tested this patch? > 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 { baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -