Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964792AbcLOPGA (ORCPT ); Thu, 15 Dec 2016 10:06:00 -0500 Received: from mail.kernel.org ([198.145.29.136]:39640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932518AbcLOPF5 (ORCPT ); Thu, 15 Dec 2016 10:05:57 -0500 MIME-Version: 1.0 In-Reply-To: References: <1481494905-18037-1-git-send-email-bgolaszewski@baylibre.com> <1481494905-18037-2-git-send-email-bgolaszewski@baylibre.com> <20161213192712.gbaw4t4awayybnta@rob-hp-laptop> From: Rob Herring Date: Thu, 15 Dec 2016 09:05:23 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] devicetree: power: add bindings for GPIO-driven power switches To: Bartosz Golaszewski Cc: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Mark Rutland , "linux-iio@vger.kernel.org" , linux-devicetree , LKML , Kevin Hilman , Patrick Titiano , Neil Armstrong , Linus Walleij , Alexandre Courbot , linux-gpio , Sebastian Reichel , linux-pm , Mark Brown , Liam Girdwood Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1118 Lines: 26 On Wed, Dec 14, 2016 at 10:58 AM, Bartosz Golaszewski wrote: > 2016-12-13 20:27 GMT+01:00 Rob Herring : >> On Sun, Dec 11, 2016 at 11:21:44PM +0100, Bartosz Golaszewski wrote: >>> Some boards are equipped with simple, GPIO-driven power load switches. >>> An example of such ICs is the TI tps229* series. >> >> How is this different than a GPIO regulator? The input and output >> voltages just happen to be the same. I could be convinced this is >> different enough to have a different compatible, but it somewhat seems >> you want to use this for IIO, so you are creating a different binding >> for that usecase. >> > > It's more of a fixed regulator I suppose. Do you mean adding a new > compatible to the fixed-regulator binding (e.g. "gpio-power-switch" or > "simple-power-switch") and then providing an iio driver for toggling > the switch? Yes, at least the first part. I view the switch as just a more specific subtype of a fixed-regulator. Whether an IIO driver is a separate discussion which is happening. Rob P.S. I really don't like compatibles with "simple".