From patchwork Thu Apr 24 22:44:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4056171 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2B4879F1F4 for ; Thu, 24 Apr 2014 22:44:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5AF9D2034E for ; Thu, 24 Apr 2014 22:44:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9281720160 for ; Thu, 24 Apr 2014 22:44:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932339AbaDXWoU (ORCPT ); Thu, 24 Apr 2014 18:44:20 -0400 Received: from mail-la0-f44.google.com ([209.85.215.44]:40070 "EHLO mail-la0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932264AbaDXWoM (ORCPT ); Thu, 24 Apr 2014 18:44:12 -0400 Received: by mail-la0-f44.google.com with SMTP id b8so2520869lan.31 for ; Thu, 24 Apr 2014 15:44:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:organization:to:subject:date:user-agent:cc :references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=aw9AxIYXsN5aJ/uwp4lVfqdrISsVkwi0f5eJdNtU5RI=; b=UAio4yLheBK4wdn5jjhs0ebRdsTuqrwjajSbLmTSOU/nxfgkTFD2PrW7etSH50ehfU OtxG3FBHsPl5A8kpxiJasO55gKh5U7pQ8q3QnbY980YM71VwlkjE+qyG3pJO7sSOGGdu SjRUrIHbOmeI24oG8Oz0R+dJm//qzl6UGqyqBV8IuBe+6uYBCnNF7eadbkEUmwgYPZR3 lK3yejSbSOTyLuRcOPw0zAG2tnvBxwXuUcoeo9ClCOgbyqjAbUP5YtL3jmylUz8iVGT7 WuI1kx5uJMdmUf91blaOuZUmwOG00pVcpGCbbZ1K4HO2voNahf50Lk7ZPRL1eh3kMUVg mulg== X-Gm-Message-State: ALoCoQnjqJ1AThxyBSjlg/ewGtbz3rJIuTjZJl1KIRhpGjt/2cSVkGkLaWLve1L7GggVKUG4m3tD X-Received: by 10.112.92.109 with SMTP id cl13mr97045lbb.50.1398379451519; Thu, 24 Apr 2014 15:44:11 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp83-237-63-24.pppoe.mtu-net.ru. [83.237.63.24]) by mx.google.com with ESMTPSA id r5sm5929948lbb.7.2014.04.24.15.44.10 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 24 Apr 2014 15:44:10 -0700 (PDT) From: Sergei Shtylyov Organization: Cogent Embedded To: horms@verge.net.au, linux-sh@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org Subject: [PATCH 2/2] ARM: shmobile: henninger: add Ether DT support Date: Fri, 25 Apr 2014 02:44:12 +0400 User-Agent: KMail/1.13.5 (Linux/2.6.32.26-175.fc12.i686.PAE; KDE/4.4.5; i686; ; ) Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org References: <201404250239.39150.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201404250239.39150.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201404250244.13232.sergei.shtylyov@cogentembedded.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Define the Henninger board dependent part of the Ether device node. Enable DHCP and NFS root for the kernel booting. Signed-off-by: Sergei Shtylyov --- arch/arm/boot/dts/r8a7791-henninger.dts | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) -- 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 Index: renesas/arch/arm/boot/dts/r8a7791-henninger.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7791-henninger.dts +++ renesas/arch/arm/boot/dts/r8a7791-henninger.dts @@ -21,7 +21,7 @@ }; chosen { - bootargs = "console=ttySC0,38400 ignore_loglevel"; + bootargs = "console=ttySC0,38400 ignore_loglevel rw root=/dev/nfs ip=dhcp"; }; memory@40000000 { @@ -40,6 +40,16 @@ renesas,groups = "scif0_data_d"; renesas,function = "scif0"; }; + + ether_pins: ether { + renesas,groups = "eth_link", "eth_mdio", "eth_rmii"; + renesas,function = "eth"; + }; + + phy1_pins: phy1 { + renesas,groups = "intc_irq0"; + renesas,function = "intc"; + }; }; &scif0 { @@ -48,3 +58,19 @@ status = "okay"; }; + +ðer { + pinctrl-0 = <ðer_pins &phy1_pins>; + pinctrl-names = "default"; + + phy-handle = <&phy1>; + renesas,ether-link-active-low; + status = "ok"; + + phy1: ethernet-phy@1 { + reg = <1>; + interrupt-parent = <&irqc0>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + micrel,led-mode = <1>; + }; +};