From patchwork Thu Nov 28 15:44:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 3255021 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0391CC045B for ; Thu, 28 Nov 2013 15:46:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D81F820515 for ; Thu, 28 Nov 2013 15:46:10 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9D9032050B for ; Thu, 28 Nov 2013 15:46:09 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vm3me-00030j-HP; Thu, 28 Nov 2013 15:45:40 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vm3mU-0006Fe-Rq; Thu, 28 Nov 2013 15:45:30 +0000 Received: from perceval.ideasonboard.com ([95.142.166.194]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vm3mD-0006Dz-W3 for linux-arm-kernel@lists.infradead.org; Thu, 28 Nov 2013 15:45:17 +0000 Received: from avalon.ideasonboard.com (179.232-240-81.adsl-dyn.isp.belgacom.be [81.240.232.179]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 81CA235A6D; Thu, 28 Nov 2013 16:44:05 +0100 (CET) From: Laurent Pinchart To: linux-sh@vger.kernel.org Subject: [PATCH 1/2] regulator: gpio-regulator: Add required regulator-type property Date: Thu, 28 Nov 2013 16:44:52 +0100 Message-Id: <1385653493-9952-2-git-send-email-laurent.pinchart+renesas@ideasonboard.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1385653493-9952-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> References: <1385653493-9952-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131128_104514_122765_BA2E81A6 X-CRM114-Status: UNSURE ( 8.83 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The gpio-regulator driver requires the regulator-type property to be present. Document it as required in the DT bindings. Signed-off-by: Laurent Pinchart --- Documentation/devicetree/bindings/regulator/gpio-regulator.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/gpio-regulator.txt b/Documentation/devicetree/bindings/regulator/gpio-regulator.txt index 63c6598..a560711 100644 --- a/Documentation/devicetree/bindings/regulator/gpio-regulator.txt +++ b/Documentation/devicetree/bindings/regulator/gpio-regulator.txt @@ -4,6 +4,7 @@ Required properties: - compatible : Must be "regulator-gpio". - states : Selection of available voltages and GPIO configs. if there are no states, then use a fixed regulator +- regulator-type : Must be either "voltage" or "current". Optional properties: - enable-gpio : GPIO to use to enable/disable the regulator. @@ -22,6 +23,7 @@ Example: regulator-name = "mmci-gpio-supply"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <2600000>; + regulator-type = "voltage"; regulator-boot-on; enable-gpio = <&gpio0 23 0x4>;