Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761940AbcLPPxJ (ORCPT ); Fri, 16 Dec 2016 10:53:09 -0500 Received: from mail-wm0-f47.google.com ([74.125.82.47]:35467 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761760AbcLPPw7 (ORCPT ); Fri, 16 Dec 2016 10:52:59 -0500 From: Bartosz Golaszewski To: Liam Girdwood , Mark Brown , Rob Herring , Mark Rutland Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Kevin Hilman , Patrick Titiano , Neil Armstrong , Bartosz Golaszewski Subject: [PATCH 0/3] regulator: add support for GPIO power load switches Date: Fri, 16 Dec 2016 16:52:27 +0100 Message-Id: <1481903550-3582-1-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1127 Lines: 27 We would like to add support for GPIO-controlled power load switches (for example: the tps229* series from Texas Instruments). We use this chip to power-cycle devices whose power consumption is measured using baylibre-acme probes thus we need a way to control them from user space. I initially submitted a series adding this support via the iio framework, but it was decided that iio is not the right interface for that. This series extends the regulator core to support regulators controlled from user space and reuses the fixed regulator driver to support gpio power switches. Bartosz Golaszewski (3): regulator: add support for user space controlled regulators doc: DT: add new compatible to fixed regulator's binding regulator: fixed: add support for gpio power switches .../bindings/regulator/fixed-regulator.txt | 4 ++- drivers/regulator/core.c | 38 +++++++++++++++++++++- drivers/regulator/fixed.c | 33 ++++++++++++++----- include/linux/regulator/driver.h | 5 +++ 4 files changed, 70 insertions(+), 10 deletions(-) -- 2.9.3