From patchwork Wed Feb 19 23:28:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 3683351 Return-Path: X-Original-To: patchwork-linux-arm@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 070C29F1EE for ; Wed, 19 Feb 2014 22:29:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2179D20166 for ; Wed, 19 Feb 2014 22:29:29 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2CC3F20158 for ; Wed, 19 Feb 2014 22:29:28 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WGFdq-0000JP-AB; Wed, 19 Feb 2014 22:29:22 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WGFdn-0002bc-QB; Wed, 19 Feb 2014 22:29:19 +0000 Received: from mail-lb0-f182.google.com ([209.85.217.182]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WGFdl-0002bC-QT for linux-arm-kernel@lists.infradead.org; Wed, 19 Feb 2014 22:29:18 +0000 Received: by mail-lb0-f182.google.com with SMTP id w7so759565lbi.41 for ; Wed, 19 Feb 2014 14:28:55 -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:organization:to:subject:date:user-agent:cc :references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=lg+/luf1/qPlqSBpJRJGJhG06IA3IjlyWUgk64gGNEs=; b=NSQqtB5LZBid3EmKdQuY1FxCINhP1yEjFp+BUtGDELMHB9NHjoj+eIT8rJ7J7WLco4 86lhVpmcJFH+oaq5oHt3kxztNecMBGO6URjGXSPMUDQCqiu3C5PyWkqrDQHZk+VG+s2h 0mNOvcUx4bSqoGrYf3WrhjyojAlfYNoR8F8PMPmltRiOWDAIPlZ5YAxqZ8o85HxpAnmG +RYoO+uoKlYIG/68RlXZsjPDc97MwzhBuaeffhFCDs7TmB50BD4lbAALv4qU5zd+rsoY +5mny3nqZ8GihModRYNzskGIxyM00/k39WGxssw/eF3WJ2Oqk4KA8H2MPN8gWEK+r10P //wA== X-Gm-Message-State: ALoCoQlmJhHgdcOn7I9DQ/K5tYOqhJ2eCW4c44v342QV77xV4WRSqhoSg2513c9xcmem7qLVyix5 X-Received: by 10.152.205.163 with SMTP id lh3mr27668579lac.10.1392848935794; Wed, 19 Feb 2014 14:28:55 -0800 (PST) Received: from wasted.cogentembedded.com (ppp85-140-130-62.pppoe.mtu-net.ru. [85.140.130.62]) by mx.google.com with ESMTPSA id th3sm1660289lbb.11.2014.02.19.14.28.54 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 19 Feb 2014 14:28:55 -0800 (PST) From: Sergei Shtylyov Organization: Cogent Embedded To: horms@verge.net.au, linux-sh@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org Subject: [PATCH v2 2/2] ARM: shmobile: koelsch: add Ether DT support Date: Thu, 20 Feb 2014 02:28:59 +0300 User-Agent: KMail/1.13.5 (Linux/2.6.32.26-175.fc12.i686.PAE; KDE/4.4.5; i686; ; ) References: <201402200225.00598.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201402200225.00598.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201402200229.00432.sergei.shtylyov@cogentembedded.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140219_172918_000097_E8ACD40E X-CRM114-Status: GOOD ( 13.03 ) X-Spam-Score: 0.3 (/) Cc: linux@arm.linux.org.uk, magnus.damm@gmail.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_MED,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 Koelsch board dependent part of the Ether device node. Signed-off-by: Sergei Shtylyov --- Changes in version 2: - moved PHY pin node phandle from PHY device node to the Ether device node, thus removing all pin control properties from the PHY node; - refreshed the patch. arch/arm/boot/dts/r8a7791-koelsch.dts | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) Index: renesas/arch/arm/boot/dts/r8a7791-koelsch.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7791-koelsch.dts +++ renesas/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -2,7 +2,8 @@ * Device Tree Source for the Koelsch board * * Copyright (C) 2013 Renesas Electronics Corporation - * Copyright (C) 2013 Renesas Solutions Corp. + * Copyright (C) 2013-2014 Renesas Solutions Corp. + * Copyright (C) 2014 Cogent Embedded, Inc. * * This file is licensed under the terms of the GNU General Public License * version 2. This program is licensed "as is" without any warranty of any @@ -146,12 +147,37 @@ renesas,function = "scif1"; }; + ether_pins: ether { + renesas,groups = "eth_link", "eth_mdio", "eth_rmii"; + renesas,function = "eth"; + }; + + phy1_pins: phy1 { + renesas,groups = "intc_irq0"; + renesas,function = "intc"; + }; + qspi_pins: spi { renesas,groups = "qspi_ctrl", "qspi_data4"; renesas,function = "qspi"; }; }; +ð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>; + }; +}; + &sata0 { status = "okay"; };