Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2681805imj; Mon, 11 Feb 2019 06:58:46 -0800 (PST) X-Google-Smtp-Source: AHgI3IbsWviwFrp7crz7WjZnKSOSxmHiVReouOTB9b+LNwcQGluKQ/wuJxrB8W8Ta+XlREPE26n+ X-Received: by 2002:a17:902:112a:: with SMTP id d39mr38151072pla.66.1549897125978; Mon, 11 Feb 2019 06:58:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549897125; cv=none; d=google.com; s=arc-20160816; b=IKN6kiDCmK6ehtbd/HKw7deWPjWbXhJDiLBx0xGHnmsTmmsjzHW8HdjyTZgMKvvO9Q NIpXiay8e+bXdwH7a5L/cRxw0LSctmEe2dol/jeHpQsx3Fw5slT9hXKgrQQgRxz/vB8i hCqVlUwnTuv31iicOPMFzyu3SBrcQWMPXWT6XcU74ROSKMqtg6VK/indyY17KLLq5DgX wPXJ6GXelUH3Urvng+jWk5THvNryAkjHtIXvncRaaWr68RuTwyX5S/bb/A3o+04e3tgc r/0QGWhVi2MIXh9NNPuqF724VkX8xyfhzvfxgwehIVeTrlwLbPjadjV3jOTnW0cYawMS 14ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zaVkd5G6cmyaCHA1k5CyZh3cyAPT/JnKo5acCv8qYWA=; b=LtckQd98VUuiMcyKzTyHNZFCIvdh4dRZfX+ZX9i7oAEJbvHBWk+6WZANJahnLfr7+s bkQHjJ5lnnMiORqxkYPGgBYKtE3gNdlAVp7MS5oC1Qff5/46amvhWheIPoNWzchmnHTn +Bvm03gHRtpy+WTpPYj0g0uu0YFoPH6pA5trZfIDymgOfBng/coLe+FEP5/MFSoWTRcj DgICsReldHoX356JLP3+/e80ZkeOTcXUxxfA1NVVDzQ/F1t3O0RqV+sfgm8WoLAEpmZS gmBToImNozxfPeTBkkqelxGPnkPXC4jLI3qIL6EQXWI/Colmo1mVC18eQSLbuabb9bX7 wuwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xuHlU1ZP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 15si7877214pfq.11.2019.02.11.06.58.30; Mon, 11 Feb 2019 06:58:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xuHlU1ZP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389362AbfBKO5a (ORCPT + 99 others); Mon, 11 Feb 2019 09:57:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:44876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388317AbfBKO51 (ORCPT ); Mon, 11 Feb 2019 09:57:27 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ACA21222A1; Mon, 11 Feb 2019 14:57:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549897047; bh=sIzI3S4LZIMCP8agG/jDpiEAr+DOzrEor0qOwhJ/jrI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xuHlU1ZPO7Dh19afaI90eA9cbUWW6B3ruW+pfpFGsTgGKLR1RIEEMsKeZlj0Av9Wy Gyw41CsYAuubZfk0/lHsD0Q3ls61fpCoRQly2RYW0+PoZmyyWCOGiND4vG6eIfyCaP 9byi5/fqi/sqD1GWldnwJlaDgkdYZ2MoiJx3Di+o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Russell King , Peter Ujfalusi , Tony Lindgren , Sasha Levin Subject: [PATCH 4.14 073/205] ARM: dts: Fix OMAP4430 SDP Ethernet startup Date: Mon, 11 Feb 2019 15:17:51 +0100 Message-Id: <20190211141833.501913736@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141827.214852402@linuxfoundation.org> References: <20190211141827.214852402@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 84fb6c7feb1494ebb7d1ec8b95cfb7ada0264465 ] It was noticed that unbinding and rebinding the KSZ8851 ethernet resulted in the driver reporting "failed to read device ID" at probe. Probing the reset line with a 'scope while repeatedly attempting to bind the driver in a shell loop revealed that the KSZ8851 RSTN pin is constantly held at zero, meaning the device is held in reset, and does not respond on the SPI bus. Experimentation with the startup delay on the regulator set to 50ms shows that the reset is positively released after 20ms. Schematics for this board are not available, and the traces are buried in the inner layers of the board which makes tracing where the RSTN pin extremely difficult. We can only guess that the RSTN pin is wired to a reset generator chip driven off the ethernet supply, which fits the observed behaviour. Include this delay in the regulator startup delay - effectively treating the reset as a "supply stable" indicator. This can not be modelled as a delay in the KSZ8851 driver since the reset generation is board specific - if the RSTN pin had been wired to a GPIO, reset could be released earlier via the already provided support in the KSZ8851 driver. This also got confirmed by Peter Ujfalusi based on Blaze schematics that should be very close to SDP4430: TPS22902YFPR is used as the regulator switch (gpio48 controlled): Convert arm boot_lock to raw The VOUT is routed to TPS3808G01DBV. (SCH Note: Threshold set at 90%. Vsense: 0.405V). According to the TPS3808 data sheet the RESET delay time when Ct is open (this is the case in the schema): MIN/TYP/MAX: 12/20/28 ms. Signed-off-by: Russell King Reviewed-by: Peter Ujfalusi [tony@atomide.com: updated with notes from schematics from Peter] Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm/boot/dts/omap4-sdp.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/omap4-sdp.dts b/arch/arm/boot/dts/omap4-sdp.dts index 280d92d42bf1..bfad6aadfe88 100644 --- a/arch/arm/boot/dts/omap4-sdp.dts +++ b/arch/arm/boot/dts/omap4-sdp.dts @@ -33,6 +33,7 @@ gpio = <&gpio2 16 GPIO_ACTIVE_HIGH>; /* gpio line 48 */ enable-active-high; regulator-boot-on; + startup-delay-us = <25000>; }; vbat: fixedregulator-vbat { -- 2.19.1