From patchwork Fri May 24 12:53:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Emilio_L=C3=B3pez?= X-Patchwork-Id: 246138 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id BAB182C0368 for ; Fri, 24 May 2013 22:54:30 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754726Ab3EXMxR (ORCPT ); Fri, 24 May 2013 08:53:17 -0400 Received: from zetta.elopez.com.ar ([199.30.59.35]:37532 "EHLO zetta.elopez.com.ar" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753341Ab3EXMxQ (ORCPT ); Fri, 24 May 2013 08:53:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=elopez.com.ar; s=mail; h=Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=6CYriafxqN9xpbUnnQ8UpqKyMAJ1cwCziT4mcMilvVA=; b=YxQYnFVQSGDgAtjIVM9uf37NgfpFB7afYrzPqO/nxxbqJzufYwEas0MWMkkR0EYkrI/0TPlVUx19/DKPXkPecgD3hCoEhwlSYdZy+a1VRSFlSe5cJwHwy5IA/pM670C1+nwTLM6c4X7DW+HLQ5jXq9X4rN9chue6OZfxr/dUD8YcIyAtk5B4XyMhOGQCIsvml5dMcgeTyQ91GVvEH1vcMk5RGiTjgKrh4O2Ta625mMkfFGCQa+mNiCvAA0/nN3ULUu/o+oOXFu06+VFy5oTkCmCMzVsF0YH4HKGBL7WmqFjbQl36Pi8zOusUdeGtedHh7t8BftIPmankl30LZF07UQ==; Received: from [181.164.109.61] (helo=[192.168.1.103]) by zetta.elopez.com.ar with esmtpsa (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) id 1UfrUe-0000Jl-7x; Fri, 24 May 2013 09:53:12 -0300 Message-ID: <519F62B3.8090302@elopez.com.ar> Date: Fri, 24 May 2013 09:53:07 -0300 From: =?ISO-8859-1?Q?Emilio_L=F3pez?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 MIME-Version: 1.0 To: Maxime Ripard CC: davem@davemloft.net, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Roese , Florian Fainelli , kevin@allwinnertech.com, sunny@allwinnertech.com, shuge@allwinnertech.com Subject: Re: [PATCHv3 5/6] ARM: cubieboard: Enable ethernet (EMAC) support in dts References: <1369387394-9453-1-git-send-email-maxime.ripard@free-electrons.com> <1369387394-9453-6-git-send-email-maxime.ripard@free-electrons.com> In-Reply-To: <1369387394-9453-6-git-send-email-maxime.ripard@free-electrons.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, El 24/05/13 06:23, Maxime Ripard escribió: > From: Stefan Roese > > Signed-off-by: Stefan Roese > --- > arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > diff --git a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts > index b70fe0d..32d9b18 100644 > --- a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts > +++ b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts > @@ -27,6 +27,21 @@ > }; > > soc@01c20000 { > + emac: ethernet@01c0b000 { > + pinctrl-names = "default"; > + pinctrl-0 = <&emac_pins_a>; > + phy = <&phy0>; > + status = "okay"; > + }; > + > + mdio@01c0b080 { > + status = "okay"; > + > + phy0: ethernet-phy@0 { > + reg = <0>; > + }; During my testing I found out that I needed to use 1 as reg for the driver to work. You can find a fixup patch enclosed that changes this; it's possible that some extra changes may also be needed (s/phy0/phy1/ on the node?) Cheers, Emilio From f8a76c66fff0700e3c87f89b8b250effc0f2b37f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= Date: Fri, 17 May 2013 10:11:48 -0300 Subject: [PATCH] fixup! ARM: cubieboard: Enable ethernet (EMAC) support in dts --- arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts index cd69799..21f0197 100644 --- a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts +++ b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts @@ -38,7 +38,7 @@ status = "okay"; phy0: ethernet-phy@0 { - reg = <0>; + reg = <1>; }; }; -- 1.8.1.6