Received: by 10.223.164.202 with SMTP id h10csp1114863wrb; Thu, 9 Nov 2017 21:51:09 -0800 (PST) X-Google-Smtp-Source: ABhQp+QMXObeZt9HTwvSUZu+kIthq73BOHVcnzKfNCrp9t1K94ugoIln2NBtPx+pcjY/tqCRsDov X-Received: by 10.159.214.152 with SMTP id n24mr3052180plp.48.1510293069876; Thu, 09 Nov 2017 21:51:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510293069; cv=none; d=google.com; s=arc-20160816; b=nTwjScuBufEiPnNYduFVIuz1SgyWdX6vXkVArLm6Inv8y7qPQYUCfIlnqnDi+fNoTd Qb7FbvKurmvsccBVX8FnCqIpoXMbrv5s9TVzEWKjY2iOzSXGU5MM9+TtOXFS+enrjKOc NJ114pFwD51rWxb82Bh2nNr6VEg60VR7KEOCPE3lijtfSHJbyNPTuQlWsHDggKxe9Nam koyc4HegBPhvnlFDni3OvqNqTtlNwflBX7xkgK9yETbYxB3ToO9FnMFEQlTbCZiZKYDn ogCIl5ybjDT/P+R24LnfZGLpSnnJ6+UWseOuH07DofXiRxcVVLMQkU5FUaHyBVVUnJ9L xjaQ== 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:arc-authentication-results; bh=iHEsVoxAy3SfJsstq3bho3+3fAJo/p4j/xFAthVGE2I=; b=auXz6NWNz/anxVaeCaDmSqUTr2Ez3Uj7zQbrI9NXv3zlc4CHlMdpUosgkrDmwuEG1A MY4Z2WUvmp6htuW4pZ//6SXfaYz0VEYeKXoXr88JYLmFVp7OdWzYLMywOy3SPcgNSvgW ohIvsIXK3dkINI4xj4xTGlP6xrw9/LqR2VdfumPlX9rLIQSWx0u0JgoH8+NBfM0Wa+ro 92PCujU3evMZ8E5W9xlmsLPSnKBdX6QQd3eqbBLbAHpe+cBGldHoI4Zzwk903EnAvEwP P1QKZMnI+b+NqdR4IpjXoB3DoNABFXmoUWZfGFJC0kIqbLV3htsTorVQ9qgK4eErIFcS zcXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Qzgg0/fO; 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=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q12si7583254pgp.174.2017.11.09.21.50.58; Thu, 09 Nov 2017 21:51:09 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=Qzgg0/fO; 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=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751275AbdKJFuV (ORCPT + 83 others); Fri, 10 Nov 2017 00:50:21 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33845 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750885AbdKJFuT (ORCPT ); Fri, 10 Nov 2017 00:50:19 -0500 Received: by mail-wm0-f66.google.com with SMTP id n74so4570696wmi.1; Thu, 09 Nov 2017 21:50:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=iHEsVoxAy3SfJsstq3bho3+3fAJo/p4j/xFAthVGE2I=; b=Qzgg0/fOUARYldE+yhAuIw8B5PoHZ1n47DpGxfjylg8918LuK19OO6PhPW1mPN6PSh BPSPwEQL40zkW5NbSJKgAxdLv1BhVmHnSg4UMw3eAMmaKGLCtR460xvJJqeMesC0UAdp FSoZ9Tw14WW1UM3EJvwBnBp2zzwZtdgQPZwNhplTadeOD6z2zJpR7zFXBaPFrqfk3EAF df3StQHSA1x5f1yxq8rFAM5rj/lm7fSlWXDbMOAKp7cIx/WlpOsMS1udJHz5QVKNrv1p WfUaCopYTC7IoUIbuueXLhakrrPgaPIl3AK3Q1gn7Nf9h5U831d15g3CJiLkcIvBb4Rs KSVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=iHEsVoxAy3SfJsstq3bho3+3fAJo/p4j/xFAthVGE2I=; b=uXBK9J16wlJSn7v3IVm4fzSsmLyGW6ZpIWVSt94B1ly3VfwIUPny/3FAkWyr/CUrgk KeoJ05s1zxBHzAObtze5P9OY/XzQ2UvHoavZUesoNKZSzjCM7A3Qj8Lw4GH3lBQbiQ54 Wt9prgNUvJRzB2HDW3Rl/FbbOrWz+EZDV4tw5oQzHlDkyinD37N4I3ci/7PLvFHP0zjZ 7yyAIN3q2WCvPphtKBQw39Ia7gUsqMNmb0cOJ8dYWnmGagaij8YwYWZpybbXV/wjyGtw np4yJT6PIiDTpeakJj38Z93u0zCS2MJgapYMyoNDQjSem1DuVnLjVYEZHs0h+32GRL4b +2mg== X-Gm-Message-State: AJaThX7J3FujsAyDCWbKNd7nQfQoLZYnMy8NQoBvG6peAnWSf4HT5oum i2hldO1NRFFn8YWfruwCDn8= X-Received: by 10.80.213.131 with SMTP id v3mr965910edi.256.1510293018136; Thu, 09 Nov 2017 21:50:18 -0800 (PST) Received: from Red ([2a01:cb1d:16e:1300:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id 3sm6647118edv.50.2017.11.09.21.50.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Nov 2017 21:50:17 -0800 (PST) Date: Fri, 10 Nov 2017 06:50:15 +0100 From: Corentin Labbe To: Chen-Yu Tsai Cc: Russell King , Mark Rutland , Maxime Ripard , Rob Herring , devicetree , linux-arm-kernel , linux-kernel , linux-sunxi Subject: Re: [PATCH v2 2/2] ARM: sun8i: bananapi-m3: Enable dwmac-sun8i Message-ID: <20171110055015.GA11040@Red> References: <20171109082950.21124-1-clabbe.montjoie@gmail.com> <20171109082950.21124-3-clabbe.montjoie@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 10, 2017 at 11:48:11AM +0800, Chen-Yu Tsai wrote: > On Thu, Nov 9, 2017 at 4:29 PM, Corentin Labbe > wrote: > > The dwmac-sun8i hardware is present on the bananapi m3 > > It uses an external PHY rtl8211e via RGMII. > > > > This patch create the needed emac and phy nodes. > > > > Signed-off-by: Corentin Labbe > > --- > > arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 18 ++++++++++++++++++ > > 1 file changed, 18 insertions(+) > > > > diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts > > index c606af3dbfed..45bdd5c17829 100644 > > --- a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts > > +++ b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts > > @@ -52,6 +52,7 @@ > > compatible = "sinovoip,bpi-m3", "allwinner,sun8i-a83t"; > > > > aliases { > > + ethernet0 = &emac; > > serial0 = &uart0; > > }; > > > > @@ -88,6 +89,23 @@ > > /* TODO GL830 USB-to-SATA bridge downstream w/ GPIO power controls */ > > }; > > > > +&emac { > > + pinctrl-names = "default"; > > + pinctrl-0 = <&emac_rgmii_pins>; > > + phy-handle = <&ext_rgmii_phy>; > > + phy-mode = "rgmii"; > > Schematics say PHY is power by DC1SW from the PMIC. > Not sure why you don't need that. Have you tested your patch? Tested on 4.14.0-rc5-next-20171018+ I will try to check which uboot is used, perhaps it's an old uboot with some PMIC hack. Thanks Regards From 1583649409183865599@xxx Fri Nov 10 03:49:27 +0000 2017 X-GM-THRID: 1583576660233447778 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread