From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [REPOST RFC PATCH 0/3] New "gpio-poweroff" driver to turn off platform devices with GPIOs Date: Sat, 17 Dec 2011 09:20:44 +0000 Message-ID: <20111217092044.GC2833@opensource.wolfsonmicro.com> References: <1323800614-12642-1-git-send-email-Kyle.D.Moffett@boeing.com> <4EE7A31E.7080301@gmail.com> <895CF182-4BF7-4DF5-A467-944EC008DBC3@boeing.com> <20111214120240.GC25088@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: "Moffett, Kyle D" Cc: "devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Liam Girdwood List-Id: devicetree@vger.kernel.org On Wed, Dec 14, 2011 at 02:34:37PM -0600, Moffett, Kyle D wrote: > On Dec 14, 2011, at 07:02, Mark Brown wrote: > > The regulator API in -next has DT bindings. > Based on the description of our hardware, is there a good way that I > can wire up gpio-regulator driver to our hardware with just the device > tree (and maybe one small board-specific function) to make it shut down > each domain in sequence at poweroff time? Otherwise I will just go back > to my custom board-specific function for GPIO-twiddling. No, it's a very rare use case so there's nothing off the shelf. But it should be straightfoward to write a device driver doing this.