From patchwork Tue Jul 28 22:16:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 6888681 X-Patchwork-Delegate: horms@verge.net.au 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 97C7CC05AC for ; Tue, 28 Jul 2015 22:16:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C311A20755 for ; Tue, 28 Jul 2015 22:16:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DA0EF2074E for ; Tue, 28 Jul 2015 22:16:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751473AbbG1WQG (ORCPT ); Tue, 28 Jul 2015 18:16:06 -0400 Received: from mail-la0-f49.google.com ([209.85.215.49]:34892 "EHLO mail-la0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751456AbbG1WQF (ORCPT ); Tue, 28 Jul 2015 18:16:05 -0400 Received: by lahh5 with SMTP id h5so77142094lah.2 for ; Tue, 28 Jul 2015 15:16:04 -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=7uyr0tvAWfmunUaZa3FRmnQ0RkzFCRAHBvteDLOYbh8=; b=MMKpWfm+BIEwuSdtfgT1QjlpCTRanl1pH/v8RkyOPY64H3F4hGYUH1kuKROrvKjAIr Ce3BsC1hUh0H7545XCM8uOCtEbH4U6RjtGsXlYFnZrziB/CEkum/wuMN4kF8zFYCxJ34 GnzXfgW9/AoX1Kae1idi7XY0pZ5hIq/4CH+S39nqof1DlHKidrZ7h5Smn3+q3nkr7927 3SiQqohT2SXFetiQJ2tG2l545SU2Tbo2vR7CXNqDXpddMak1I1zfBnyMh/qw43lhMsBA IqlJN92qcrkX9MUbbuIEv/fMGCIOqGXo9u9DLRH8tGAgdxem1xt+IykVVr69U6BfkJ4W FUeg== X-Gm-Message-State: ALoCoQkRiX4gEwqH1gEyPa7Bvg42YVjuy79uRg0Iay6dUhUxpCbXl8MgAgFidU1cQ1bff+a6AQW3 X-Received: by 10.112.170.167 with SMTP id an7mr35467493lbc.103.1438121764183; Tue, 28 Jul 2015 15:16:04 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp83-237-250-119.pppoe.mtu-net.ru. [83.237.250.119]) by smtp.gmail.com with ESMTPSA id cu1sm4919475lbb.28.2015.07.28.15.16.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jul 2015 15:16:03 -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 RESEND] ARM: shmobile: silk: add Ether DT support Date: Wed, 29 Jul 2015 01:16:02 +0300 Message-ID: <6826396.5PIZbPW8q4@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.9 (Linux/4.0.8-200.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=-8.3 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 SILK board dependent part of the Ether device node. Enable DHCP and NFS root for the kernel booting. Based on the original patch by Vladimir Barinov . Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20150728-v4.2-rc4' tag of Simon Horman's 'renesas.git' repo. It depends on just posted SILK board initial DT patch in order to apply and on R8A7794 PFC DT patch posted yesterday in order to compile. arch/arm/boot/dts/r8a7794-silk.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/r8a7794-silk.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7794-silk.dts +++ renesas/arch/arm/boot/dts/r8a7794-silk.dts @@ -22,7 +22,7 @@ }; chosen { - bootargs = "ignore_loglevel"; + bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; stdout-path = &scif2; }; @@ -41,6 +41,16 @@ renesas,groups = "scif2_data"; renesas,function = "scif2"; }; + + ether_pins: ether { + renesas,groups = "eth_link", "eth_mdio", "eth_rmii"; + renesas,function = "eth"; + }; + + phy1_pins: phy1 { + renesas,groups = "intc_irq8"; + renesas,function = "intc"; + }; }; &scif2 { @@ -49,3 +59,19 @@ status = "okay"; }; + +ðer { + pinctrl-0 = <ðer_pins &phy1_pins>; + pinctrl-names = "default"; + + phy-handle = <&phy1>; + renesas,ether-link-active-low; + status = "okay"; + + phy1: ethernet-phy@1 { + reg = <1>; + interrupt-parent = <&irqc0>; + interrupts = <8 IRQ_TYPE_LEVEL_LOW>; + micrel,led-mode = <1>; + }; +};