From patchwork Tue Nov 11 23:01:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karsten Merker X-Patchwork-Id: 5277741 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2874D9F2ED for ; Tue, 11 Nov 2014 23:05:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 66E102010E for ; Tue, 11 Nov 2014 23:05:23 +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 8A73A20103 for ; Tue, 11 Nov 2014 23:05:22 +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 1XoKT1-0000IL-8i; Tue, 11 Nov 2014 23:03:19 +0000 Received: from mout.kundenserver.de ([212.227.126.131]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XoKSz-0000Eo-1r for linux-arm-kernel@lists.infradead.org; Tue, 11 Nov 2014 23:03:17 +0000 Received: from excalibur.cnev.de (cable-84-44-246-52.netcologne.de [84.44.246.52]) by mrelayeu.kundenserver.de (node=mreue003) with ESMTP (Nemesis) id 0M5tFN-1YCivv14aP-00xtp6; Wed, 12 Nov 2014 00:02:38 +0100 Received: from localhost ([127.0.0.1] helo=excalibur.cnev.de) by excalibur.cnev.de with esmtp (Exim 4.80) (envelope-from ) id 1XoKSL-0005Ql-BD; Wed, 12 Nov 2014 00:02:37 +0100 From: Karsten Merker To: Hans de Goede , Maxime Ripard , Ian Campbell Subject: [PATCH V2 1/1] ARM: dts: sunxi: Banana Pi: increase startup-delay for the GMAC PHY regulator Date: Wed, 12 Nov 2014 00:01:46 +0100 Message-Id: <1415746906-20835-2-git-send-email-merker@debian.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1415746906-20835-1-git-send-email-merker@debian.org> References: <1415539714-7652-1-git-send-email-merker@debian.org> <1415746906-20835-1-git-send-email-merker@debian.org> X-Provags-ID: V02:K0:4cxQltuZ/HQBrCRr8hX+yJxcQ5wDAGP2CfbrFawq4jm 2JckAHN9enzdnlVf41rq4Mq5fXEs6n8X51JRkLQELjZU7A/2Cg tnkzbDXOcgsVtIEQlvUwtoT6ip8I0zclrBwsUumFHna19emkWP S9rzzy3rb6ylmfEsY9G8Wgzn5vFj1EuQTBEdoT9OS/zzdGVEf5 gqjRGYGnnFwuBoDIjfBiJVXBr2KfNgfe0HJhQWpU925IyfbLn6 suviSuvHhT6gq4RNhxzIeYVH8ECIiykcA09oZMRrcZZDKWqG1l hCT1K00k8y55sFQ0yxSFWG6fHe4A4XX3qntrzHQb68mPyh37Go 8DzBDyo7ULGH8hPMe3kocjrygHcIiqkK2c4uiCtZbljDsVk51g YcM1JmcBtyM5w== X-UI-Out-Filterresults: notjunk:1; X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141111_150317_443410_413F0EC3 X-CRM114-Status: UNSURE ( 7.48 ) 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.1 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. Tests have shown that to provide a reliable PHY detection, the startup-delay has to be increased to at least 60000us. To have a certain safety margin and to cater for manufacturing variations between different boards, the delay gets set to 100000us as discussed on the linux-arm-kernel mailinglist. 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..1cf1214 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 = <100000>; enable-active-high; gpio = <&pio 7 23 0>; };