From patchwork Mon Oct 5 22:51:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 7332151 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 954C7BEEA4 for ; Mon, 5 Oct 2015 22:51:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AEBB020412 for ; Mon, 5 Oct 2015 22:51:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CD1D120529 for ; Mon, 5 Oct 2015 22:51:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752112AbbJEWvH (ORCPT ); Mon, 5 Oct 2015 18:51:07 -0400 Received: from mail-lb0-f177.google.com ([209.85.217.177]:35567 "EHLO mail-lb0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752032AbbJEWvG (ORCPT ); Mon, 5 Oct 2015 18:51:06 -0400 Received: by lbwr8 with SMTP id r8so66260156lbw.2 for ; Mon, 05 Oct 2015 15:51:03 -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:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=EyaVTq0i/7zcgdtfYBEUm5xrEhwL36lGfZlV0R7/cPg=; b=lA95ravyVl4WAc/C9FHzvpWhOJ+TAn89qu8FEeCZ+GdWEcRO+jZI9e4QsVdyBZgWtO KuzhbB2tJfrId9kd5gMzHoi6BAhwRXgF+mMVsyBqysqq2GaFXtlPqLxi8Ib+G0trtMdt MT8JvhA5B1EP9uKhrfMww64K806FNC/KLeVXxPVOSnH15yoCeElTAPmxHP/fyL1xCMQc o/1A9ZRYDlohewvS+Gy9r7NWxHN0WOQrvp7rqHh+d9D9c1AFgKw6DVkIdeT9f2yfBxVc 16yZOus+4eSglfoGR5LECCnd/fhvnMmr09dAeQFVdj909+AMNv7slkikawRX4MgYgUxP eqkw== X-Gm-Message-State: ALoCoQkTHKLJH46wmgUZYUPLHC04BH9bqIbsMXNAiivly82h4SGkVsO4wnWer1DrVhd/5ci4fBLY X-Received: by 10.112.156.193 with SMTP id wg1mr12600122lbb.24.1444085463780; Mon, 05 Oct 2015 15:51:03 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp31-33.pppoe.mtu-net.ru. [81.195.31.33]) by smtp.gmail.com with ESMTPSA id jf4sm3265226lbc.23.2015.10.05.15.51.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Oct 2015 15:51:02 -0700 (PDT) From: Sergei Shtylyov 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 Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: shmobile: porter: add Ether DT support Date: Tue, 06 Oct 2015 01:51:01 +0300 Message-ID: <1507520.6rxyDiKYNB@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.9 (Linux/4.1.7-100.fc21.x86_64; KDE/4.14.9; x86_64; ; ) In-Reply-To: <201404250239.39150.sergei.shtylyov@cogentembedded.com> References: <201404250239.39150.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 Porter board dependent part of the Ether device node. Enable DHCP and NFS root for the kernel booting. This patch is analogous to the commit 26b0d2cf73cb (ARM: shmobile: henninger: add Ether DT support) as there are no differences between those boards in this respect. Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20151005-v4.3-rc4' tag of Simon Horman's 'renesas.git' repo. arch/arm/boot/dts/r8a7791-porter.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-porter.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7791-porter.dts +++ renesas/arch/arm/boot/dts/r8a7791-porter.dts @@ -20,7 +20,7 @@ }; chosen { - bootargs = "ignore_loglevel"; + bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; stdout-path = &scif0; }; @@ -44,6 +44,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 { @@ -52,3 +62,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>; + }; +};