From patchwork Thu Aug 15 06:01:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 2844997 Return-Path: X-Original-To: patchwork-davinci@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 4B35DBF546 for ; Thu, 15 Aug 2013 06:04:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 680CE20415 for ; Thu, 15 Aug 2013 06:04:56 +0000 (UTC) Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3EFF82041B for ; Thu, 15 Aug 2013 06:04:55 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id r7F63fvr018139; Thu, 15 Aug 2013 01:03:41 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r7F63f42032202; Thu, 15 Aug 2013 01:03:41 -0500 Received: from dlelxv23.itg.ti.com (172.17.1.198) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.2.342.3; Thu, 15 Aug 2013 01:03:41 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id r7F63fbi025284; Thu, 15 Aug 2013 01:03:41 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 176FB80626; Thu, 15 Aug 2013 01:03:41 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp51.itg.ti.com (dflp51.itg.ti.com [128.247.22.94]) by linux.omap.com (Postfix) with ESMTP id 38E048062A for ; Thu, 15 Aug 2013 01:02:51 -0500 (CDT) Received: from medina.ext.ti.com (medina.ext.ti.com [192.91.81.31]) by dflp51.itg.ti.com (8.13.7/8.13.8) with ESMTP id r7F62oqa008834 for ; Thu, 15 Aug 2013 01:02:50 -0500 (CDT) Received: from mail6.bemta7.messagelabs.com (mail6.bemta7.messagelabs.com [216.82.255.55]) by medina.ext.ti.com (8.13.7/8.13.7) with ESMTP id r7F62oVI027813 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 15 Aug 2013 01:02:50 -0500 Received: from [216.82.253.67:55919] by server-4.bemta-7.messagelabs.com id 75/AA-05642-A0F6C025; Thu, 15 Aug 2013 06:02:50 +0000 X-Env-Sender: prabhakar.csengg@gmail.com X-Msg-Ref: server-14.tower-158.messagelabs.com!1376546569!8387543!1 X-Originating-IP: [209.85.160.41] X-SpamReason: No, hits=0.0 required=7.0 tests=ML_RADAR_SPEW_LINKS_14, spamassassin: X-StarScan-Received: X-StarScan-Version: 6.9.11; banners=-,-,- X-VirusChecked: Checked Received: (qmail 5042 invoked from network); 15 Aug 2013 06:02:49 -0000 Received: from mail-pb0-f41.google.com (HELO mail-pb0-f41.google.com) (209.85.160.41) by server-14.tower-158.messagelabs.com with RC4-SHA encrypted SMTP; 15 Aug 2013 06:02:49 -0000 Received: by mail-pb0-f41.google.com with SMTP id rp2so396830pbb.14 for ; Wed, 14 Aug 2013 23:02:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=h60F6qJxVgKY/oJoBvMj1n4dCjGuP3Ja6fF5LKUx6b4=; b=FySKE83vPB/928bVKOUi/8+pHzN7jz4AjOBkUDQOaqMuz90DkAlEqRqWr1ZD2i4zwK w0PLrXbll+CGv1TduJ5MV+kjlnOrtoSeMgnxo6bWSXgV6GCk53m3d4+MXsFg28xXUwFZ yqxgQ4uImdXgmhCbzFdAe9J1XMP61FfOSHn75CGOA5A90SlNxbYEEGTMK6A7SccegN/D hIj6VLzmhdJWanu8G7CfK1KiQuFgiBVlR7/PGI0XVj/dUhs0SU4G1iqN/lCfG0wYFO5E kQTaGGApgsb0RjNkk6klsU3mWveriXpMw2Pq5Ghwo/j3uw0s08lPRgeWmjoebgLtHfK3 pl/A== X-Received: by 10.68.134.133 with SMTP id pk5mr11810023pbb.89.1376546568840; Wed, 14 Aug 2013 23:02:48 -0700 (PDT) Received: from localhost.localdomain ([112.79.41.60]) by mx.google.com with ESMTPSA id a5sm54752871pbw.4.2013.08.14.23.02.40 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 23:02:47 -0700 (PDT) From: "Lad, Prabhakar" To: Sekhar Nori Subject: [PATCH v4 4/5] ARM: davinci: da850: add DT node for eth0. Date: Thu, 15 Aug 2013 11:31:36 +0530 Message-ID: <1376546497-26931-5-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1376546497-26931-1-git-send-email-prabhakar.csengg@gmail.com> References: <1376546497-26931-1-git-send-email-prabhakar.csengg@gmail.com> CC: DLOS , , , LKML , X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com 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, 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 From: "Lad, Prabhakar" Add eth0 device tree node information and pinmux for mii to da850 by providing interrupt details and local mac address of eth0. Signed-off-by: Lad, Prabhakar --- Changes for v2: None Changes for v3: a> Split the pinmux for mdio and mii. Changes for v4: none arch/arm/boot/dts/da850-evm.dts | 5 +++++ arch/arm/boot/dts/da850.dtsi | 30 ++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index 1f8cfdd..65bc080 100644 --- a/arch/arm/boot/dts/da850-evm.dts +++ b/arch/arm/boot/dts/da850-evm.dts @@ -96,6 +96,11 @@ pinctrl-0 = <&mdio_pins>; bus_freq = <2200000>; }; + eth0: emac@1e20000 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mii_pins>; + }; }; nand_cs3@62000000 { status = "okay"; diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index d5138b4..911f647 100644 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/boot/dts/da850.dtsi @@ -131,6 +131,22 @@ 0x10 0x00000088 0x000000ff >; }; + mii_pins: pinmux_mii_pins { + pinctrl-single,bits = < + /* + * MII_TXEN, MII_TXCLK, MII_COL + * MII_TXD_3, MII_TXD_2, MII_TXD_1 + * MII_TXD_0 + */ + 0x8 0x88888880 0xfffffff0 + /* + * MII_RXER, MII_CRS, MII_RXCLK + * MII_RXDV, MII_RXD_3, MII_RXD_2 + * MII_RXD_1, MII_RXD_0 + */ + 0xc 0x88888888 0xffffffff + >; + }; }; serial0: serial@1c42000 { @@ -226,6 +242,20 @@ #size-cells = <0>; reg = <0x224000 0x1000>; }; + eth0: emac@1e20000 { + compatible = "ti,davinci-dm6467-emac"; + reg = <0x220000 0x4000>; + ti,davinci-ctrl-reg-offset = <0x3000>; + ti,davinci-ctrl-mod-reg-offset = <0x2000>; + ti,davinci-ctrl-ram-offset = <0>; + ti,davinci-ctrl-ram-size = <0x2000>; + local-mac-address = [ 00 00 00 00 00 00 ]; + interrupts = <33 + 34 + 35 + 36 + >; + }; }; nand_cs3@62000000 { compatible = "ti,davinci-nand";