From patchwork Fri May 17 13:00:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2582681 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id A01B8DF215 for ; Fri, 17 May 2013 13:01:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753601Ab3EQNBE (ORCPT ); Fri, 17 May 2013 09:01:04 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:64325 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753535Ab3EQNBD (ORCPT ); Fri, 17 May 2013 09:01:03 -0400 Received: from axis700.grange (dslb-088-076-018-110.pools.arcor-ip.net [88.76.18.110]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0LxMeg-1URxU53lko-016zyN; Fri, 17 May 2013 15:00:24 +0200 Received: by axis700.grange (Postfix, from userid 1000) id 6309C40BB4; Fri, 17 May 2013 15:00:23 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id 566DA40BB3; Fri, 17 May 2013 15:00:23 +0200 (CEST) Date: Fri, 17 May 2013 15:00:23 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: Simon Horman cc: Arnd Bergmann , Olof Johansson , linux-sh@vger.kernel.org, arm@kernel.org, linux-arm-kernel@lists.infradead.org, Paul Mundt , Magnus Damm , Magnus Damm Subject: Re: [PATCH 05/11] ARM: shmobile: APE6EVM LAN9220 support In-Reply-To: <1364954906-16014-6-git-send-email-horms+renesas@verge.net.au> Message-ID: References: <1364954906-16014-1-git-send-email-horms+renesas@verge.net.au> <1364954906-16014-6-git-send-email-horms+renesas@verge.net.au> MIME-Version: 1.0 X-Provags-ID: V02:K0:MCEQK/lu7jmClMRcXxp9kmyieOrOoaYjBQniTH7xv6N OtRbGidTNHJF+dDQENC13GiNgD7XKloWNK1lkV3911n22+t9/R Dxa4XamskeJNpDa1qem/sqDhJMa+RWQ1wZ4HTqS+cD5UwaKIj8 d0f9DQF8mhFuOisnY77YxBWSvRrCOEtzAriV9X+TQRVGs+BgwF gwhJRzYUF2zCytD/Zu21f4ibzpzRhev59XrekbCz7XF33f4an+ LcLx3btRHe6daJ1Ppdl2jBvionhu0K9IQsJLo3GgUqLHQXRrwV slvv31G7oT6qdkGIwgQgLq1SbtC5IlhDDNW95pQrWqTmW6ywQm XVgh0f+sFbdo61PuwSQEmZFGWxNHkRrOOITvIZzt7dzRQzYFKz uifqbzKzJdA3w== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org Hi Simon, Magnus On Wed, 3 Apr 2013, Simon Horman wrote: > From: Magnus Damm > > Add LAN9220 support to the APE6EVM board using C and DT. > At this point the PFC driver lacks DT bindings so to > configure the PFC we use PINCTRL in C board code. > > Signed-off-by: Magnus Damm > Signed-off-by: Simon Horman > --- > arch/arm/boot/dts/r8a73a4-ape6evm.dts | 23 ++++++++++++++++++- > arch/arm/mach-shmobile/board-ape6evm.c | 38 ++++++++++++++++++++++++++++++++ > 2 files changed, 60 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts > index 833f703..f603c69 100644 > --- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts > +++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts > @@ -16,7 +16,7 @@ > compatible = "renesas,ape6evm", "renesas,r8a73a4"; > > chosen { > - bootargs = "console=ttySC0,115200 ignore_loglevel"; > + bootargs = "console=ttySC0,115200 ignore_loglevel root=/dev/nfs ip=dhcp"; > }; > > memory@40000000 { > @@ -24,8 +24,29 @@ > reg = <0 0x40000000 0 0x40000000>; > }; > > + ape6evm_fixed_3v3: fixedregulator@0 { > + compatible = "regulator-fixed"; > + regulator-name = "3V3"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-always-on; > + }; > + > lbsc { > #address-cells = <1>; > #size-cells = <1>; > + > + ethernet@8000000 { > + compatible = "smsc,lan9118", "smsc,lan9115"; > + reg = <0x08000000 0x1000>; > + interrupt-parent = <&irqc1>; > + interrupts = <8 0x4>; > + phy-mode = "mii"; > + reg-io-width = <4>; > + smsc,irq-active-high; > + smsc,irq-push-pull; > + vdd33a-supply = <&ape6evm_fixed_3v3>; > + vddvario-supply = <&ape6evm_fixed_3v3>; > + }; > }; > }; The above didn't work in my tests without this: Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts index f603c69..4fb0102 100644 --- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts +++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts @@ -33,8 +33,10 @@ }; lbsc { + compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; + ranges = <0 0 0 0x80000000>; ethernet@8000000 { compatible = "smsc,lan9118", "smsc,lan9115";