From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pf0-f196.google.com ([209.85.192.196]:33051 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934342AbcJZVGv (ORCPT ); Wed, 26 Oct 2016 17:06:51 -0400 Date: Wed, 26 Oct 2016 14:06:48 -0700 From: Dmitry Torokhov To: Brian Norris Cc: Rajat Jain , linux-wireless@vger.kernel.org, devicetree@vger.kernel.org, Xinming Hu , Amitkumar Karwar , Brian Norris , Kalle Valo , Rob Herring , Rajat Jain Subject: Re: [PATCH v6] mwifiex: parse device tree node for PCIe Message-ID: <20161026210648.GE3989@dtor-ws> (sfid-20161026_230707_607393_07F9597C) References: <1477070156-109965-1-git-send-email-rajatja@google.com> <1477084869-15612-1-git-send-email-rajatja@google.com> <20161026201735.GA10192@localhost> <20161026204648.GD3989@dtor-ws> <20161026205634.GA13170@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20161026205634.GA13170@localhost> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, Oct 26, 2016 at 01:56:34PM -0700, Brian Norris wrote: > On Wed, Oct 26, 2016 at 01:51:48PM -0700, Rajat Jain wrote: > > On Wed, Oct 26, 2016 at 1:46 PM, Dmitry Torokhov > > wrote: > > On Wed, Oct 26, 2016 at 01:17:36PM -0700, Brian Norris wrote: > > Sorry, I just saw this... Why do we need devicetree data for > > discoverable bus (PCI)? How does the driver work on systems that do not > > use DT? Why do we need them to behave differently? > > > > There are a couple of out-of-band GPIO pins from Marvell chip that can > > serve as wake-up pins (wake up the CPU when asserted). The Marvell chip > > has to be told which GPIO pin is to be used as the wake-up pin. The pin to > > be used is system / platform dependent. (On some systems it could be > > GPIO13, on others it could be GPIO14 etc depending on how the marvell chip > > is wired up to the CPU). So wakeup pin is not wired to PCIe WAKE? > There's also calibration data. See "marvell,caldata*" and > "marvell,wakeup-pin" properties. Currently only for SDIO, in > Documentation/devicetree/bindings/net/wireless/marvell-sd8xxx.txt, but > we're adding support for PCIe. How would it all work if I moved the PCIe module from one device to another? Thanks. -- Dmitry