From patchwork Sun Nov 9 13:28:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karsten Merker X-Patchwork-Id: 5260471 Return-Path: X-Original-To: patchwork-linux-arm@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 E13B3C11AC for ; Sun, 9 Nov 2014 13:33:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0889A20158 for ; Sun, 9 Nov 2014 13:33:47 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2CDEB20127 for ; Sun, 9 Nov 2014 13:33:46 +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 1XnSZY-0002dH-7e; Sun, 09 Nov 2014 13:30:28 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XnSZV-0001rs-Pg for linux-arm-kernel@lists.infradead.org; Sun, 09 Nov 2014 13:30:26 +0000 Received: from excalibur.cnev.de (cable-81-173-229-247.netcologne.de [81.173.229.247]) by mrelayeu.kundenserver.de (node=mreue103) with ESMTP (Nemesis) id 0MDmuc-1XnywA3ihy-00H5Xi; Sun, 09 Nov 2014 14:29:53 +0100 Received: from localhost ([127.0.0.1] helo=excalibur.cnev.de) by excalibur.cnev.de with esmtp (Exim 4.80) (envelope-from ) id 1XnSYy-000204-DJ; Sun, 09 Nov 2014 14:29:52 +0100 From: Karsten Merker To: Hans de Goede , Maxime Ripard , Ian Campbell Subject: [PATCH] ARM: dts: sunxi: Banana Pi: increase startup-delay for the GMAC PHY regulator Date: Sun, 9 Nov 2014 14:28:34 +0100 Message-Id: <1415539714-7652-2-git-send-email-merker@debian.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1415539714-7652-1-git-send-email-merker@debian.org> References: <1415539714-7652-1-git-send-email-merker@debian.org> X-Provags-ID: V02:K0:wwHQp2QNQbJAVNg6jJTrA59Yg7vilRImOc6X3h/nP5U G3WHxD/SUhisB1kNNV7e2NLvYwp350bZn3n7n4oO968KLbZ/fb LX8x9Uxcjuw16bMfzPXhN0hxT1JZJlUlx2R4/LSZEM4t8fYXV0 3nVLxlJCy8gafBbgxVFNBBiAXpL58vYOne12VA1Y49HV6yMnVZ g/0qPu6T2y0aIxQCkVvJXdlpAm8hsjhTi0WHdSm6IUY78S/CmK Hah3xEuGKkZ+dnlhEj9hSSkU/cRsMgYGopU8tQMpgKVsQZt1bf 9s/4rn6rLSTYQg+SOG7RE/T7P1SDQCN2URJqfAfiOjonTow10I z3ZOZKuW+Q4izhOCkGu7Evd+3ToKHZzCGnG2YqoDhIEIw2dATo eTbQJbKKilk5ShCpiCmLSLncEZjxtVGcNM= X-UI-Out-Filterresults: notjunk:1; X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141109_053026_287615_F6FED283 X-CRM114-Status: UNSURE ( 8.47 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) Cc: Karsten Merker , devicetree@vger.kernel.org, dev@linux-sunxi.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, 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 On the LeMaker Banana Pi, probing the external ethernet PHY connected to the SoC's internal GMAC module sometimes fails. The PHY power supply is handled via a GPIO-controlled regulator, and the existing regulator startup-delay of 50000us is too short to make sure that the PHY is always fully powered up when it is queried by phylib. To guarantee a reliable PHY detection, the startup-delay has to be increased to 60000us. Signed-off-by: Karsten Merker Acked-by: Hans de Goede --- arch/arm/boot/dts/sun7i-a20-bananapi.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sun7i-a20-bananapi.dts b/arch/arm/boot/dts/sun7i-a20-bananapi.dts index 3de847d..36065d1 100644 --- a/arch/arm/boot/dts/sun7i-a20-bananapi.dts +++ b/arch/arm/boot/dts/sun7i-a20-bananapi.dts @@ -207,7 +207,7 @@ regulator-name = "gmac-3v3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; - startup-delay-us = <50000>; + startup-delay-us = <60000>; enable-active-high; gpio = <&pio 7 23 0>; };