From patchwork Thu Jan 16 22:32:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 3500701 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 9F5B8C02DC for ; Thu, 16 Jan 2014 21:33:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9546920165 for ; Thu, 16 Jan 2014 21:33:30 +0000 (UTC) Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 898772015D for ; Thu, 16 Jan 2014 21:33:29 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id s0GLWJiv003916; Thu, 16 Jan 2014 15:32:20 -0600 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s0GLWIMG019522; Thu, 16 Jan 2014 15:32:18 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.2.342.3; Thu, 16 Jan 2014 15:32:17 -0600 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s0GLWGYE003252; Thu, 16 Jan 2014 15:32:16 -0600 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 412B880627; Thu, 16 Jan 2014 15:32:16 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflxv17.itg.ti.com (dflxv17.itg.ti.com [128.247.5.93]) by linux.omap.com (Postfix) with ESMTP id 270B780626 for ; Thu, 16 Jan 2014 15:32:15 -0600 (CST) Received: from medina.ext.ti.com (medina.ext.ti.com [192.91.81.31]) by dflxv17.itg.ti.com (8.14.3/8.13.8) with ESMTP id s0GLWEpN002793 for ; Thu, 16 Jan 2014 15:32:14 -0600 Received: from mail6.bemta12.messagelabs.com (mail6.bemta12.messagelabs.com [216.82.250.247]) by medina.ext.ti.com (8.13.7/8.13.7) with ESMTP id s0GLWEwn023119 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 16 Jan 2014 15:32:14 -0600 Received: from [216.82.250.83:47214] by server-16.bemta-12.messagelabs.com id B5/C4-19089-EDF48D25; Thu, 16 Jan 2014 21:32:14 +0000 X-Env-Sender: sergei.shtylyov@cogentembedded.com X-Msg-Ref: server-6.tower-120.messagelabs.com!1389907930!5471432!1 X-Originating-IP: [209.85.215.51] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.9.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6324 invoked from network); 16 Jan 2014 21:32:12 -0000 Received: from mail-la0-f51.google.com (HELO mail-la0-f51.google.com) (209.85.215.51) by server-6.tower-120.messagelabs.com with RC4-SHA encrypted SMTP; 16 Jan 2014 21:32:12 -0000 Received: by mail-la0-f51.google.com with SMTP id c6so3032103lan.10 for ; Thu, 16 Jan 2014 13:32:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:subject:cc:from:organization:date :mime-version:content-type:content-transfer-encoding:message-id; bh=ZU3bDFFq6Ee23nxCOeiB0qvpNOMfVd9ZdzuRzabNe38=; b=HkA3g9WlJwlRoIiSlpXzWarnBAXk1gbBBwb0eng8a2Xj6YuY6iCz9INkhibd8kmYLn zN+Evy3W56X4FaPKYg3wMxHtNZ+1H3xdPr7nfb9D4klvHtOt5tecIqIuWOTAlXNPYFM6 xDct6Xfa02xPXQ0Ee7ri+TUCh/f7bkk0pkrKAbVyuZwYeIfPHH9t9HE0CvS/3g5zGpyA 5OxmA5kbrkjJOQpkAmHoQ+Xlnpv3MZDXg96vzEEsWHFybY2oSx+AKKw5PnSoEa2rxhQs 1s3M7KIGGKLJ0O/goeqGIDQQUtxjAxh58BXSuT1ZpZ5vzkMi2AlBPJQP6Dt4lR2Usvy9 cCPQ== X-Gm-Message-State: ALoCoQksEyEY8ARHv+I05AS5pUhfu61bC5pyiRwrrz450ddRTc9dVs8/6/gmWTvzIHS+HYcqBIcj X-Received: by 10.152.204.39 with SMTP id kv7mr6321280lac.42.1389907929969; Thu, 16 Jan 2014 13:32:09 -0800 (PST) Received: from wasted.dev.rtsoft.ru (ppp83-237-56-102.pppoe.mtu-net.ru. [83.237.56.102]) by mx.google.com with ESMTPSA id np10sm5296669lbb.7.2014.01.16.13.32.09 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 16 Jan 2014 13:32:09 -0800 (PST) To: , , , , , , , Subject: [PATCH] DT: net: davinci_emac: "phy-handle" property is actually optional From: Sergei Shtylyov Organization: Cogent Embedded Date: Fri, 17 Jan 2014 01:32:13 +0300 MIME-Version: 1.0 Message-ID: <201401170132.14479.sergei.shtylyov@cogentembedded.com> CC: , 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: , Sender: Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 Though described as required, the "phy-handle" property for the DaVinci EMAC binding is actually optional, as the driver will happily function without it, assuming 100/FULL link; the property is not specified either in the example device node, or in the actual EMAC device nodes for DA850 and AM3517 device trees. Signed-off-by: Sergei Shtylyov --- The patch is against DaveM's 'net-next.git' repo. Though being a fix, it does not seem important enough for 'net.git' repo at this time. Not sure if it should be considered for the stable kernels... Documentation/devicetree/bindings/net/davinci_emac.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: renesas/Documentation/devicetree/bindings/net/davinci_emac.txt =================================================================== --- renesas.orig/Documentation/devicetree/bindings/net/davinci_emac.txt +++ renesas/Documentation/devicetree/bindings/net/davinci_emac.txt @@ -12,8 +12,6 @@ Required properties: - ti,davinci-ctrl-ram-size: size of control module ram - ti,davinci-rmii-en: use RMII - ti,davinci-no-bd-ram: has the emac controller BD RAM -- phy-handle: Contains a phandle to an Ethernet PHY. - if not, davinci_emac driver defaults to 100/FULL - interrupts: interrupt mapping for the davinci emac interrupts sources: 4 sources: Optional properties: +- phy-handle: Contains a phandle to an Ethernet PHY. + If absent, davinci_emac driver defaults to 100/FULL. - local-mac-address : 6 bytes, mac address Example (enbw_cmc board):