From patchwork Mon Mar 6 14:17:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 9606391 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 48F4E601D2 for ; Mon, 6 Mar 2017 14:20:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CF3D26E77 for ; Mon, 6 Mar 2017 14:20:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3193D28419; Mon, 6 Mar 2017 14:20:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DCA6A26E77 for ; Mon, 6 Mar 2017 14:20:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=7c/fO/O/PQaiTsi+wsh5bDpsfD/R5w0I1KmeuNaDGp0=; b=RhruVLTIY7tWqTB9Qkfo+SKec+ zDom9AEcJgDtDnUdzfVR84rDLstSo6zmLpyEra744iM8clQAqxPrTAMaEpC/Vipze7kvl3Q60i0Cm XqE3b/iRjkbZXAu6Hf5dzthVOtnRK/sPXwU62Guqq678Jode5vNVf6zHYJrvZDKeyqnipZdZLspdh hg6Ghiwm9AxogiNx2afN6ZBVWQtI8Xl5lVpbXx+yDZVgUS+Xepfjas7DX4QNaSCMSC9kyf/7ty29s eNEE8Wf/GZ+/U1es/sPxHbFUQsnWsaDxJbnCu//CMNgPhKE/vR4ibk1Ja4eYudjE06tAv0bw4J6sn /lcTuicw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cktV9-0004zr-BG; Mon, 06 Mar 2017 14:20:39 +0000 Received: from bhuna.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e3e3]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cktSi-00026i-Cg; Mon, 06 Mar 2017 14:18:10 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: rperier) with ESMTPSA id 9A31F26A9AA From: Romain Perier To: Ulf Hansson Subject: [PATCH v2 4/4] arm: dts: rockchip: Enable post_ios_power_on and pre-power-on-delay-ms Date: Mon, 6 Mar 2017 15:17:16 +0100 Message-Id: <20170306141716.19120-5-romain.perier@collabora.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170306141716.19120-1-romain.perier@collabora.com> References: <20170306141716.19120-1-romain.perier@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170306_061808_575297_1F230876 X-CRM114-Status: UNSURE ( 7.25 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Stuebner , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Sjoerd Simons , Romain Perier , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This enables the property post_ios_power_on. With this property, the driver pwrseq_simple will do its entire power sequence at the end of the mmc_power_up() function. The property pre-power-on-delay-ms adds a delay of 1ms between the enablement of the clk and the assertion of the reset line. It fixes the power-up sequence for the Wifi chipset AP6335. Signed-off-by: Romain Perier --- arch/arm/boot/dts/rk3288-rock2-square.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-rock2-square.dts b/arch/arm/boot/dts/rk3288-rock2-square.dts index 818c4bf..9bf2991 100644 --- a/arch/arm/boot/dts/rk3288-rock2-square.dts +++ b/arch/arm/boot/dts/rk3288-rock2-square.dts @@ -106,6 +106,8 @@ pinctrl-names = "default"; pinctrl-0 = <&wifi_enable>; reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>; + pre-power-on-delay-ms = <1>; + post-ios-power-on; }; vcc_usb_host: vcc-host-regulator {