From patchwork Wed Feb 11 22:41:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 5814771 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 9419BBF440 for ; Wed, 11 Feb 2015 22:41:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CEDA52017E for ; Wed, 11 Feb 2015 22:41:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EC3D4201C0 for ; Wed, 11 Feb 2015 22:41:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752282AbbBKWlu (ORCPT ); Wed, 11 Feb 2015 17:41:50 -0500 Received: from mail-la0-f45.google.com ([209.85.215.45]:38368 "EHLO mail-la0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752452AbbBKWlu (ORCPT ); Wed, 11 Feb 2015 17:41:50 -0500 Received: by lamq1 with SMTP id q1so6526298lam.5 for ; Wed, 11 Feb 2015 14:41:48 -0800 (PST) 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=h5jGPu8GvgIHbOt2LbZfj0a3b2p+7ry1ugvHrw7QshI=; b=e3zW1bz6S0fnX7BPmiS2K9bRlZ+QM3pVtsjT3datMr0irJ8wqz1Z1+eErx1tg6WOqB ge4YJ8EaPDgVZFOyIouLYg+sk7YqFo8zyG5rsn8DiINN7SN70vLMsQnJppLSANtorXbB AshTDEE3rNw90TayDHFUUbGe9SRv0Pb1h1KmuwYfGZm0+F/9DA35K8zLL68IjLnoflG7 Z40UT0LUk2l3HH1tzvzqxQfahveFJ72VTTg7PACwwoHswThmYQb/PiPlZ2AXRRzW38sF RMg3v1ntmQiJfCqd1oz8ZjomiLhpYUjTd4OMlC8+4nABwLvEGQgNahktjDQgy1BnusME F4YQ== X-Gm-Message-State: ALoCoQnWnUST7BIX3F6BYoyaHb63YUctnrH+R82aoV0Q/7j6+61IofmlFtPNbswHH5QEpop7jzUK X-Received: by 10.152.43.18 with SMTP id s18mr815798lal.26.1423694508484; Wed, 11 Feb 2015 14:41:48 -0800 (PST) Received: from wasted.cogentembedded.com (ppp21-93.pppoe.mtu-net.ru. [81.195.21.93]) by mx.google.com with ESMTPSA id lf3sm416847lbc.2.2015.02.11.14.41.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Feb 2015 14:41:47 -0800 (PST) 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: silk: add Ether DT support Date: Thu, 12 Feb 2015 01:41:45 +0300 Message-ID: <2276051.p98cm4dRE4@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.3 (Linux/3.18.5-101.fc20.x86_64; KDE/4.14.3; 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 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-20150211-v3.19' tag of Simon Horman's 'renesas.git' repo. It depends on just posted SILK board initial DT patch in order to apply, on just posted R8A7794 PFC DT patch in order to compile, and on R8A7794 PFC driver patch in order for the pins to be configured. 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>; + }; +};