Received: by 10.192.165.148 with SMTP id m20csp1908237imm; Thu, 3 May 2018 07:20:13 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpdgn+d0DeRy0D2G70GOeXjP1bkZuOr8cQHJNe8CHL56GgET+uugkym0XQhyO8jnmvrUA8L X-Received: by 2002:a17:902:5481:: with SMTP id e1-v6mr23757030pli.137.1525357213265; Thu, 03 May 2018 07:20:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525357213; cv=none; d=google.com; s=arc-20160816; b=UMSOUIfBMabEJpJWgRU8sLwhF6jn8yUT0bhMrO1LGHBv0Z1XmGMVhDamO/CbqRmZys 6vvi1ZCSkNFpHCwO0pjSHITfT4ubmxExxcaQPtnwAuKXOnzVj7dVwy4K33EPmp2swpTs fdaVevgc8WqKc7qDgfW+WYl+0sFvE5thbVO7Z6xzH7xvLv5vrhaIix28mMCPbo0RnAtv aNc4nr0qeI3hwzGeRVXUPHVdwyuo6BD3YpWeTSiD/hVArDsMEtj+oMGrQjmpPRQL7Op+ eUdtSDwgSjHq6mEzMibPX247bwOGSsMycHaPl7yGCZxvUEcSCqrHX7WJTRm5YAKTzPq6 30rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=P5zG5pZWOzXsddgMOUZt6HPZqQROe2YG1kXT7eF267w=; b=z39femgC4dSAoe5M6zGGmbQS9QYlvjtqf7XqJp5JIM3OszKfqLghl5OkmdoBtGZxjb 4ZWjyzMYhg1SXG6Lgbkt/AP1QOk5Zj6ntbr6zW4NPbpDHLxBvyfC9g4UDLnjJVSfgpLN fygtLKl1Nk+aOHxbxjns6e0DPNMYu9QCkwCL6h5YgDtVeSE904RgFeaS0qfV6X1tY3aS TR3ctTZkjn6SOZHitdhUWfkRRwrHA05d2cwHhu0q6JK/RlHXxcpcheKxiiyLzNH3G7zQ ax+KHVNqkemnQW98enoIsbQTDSHe0SdIa9Zo4ihbmLBXvvX+NZ8aSR7/J6EBKdU6XqOq 6fMA== ARC-Authentication-Results: i=1; mx.google.com; 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 s6-v6si10037661pgp.152.2018.05.03.07.19.58; Thu, 03 May 2018 07:20:13 -0700 (PDT) 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; 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 S1751724AbeECOSF (ORCPT + 99 others); Thu, 3 May 2018 10:18:05 -0400 Received: from muru.com ([72.249.23.125]:39908 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751371AbeECOSD (ORCPT ); Thu, 3 May 2018 10:18:03 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id C8C8080BF; Thu, 3 May 2018 14:19:56 +0000 (UTC) Date: Thu, 3 May 2018 07:17:59 -0700 From: Tony Lindgren To: "Reizer, Eyal" Cc: Eyal Reizer , "bcousson@baylibre.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "linux-omap@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [EXTERNAL] Re: [PATCH] arm: dts: am437x-sk-evm: add wilink8 support Message-ID: <20180503141759.GP98604@atomide.com> References: <1525159453-32489-1-git-send-email-eyalr@ti.com> <20180502145100.GK98604@atomide.com> <5cc906da15da45ab96e06957f878b65b@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5cc906da15da45ab96e06957f878b65b@ti.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Reizer, Eyal [180503 06:43]: > > > > * Eyal Reizer [180501 00:26]: > > > enable mmc3 used for wlan and uart1 used for bluetooth > > > configure the gpios used for wlan and bluetooth controls > > > add fixed voltage regulator used for wlan power control > > ... > > > / { > > > model = "TI AM437x SK EVM"; > > > @@ -158,6 +159,22 @@ > > > }; > > > }; > > > }; > > > + > > > + vmmcwl_fixed: fixedregulator-mmcwl { > > > + /* > > > + * WL_EN is not SDIO standard compliant. It is an out of band > > > + * signal and hard to be dealt with in a standard way by the > > > + * SDIO core driver. > > > + * So modelling the WL_EN line as a regulator was a natural > > > + * choice as the MMC core already deals with MMC supplies. > > > + */ > > > + compatible = "regulator-fixed"; > > > + regulator-name = "vmmcwl_fixed"; > > > + regulator-min-microvolt = <1800000>; > > > + regulator-max-microvolt = <1800000>; > > > + gpio = <&gpio4 8 GPIO_ACTIVE_HIGH>; > > > + enable-active-high; > > > + }; > > > }; > > > > Interesting that it needs much longer delay here compared to the > > earlier? > > Where do you see a delay in here? > There is no startup-delay-us value used in this patch. Oops sorry, I misread the voltage above as the startup-delay-us value :) > > BTW, I do have a patch in work to add pwrseq support for wlcore that > > allows leaving out the regulator here. It still needs a bit more > > work though. > > > > And I also have a series in work to make wlcore use runtime PM that > > needs even more work, just FYI to avoid any duplicate work. > > > > Hmm you don't happen to have a patch series somewhere making > > wlcore use the SDIO dat lien interrupt? > wilink has always used out of band interrupt (using wlan_irq gpio). > in-band interrupts was not supported. > See section 10.5.2 in this the wl18xx hardware integration guide: > http://www.ti.com/lit/ug/swru437/swru437.pdf Hmm yeah I've been wondering about that. Why not follow the SDIO standard here though? Do you have links to documentation explaining that? > > I think we should use that when idle rather than the (edge) gpio > > interrupt as the SDIO dat interrupt is level sensitive and wired > > to the always on gpio bank for most SDIO controller instances. > > On runtime PM wakeup, there's no status anywhere to been with the > > GPIO edge interrupt. > > > I agree that it would have been better, especially for cases such as wake > On wlan, but again, in-band interrupt was something that was talked > about way back but it was never implemented. I think we can have both if performance is the reason for the out of band interrupt. We could still use SDIO dat line interrupt during idle for wake-up events. Regards, Tony