From patchwork Sun Dec 11 22:21:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 87615 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1361998qgi; Sun, 11 Dec 2016 14:23:01 -0800 (PST) X-Received: by 10.98.89.129 with SMTP id k1mr92347020pfj.180.1481494981198; Sun, 11 Dec 2016 14:23:01 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e63si41399666plb.279.2016.12.11.14.23.00; Sun, 11 Dec 2016 14:23:01 -0800 (PST) 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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.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 S1754051AbcLKWW6 (ORCPT + 25 others); Sun, 11 Dec 2016 17:22:58 -0500 Received: from mail-wj0-f169.google.com ([209.85.210.169]:34162 "EHLO mail-wj0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754023AbcLKWWx (ORCPT ); Sun, 11 Dec 2016 17:22:53 -0500 Received: by mail-wj0-f169.google.com with SMTP id tg4so57584879wjb.1 for ; Sun, 11 Dec 2016 14:22:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dmvmN1GWxk2zlTuOptBAcoT9PcpUHZnSwCj3JNctqxI=; b=WZ9JBHw8Xpwr8tJvzofHDfWz/zJScCpt56pPEK1B5ebECjGDqgVpoWXFPX4IWGurYc Qek6Tu3YZd+GFPIXujXrP6XgV5PXFP0qAUCZYA8UPaqhNlsOGxLhW5nZ/1lkkVI4SKK/ Bkl9Fe/fwazIZ0q6ILfRJK6t4NOd9pUTd/YOQplveeIZpxTjfx4SooTdptGw7AfRDUVj zDKEPoDMkRL4Gfp86U+1FEe5j9x1JDyFL/8AV0QqyTjXqyzim0sXDu8PZHdcXk8+iRqs qJIoMDllIWRa5aaA1M0aKjDXny22svIo8SpbjqCQM6iIu1TZzlV0aZiN3uTES0Qi+xNN TBcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dmvmN1GWxk2zlTuOptBAcoT9PcpUHZnSwCj3JNctqxI=; b=EdJoDRS16V/be/PmPfSoVfKMOm9Vn4nqOxLeaMejlfzoTVTP7uszuEKI0ZBDkcp5nd 7ge9rL/75UQrQSgLodGAF/twxM5wSen4qUuj+1WssyAoVbTGYJpMkEI81Gpzxc5O8trY kNa4sVNdTxSffKFyl3qPYG0Z+twSzFubDgYGf5CpC+w5MHmB3Me3D73yaNBoGGE4Mhn3 4EjmahNVAx4/+JRj7FXrQoa+mIo4h/Mfs+DrjTVzeCNkgKFc2H4OoGPAeOSFbzrBI04w ngS08/6+z/L2wCDZ598neroph3+ndnr6kq38j9rwt+WlT++HvysQbMf4RE+zeS/Q279Y 2Qig== X-Gm-Message-State: AKaTC02Fan37ULVF3+tw057A9cyNLzi4x+ru+oI1oe3OEKcOig4kONiRHQ3xVtje0IgjjobN X-Received: by 10.194.116.34 with SMTP id jt2mr76783529wjb.121.1481494971745; Sun, 11 Dec 2016 14:22:51 -0800 (PST) Received: from bgdev-debian.lan (jua06-1-82-242-157-225.fbx.proxad.net. [82.242.157.225]) by smtp.gmail.com with ESMTPSA id x140sm32382073wme.19.2016.12.11.14.22.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 11 Dec 2016 14:22:51 -0800 (PST) From: Bartosz Golaszewski To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Mark Rutland Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kevin Hilman , Patrick Titiano , Neil Armstrong , Linus Walleij , Alexandre Courbot , linux-gpio@vger.kernel.org, Sebastian Reichel , linux-pm@vger.kernel.org, Mark Brown , Liam Girdwood , Bartosz Golaszewski Subject: [PATCH 1/2] devicetree: power: add bindings for GPIO-driven power switches Date: Sun, 11 Dec 2016 23:21:44 +0100 Message-Id: <1481494905-18037-2-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1481494905-18037-1-git-send-email-bgolaszewski@baylibre.com> References: <1481494905-18037-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some boards are equipped with simple, GPIO-driven power load switches. An example of such ICs is the TI tps229* series. Add device tree bindings allowing to describe them. Signed-off-by: Bartosz Golaszewski --- .../bindings/power/gpio-power-switch.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/gpio-power-switch.txt -- 2.9.3 diff --git a/Documentation/devicetree/bindings/power/gpio-power-switch.txt b/Documentation/devicetree/bindings/power/gpio-power-switch.txt new file mode 100644 index 0000000..21420ed --- /dev/null +++ b/Documentation/devicetree/bindings/power/gpio-power-switch.txt @@ -0,0 +1,25 @@ +GPIO Power Switch +----------------- + +This is the device tree binding for simple, GPIO-driven power load switches +that do not have any control signals. + +Required properties: + +- compatible: must be "gpio-power-switch" +- power-gpios: phandle for the GPIO driving the power load switch + +Optional properties: + +- power-switch-name: the name of the power switch +- power-switch-on: the power switch GPIO is driven high by default + +Example +------- + +acme_probe0_power_switch: gpio_power_switch@0 { + compatible = "gpio-power-switch"; + power-switch-name = "acme_probe0_switch"; + power-gpios = <&pca9535 1 GPIO_ACTIVE_HIGH>; + power-switch-on; +};