From patchwork Wed Feb 19 23:22:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 3683301 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 136B9BF13A for ; Wed, 19 Feb 2014 22:22:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 17122201F0 for ; Wed, 19 Feb 2014 22:22:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 40C3A20166 for ; Wed, 19 Feb 2014 22:22:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750999AbaBSWW3 (ORCPT ); Wed, 19 Feb 2014 17:22:29 -0500 Received: from mail-lb0-f180.google.com ([209.85.217.180]:56232 "EHLO mail-lb0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750821AbaBSWW3 (ORCPT ); Wed, 19 Feb 2014 17:22:29 -0500 Received: by mail-lb0-f180.google.com with SMTP id n15so748873lbi.25 for ; Wed, 19 Feb 2014 14:22:27 -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=630xCV2OkT/Jn5TjBMgTFb4AbmtVB0Lo/mgLFf0M+8E=; b=cItH6Fd1PoZVNw6aR4+U+w8M/j1+MZn+zZE7ZrqVF3SEnmXTb4S7SgDGTwrXhTWZsS 5fGgNJxSAdkSGUAcNw5fFBFvuRRv5TuzEZLLoPoz6cgmA50GBhoksf4sh450tR4YiEku XYz9dNLyt6MhDNey8MBKYvOBnUAAEekH34e6Q1fjFySUsW22i9mFvx1qKwL1cKYQcd3w jsx3vWKkNmybYJO+BPxO0fmlpzvoU8AokFGMptyeM/qrxyOHhx5N91ESHmtyjwDXbc2F +uOJVFivNmXe6xke/b7oinlVBCxp2VQ3cddoa3LXsUtItDnu1sFOGIJpDjf+O6KfRL2L hSwA== X-Gm-Message-State: ALoCoQnbQUPmtT+SYZ0XjzO2o04xIm2utrffA7DMMNNFbYQo8eawxGl2hFxYU+4JFoEgEjIUNovw X-Received: by 10.112.129.168 with SMTP id nx8mr26233408lbb.37.1392848547552; Wed, 19 Feb 2014 14:22:27 -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 o10sm2313852laj.2.2014.02.19.14.22.26 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 19 Feb 2014 14:22:27 -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: lager: add Ether DT support Date: Thu, 20 Feb 2014 02:22:31 +0300 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: <201402200218.23099.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201402200218.23099.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201402200222.32265.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=-4.6 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, 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 Lager 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; - resolved reject. arch/arm/boot/dts/r8a7790-lager.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/r8a7790-lager.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7790-lager.dts +++ renesas/arch/arm/boot/dts/r8a7790-lager.dts @@ -1,7 +1,8 @@ /* * Device Tree Source for the Lager board * - * 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 @@ -124,6 +125,16 @@ 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"; + }; + scif1_pins: serial1 { renesas,groups = "scif1_data"; renesas,function = "scif1"; @@ -150,6 +161,21 @@ }; }; +ð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>; + }; +}; + &mmcif1 { pinctrl-0 = <&mmc1_pins>; pinctrl-names = "default";