From patchwork Sun Mar 13 09:07:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 8573271 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 52E74C0553 for ; Sun, 13 Mar 2016 09:08:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 51A862034B for ; Sun, 13 Mar 2016 09:08:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6218920263 for ; Sun, 13 Mar 2016 09:08:43 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1af20w-0000j5-WA; Sun, 13 Mar 2016 09:08:43 +0000 Received: from mail-pa0-f68.google.com ([209.85.220.68]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1af20l-0000eN-Tw for linux-rockchip@lists.infradead.org; Sun, 13 Mar 2016 09:08:33 +0000 Received: by mail-pa0-f68.google.com with SMTP id fl4so11904676pad.2 for ; Sun, 13 Mar 2016 01:08: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:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LSCBw8LuIkKsfkbVzphKfS1PblZsJDnMgXUiMGen8uc=; b=Gb//v36xL9/Da4gf5qQTntCiGFrZ2wgoNLF0S6mhHncsrBQKkPukcUvYxd3ne+OO/F w4UhV7Q+5PsKMgdAWO+wjcal54LUspOPZEHugJph521gBAOzi0scMSjMQW4/BA/OZjnm enbrnxXXk3l/f/GwZwFPCCZRNYR7oLnBa5kcPutZ83FdsKVw+QRKcIEMSusqeDKr76UC 8sVIWjCsIrl5szUOwfWP6dRqR+2J1UzjumGgoc4fSUoZOoFbQePC4CozMqF4jA9YX1j6 g+pBBojiHSPJ/qIBUm/zeDOAfe3xOa51s+kKydttmUtmru1+55GGlP1lCIz1hZRMiqJr ZBqw== X-Gm-Message-State: AD7BkJKjvNJ5U0F78Mxe5dO7PgUAQQT0kTkVFqlwpH9zlOAuBnK+L9Yr0IVQZhOPJbjZxQ== X-Received: by 10.66.123.17 with SMTP id lw17mr16899332pab.108.1457860090480; Sun, 13 Mar 2016 01:08:10 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id qh8sm24187964pac.40.2016.03.13.01.08.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 13 Mar 2016 01:08:09 -0800 (PST) From: Caesar Wang To: Heiko Stuebner , "David S. Miller" , Rob Herring Subject: [PATCH v2 2/9] net: arc_emac: add phy reset is optional for device tree Date: Sun, 13 Mar 2016 17:07:35 +0800 Message-Id: <1457860062-5514-3-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1457860062-5514-1-git-send-email-wxt@rock-chips.com> References: <1457860062-5514-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160313_010832_117575_86E3E5D8 X-CRM114-Status: GOOD ( 10.08 ) X-Spam-Score: -2.4 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Pawel Moll , sergei.shtylyov@cogentembedded.com, Ian Campbell , netdev@vger.kernel.org, Kumar Gala , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, keescook@google.com, leozwang@google.com, Caesar Wang MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 This patch adds the following property for arc_emac. 1) reset-gpios: The phy reset-gpio is an optional property for arc emac device tree boot. Change the binding document to match the driver code. 2) phy-reset-duration: Different boards may require different phy reset duration. Add property phy-reset-duration for device tree probe, so that the boards that need a longer reset duration can specify it in their device tree. Anyway, we can add the above property for arc emac. Signed-off-by: Caesar Wang --- Changes in v2: None Documentation/devicetree/bindings/net/arc_emac.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/net/arc_emac.txt b/Documentation/devicetree/bindings/net/arc_emac.txt index a1d71eb..8e84b52 100644 --- a/Documentation/devicetree/bindings/net/arc_emac.txt +++ b/Documentation/devicetree/bindings/net/arc_emac.txt @@ -7,6 +7,13 @@ Required properties: - max-speed: see ethernet.txt file in the same directory. - phy: see ethernet.txt file in the same directory. +Optional properties: +- reset-gpios : Should specify the gpio for phy reset +- phy-reset-duration : Reset duration in milliseconds. Should present + only if property "reset-gpios" is available. Missing the property + will have the duration be 1 millisecond. Numbers greater than 1000 are + invalid and 1 millisecond will be used instead. + Clock handling: The clock frequency is needed to calculate and set polling period of EMAC. It must be provided by one of: