From patchwork Thu Aug 15 06:01:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prabhakar X-Patchwork-Id: 2844995 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 D5E88BF547 for ; Thu, 15 Aug 2013 06:04:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 026BD2041C for ; Thu, 15 Aug 2013 06:04:49 +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 07F5620415 for ; Thu, 15 Aug 2013 06:04:47 +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 r7F63bZj018118; Thu, 15 Aug 2013 01:03:37 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r7F63bAS032065; Thu, 15 Aug 2013 01:03:37 -0500 Received: from dlelxv24.itg.ti.com (172.17.1.199) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.2.342.3; Thu, 15 Aug 2013 01:03:37 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv24.itg.ti.com (8.13.8/8.13.8) with ESMTP id r7F63boN011535; Thu, 15 Aug 2013 01:03:37 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 13D2A8062A; Thu, 15 Aug 2013 01:03:37 -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 9C95E80627 for ; Thu, 15 Aug 2013 01:02:30 -0500 (CDT) Received: from neches.ext.ti.com (neches.ext.ti.com [192.91.81.29]) by dflp51.itg.ti.com (8.13.7/8.13.8) with ESMTP id r7F62UAr008733 for ; Thu, 15 Aug 2013 01:02:30 -0500 (CDT) Received: from mail6.bemta8.messagelabs.com (mail6.bemta8.messagelabs.com [216.82.243.55]) by neches.ext.ti.com (8.13.7/8.13.7) with ESMTP id r7F62THb010782 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 15 Aug 2013 01:02:30 -0500 Received: from [216.82.242.131:22793] by server-11.bemta-8.messagelabs.com id 68/56-26861-5FE6C025; Thu, 15 Aug 2013 06:02:29 +0000 X-Env-Sender: prabhakar.csengg@gmail.com X-Msg-Ref: server-6.tower-76.messagelabs.com!1376546547!31324449!1 X-Originating-IP: [209.85.192.169] 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 11343 invoked from network); 15 Aug 2013 06:02:28 -0000 Received: from mail-pd0-f169.google.com (HELO mail-pd0-f169.google.com) (209.85.192.169) by server-6.tower-76.messagelabs.com with RC4-SHA encrypted SMTP; 15 Aug 2013 06:02:28 -0000 Received: by mail-pd0-f169.google.com with SMTP id r10so426820pdi.28 for ; Wed, 14 Aug 2013 23:02:27 -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=EL7PVEgzvEi2xqAZE9XVdYELWlEgHvA6DhnHreQnqX4=; b=XMWx8LFhkXWZ6yXvu3hYZfwk8qldurEcjffILL8B0it2b9pGK1aqzR4zHPAiP5v5H/ 5xqRiP++qG7oSfqO72Jf5uAUorug7QI4lNIG3zpnBZhFDVgYXQ5Zx0ytYHvmvCRfanOo X91gCzr6wzyUOxgojDTpGCayeq0buOT4W4GHflhcV+bF1UQOcXTRr/ZVFf3h8s7IA23P AOlBC2KWcNJ2G63M27XnVuqgMApCooJ5wDA22QnM6YXFkBIc/J3rbuKWA22OeqtF/uR0 sC6Ws3efzw4O2Bjfwoxvs9pGegtOKb1JPbrOcS6qi4bDVf1IzgdCXdjTRCC9QAHjKB1K gUnw== X-Received: by 10.68.228.102 with SMTP id sh6mr13887690pbc.138.1376546547398; Wed, 14 Aug 2013 23:02:27 -0700 (PDT) Received: from localhost.localdomain ([112.79.41.60]) by mx.google.com with ESMTPSA id a5sm54752871pbw.4.2013.08.14.23.02.13 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 23:02:26 -0700 (PDT) From: "Lad, Prabhakar" To: Sekhar Nori Subject: [PATCH v4 2/5] ARM: davinci: da850: add DT node for mdio device Date: Thu, 15 Aug 2013 11:31:34 +0530 Message-ID: <1376546497-26931-3-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 mdio device tree node information to da850 by providing register details and bus frequency of mdio. Signed-off-by: Lad, Prabhakar --- Changes for v2: none Changes for v3: a> Added pin entries for mdio. Changes for v4: none arch/arm/boot/dts/da850-evm.dts | 6 ++++++ arch/arm/boot/dts/da850.dtsi | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index 5bce7cc..1f8cfdd 100644 --- a/arch/arm/boot/dts/da850-evm.dts +++ b/arch/arm/boot/dts/da850-evm.dts @@ -90,6 +90,12 @@ }; }; }; + mdio: mdio@1e24000 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mdio_pins>; + bus_freq = <2200000>; + }; }; nand_cs3@62000000 { status = "okay"; diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index 5f7e79a..d5138b4 100644 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/boot/dts/da850.dtsi @@ -125,6 +125,13 @@ 0x14 0x00000010 0x000000f0 >; }; + mdio_pins: pinmux_mdio_pins { + pinctrl-single,bits = < + /* MDIO_CLK, MDIO_D */ + 0x10 0x00000088 0x000000ff + >; + }; + }; serial0: serial@1c42000 { compatible = "ns16550a"; @@ -213,6 +220,12 @@ interrupts = <56>; status = "disabled"; }; + mdio: mdio@1e24000 { + compatible = "ti,davinci_mdio"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x224000 0x1000>; + }; }; nand_cs3@62000000 { compatible = "ti,davinci-nand";