From patchwork Mon Feb 9 16:02:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 5801831 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D78779F30C for ; Mon, 9 Feb 2015 16:03:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 68AEE20120 for ; Mon, 9 Feb 2015 16:03:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8F0222012E for ; Mon, 9 Feb 2015 16:03:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933504AbbBIQD3 (ORCPT ); Mon, 9 Feb 2015 11:03:29 -0500 Received: from mail-we0-f176.google.com ([74.125.82.176]:54894 "EHLO mail-we0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933203AbbBIQD3 (ORCPT ); Mon, 9 Feb 2015 11:03:29 -0500 Received: by mail-we0-f176.google.com with SMTP id x3so2876621wes.7 for ; Mon, 09 Feb 2015 08:03:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=/Oqd3PwtEHM6alZAFwTT0L8S4s4HdlMWW6GXoX/1ZSE=; b=ME0t0+IZCr9k6/EWACrrg9HSs2CyRayIBdqatzoyDLlCHwU1MIMojvEbZWXDGTytUR 09pjmZVtH+DI9igj/R7OEPf9n/zZoHUrvSoo6pvsxMnP73/r9ufFCw/WrqaEWie6ehEx edT1rP39uO7IRjYCZ+nUWrVrsga+epeKR/IjIFKqoo1iatPdrAkDV7EeGgQy/iQWGDZI UMj1Sq1PlNob1yzJEUMUvVDiavO6LCun+6YzudiJ6ChgO3mPghHApQPH+b6h2sxK9Nzw 6J4dUCYRuD8AUIlTrCKvZP1lRiNUVYdkbrVd8eQnvRWY7N1qNJG0FzZuDPgZsyVjQExB DZDg== X-Received: by 10.180.103.102 with SMTP id fv6mr36276844wib.80.1423497807679; Mon, 09 Feb 2015 08:03:27 -0800 (PST) Received: from groucho.site (ipbcc0217c.dynamic.kabel-deutschland.de. [188.192.33.124]) by mx.google.com with ESMTPSA id k1sm16938212wjn.9.2015.02.09.08.03.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Feb 2015 08:03:27 -0800 (PST) From: Ulrich Hecht To: horms@verge.net.au, geert@linux-m68k.org, laurent.pinchart+renesas@ideasonboard.com, kuninori.morimoto.gx@renesas.com Cc: linux-sh@vger.kernel.org, magnus.damm@gmail.com, sergei.shtylyov@cogentembedded.com, mturquette@linaro.org, Ulrich Hecht Subject: [PATCH v2 08/15] ARM: shmobile: r8a7778, bockw: add internal ethernet controller to DT Date: Mon, 9 Feb 2015 17:02:36 +0100 Message-Id: <1423497763-3450-9-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.2.2 In-Reply-To: <1423497763-3450-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1423497763-3450-1-git-send-email-ulrich.hecht+renesas@gmail.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=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, 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 Internal Ethernet controller DT entry with pin control and clock information. Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7778-bockw.dts | 10 ++++++++++ arch/arm/boot/dts/r8a7778.dtsi | 11 +++++++++++ 2 files changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/r8a7778-bockw.dts b/arch/arm/boot/dts/r8a7778-bockw.dts index 280a922..f28ccbc 100644 --- a/arch/arm/boot/dts/r8a7778-bockw.dts +++ b/arch/arm/boot/dts/r8a7778-bockw.dts @@ -59,6 +59,11 @@ }; }; +ðer { + pinctrl-0 = <ðer_pins>; + pinctrl-names = "default"; +}; + &i2c0 { status = "okay"; @@ -103,6 +108,11 @@ }; &pfc { + ether_pins: ether { + renesas,groups = "ether_rmii"; + renesas,function = "ether"; + }; + scif0_pins: serial0 { renesas,groups = "scif0_data_a", "scif0_ctrl"; renesas,function = "scif0"; diff --git a/arch/arm/boot/dts/r8a7778.dtsi b/arch/arm/boot/dts/r8a7778.dtsi index 2ddfaa3e..98ad685 100644 --- a/arch/arm/boot/dts/r8a7778.dtsi +++ b/arch/arm/boot/dts/r8a7778.dtsi @@ -41,6 +41,17 @@ spi2 = &hspi2; }; + ether: ethernet@fde00000 { + compatible = "renesas,ether-r8a7778"; + reg = <0xfde00000 0x400>; + interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&mstp1_clks R8A7778_CLK_ETHER>; + phy-mode = "rmii"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + gic: interrupt-controller@fe438000 { compatible = "arm,cortex-a9-gic"; #interrupt-cells = <3>;